mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-25 01:48:43 +08:00
60faf6d025
* live location without map POC * styles * force map tiles to show no map for test build * check latestlocationstate exists * just use loading style map fallback when cant display map * style map error for tile view * set pointer cursor when map error is clickable * test mbeaconbody with map display error, lint * lint more good * remove changes for first attempt tile * make maperror test id more accurate * fussy import ordering * PR tweaks
92 lines
1.9 KiB
Plaintext
92 lines
1.9 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<MapError /> applies class when isMinimised is truthy 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_MapError test mx_MapError_isMinimised"
|
|
data-test-id="map-rendering-error"
|
|
>
|
|
<div
|
|
class="mx_MapError_icon"
|
|
/>
|
|
<h3
|
|
class="mx_Heading_h3 mx_MapError_heading"
|
|
>
|
|
Unable to load map
|
|
</h3>
|
|
<p
|
|
class="mx_MapError_message"
|
|
>
|
|
This homeserver is not configured to display maps.
|
|
</p>
|
|
<button
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
OK
|
|
</button>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`<MapError /> renders correctly for MapStyleUrlNotConfigured 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_MapError test"
|
|
data-test-id="map-rendering-error"
|
|
>
|
|
<div
|
|
class="mx_MapError_icon"
|
|
/>
|
|
<h3
|
|
class="mx_Heading_h3 mx_MapError_heading"
|
|
>
|
|
Unable to load map
|
|
</h3>
|
|
<p
|
|
class="mx_MapError_message"
|
|
>
|
|
This homeserver is not configured to display maps.
|
|
</p>
|
|
<button
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
OK
|
|
</button>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`<MapError /> renders correctly for MapStyleUrlNotReachable 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_MapError test"
|
|
data-test-id="map-rendering-error"
|
|
>
|
|
<div
|
|
class="mx_MapError_icon"
|
|
/>
|
|
<h3
|
|
class="mx_Heading_h3 mx_MapError_heading"
|
|
>
|
|
Unable to load map
|
|
</h3>
|
|
<p
|
|
class="mx_MapError_message"
|
|
>
|
|
This homeserver is not configured correctly to display maps, or the configured map server may be unreachable.
|
|
</p>
|
|
<button
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
OK
|
|
</button>
|
|
</div>
|
|
</div>
|
|
`;
|