2022-03-11 08:52:57 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`MLocationBody <MLocationBody> with error displays correct fallback content when map_style_url is misconfigured 1`] = `
|
|
|
|
<div
|
2023-03-06 15:17:46 +00:00
|
|
|
class="mx_EventTile_body mx_MLocationBody"
|
2022-03-11 08:52:57 +00:00
|
|
|
>
|
|
|
|
<span
|
2023-03-06 15:17:46 +00:00
|
|
|
class="mx_EventTile_tileError"
|
2022-03-11 08:52:57 +00:00
|
|
|
>
|
|
|
|
Unable to load map: This homeserver is not configured correctly to display maps, or the configured map server may be unreachable.
|
|
|
|
</span>
|
|
|
|
<br />
|
|
|
|
Shared a location: Found at geo:51.5076,-0.1276 at 2021-12-21T12:22+0000
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MLocationBody <MLocationBody> with error displays correct fallback content without error style when map_style_url is not configured 1`] = `
|
|
|
|
<div
|
2023-03-06 15:17:46 +00:00
|
|
|
class="mx_EventTile_body mx_MLocationBody"
|
2022-03-11 08:52:57 +00:00
|
|
|
>
|
|
|
|
<span
|
2023-03-06 15:17:46 +00:00
|
|
|
class=""
|
2022-03-11 08:52:57 +00:00
|
|
|
>
|
|
|
|
Unable to load map: This homeserver is not configured to display maps.
|
|
|
|
</span>
|
|
|
|
<br />
|
|
|
|
Shared a location: Found at geo:51.5076,-0.1276 at 2021-12-21T12:22+0000
|
|
|
|
</div>
|
|
|
|
`;
|
2022-04-11 16:40:06 +00:00
|
|
|
|
|
|
|
exports[`MLocationBody <MLocationBody> without error renders map correctly 1`] = `
|
2023-03-06 15:17:46 +00:00
|
|
|
<DocumentFragment>
|
|
|
|
<div
|
|
|
|
class="mx_MLocationBody"
|
|
|
|
>
|
|
|
|
<div
|
2023-08-09 08:39:48 +00:00
|
|
|
aria-describedby="mx_TooltipTarget_9K38QgU2"
|
2023-03-06 15:17:46 +00:00
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Map mx_MLocationBody_map"
|
2023-08-09 08:39:48 +00:00
|
|
|
id="mx_Map_mx_MLocationBody_$2_vY7Q4uEh"
|
2023-03-06 15:17:46 +00:00
|
|
|
>
|
|
|
|
<span>
|
|
|
|
<div
|
|
|
|
class="mx_Marker mx_Marker_defaultColor"
|
2023-08-09 08:39:48 +00:00
|
|
|
id="mx_MLocationBody_$2_vY7Q4uEh-marker"
|
2023-03-06 15:17:46 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Marker_border"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Marker_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`MLocationBody <MLocationBody> without error renders marker correctly for a self share 1`] = `
|
|
|
|
<DocumentFragment>
|
|
|
|
<div
|
|
|
|
class="mx_MLocationBody"
|
2022-04-11 16:40:06 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-08-09 08:39:48 +00:00
|
|
|
aria-describedby="mx_TooltipTarget_9K38QgU2"
|
2023-03-06 15:17:46 +00:00
|
|
|
tabindex="0"
|
2022-04-11 16:40:06 +00:00
|
|
|
>
|
2023-03-06 15:17:46 +00:00
|
|
|
<div
|
|
|
|
class="mx_Map mx_MLocationBody_map"
|
2023-08-09 08:39:48 +00:00
|
|
|
id="mx_Map_mx_MLocationBody_$3_vY7Q4uEh"
|
2022-04-11 16:40:06 +00:00
|
|
|
>
|
2023-03-06 15:17:46 +00:00
|
|
|
<span>
|
|
|
|
<div
|
|
|
|
class="mx_Marker mx_Marker_defaultColor"
|
2023-08-09 08:39:48 +00:00
|
|
|
id="mx_MLocationBody_$3_vY7Q4uEh-marker"
|
2022-04-11 16:40:06 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-03-06 15:17:46 +00:00
|
|
|
class="mx_Marker_border"
|
2022-04-11 16:40:06 +00:00
|
|
|
>
|
2023-03-06 15:17:46 +00:00
|
|
|
<span
|
2024-03-07 14:40:03 +00:00
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
2024-02-07 17:26:05 +00:00
|
|
|
data-color="3"
|
2023-08-24 03:48:35 +00:00
|
|
|
data-testid="avatar-img"
|
|
|
|
data-type="round"
|
2023-03-06 15:17:46 +00:00
|
|
|
role="presentation"
|
2023-08-24 03:48:35 +00:00
|
|
|
style="--cpd-avatar-size: 36px;"
|
|
|
|
title="@user:server"
|
2022-04-11 16:40:06 +00:00
|
|
|
>
|
2023-08-24 03:48:35 +00:00
|
|
|
u
|
2023-03-06 15:17:46 +00:00
|
|
|
</span>
|
2022-04-11 16:40:06 +00:00
|
|
|
</div>
|
2023-03-06 15:17:46 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-04-11 16:40:06 +00:00
|
|
|
</div>
|
2023-03-06 15:17:46 +00:00
|
|
|
</div>
|
|
|
|
</DocumentFragment>
|
2022-04-11 16:40:06 +00:00
|
|
|
`;
|