2022-04-20 08:14:24 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-07-18 08:34:39 +00:00
|
|
|
exports[`<DialogSidebar /> renders sidebar correctly with beacons 1`] = `
|
|
|
|
<div>
|
2022-04-20 08:14:24 +00:00
|
|
|
<div
|
2022-07-18 08:34:39 +00:00
|
|
|
class="mx_DialogSidebar"
|
2022-04-20 08:14:24 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-07-18 08:34:39 +00:00
|
|
|
class="mx_DialogSidebar_header"
|
2022-04-20 08:14:24 +00:00
|
|
|
>
|
2022-07-18 08:34:39 +00:00
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
2022-04-20 08:14:24 +00:00
|
|
|
>
|
2023-10-03 18:17:26 +00:00
|
|
|
View list
|
2022-07-18 08:34:39 +00:00
|
|
|
</h4>
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
aria-label="Close sidebar"
|
2022-07-18 08:34:39 +00:00
|
|
|
class="mx_AccessibleButton mx_DialogSidebar_closeButton"
|
|
|
|
data-testid="dialog-sidebar-close"
|
2022-04-20 08:14:24 +00:00
|
|
|
role="button"
|
2022-07-18 08:34:39 +00:00
|
|
|
tabindex="0"
|
2022-04-20 08:14:24 +00:00
|
|
|
>
|
2024-10-02 10:06:17 +00:00
|
|
|
<svg
|
2022-07-18 08:34:39 +00:00
|
|
|
class="mx_DialogSidebar_closeButtonIcon"
|
2024-10-02 10:06:17 +00:00
|
|
|
fill="currentColor"
|
|
|
|
height="24px"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
width="24px"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M6.293 6.293a1 1 0 0 1 1.414 0L12 10.586l4.293-4.293a1 1 0 1 1 1.414 1.414L13.414 12l4.293 4.293a1 1 0 0 1-1.414 1.414L12 13.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L10.586 12 6.293 7.707a1 1 0 0 1 0-1.414Z"
|
|
|
|
/>
|
|
|
|
</svg>
|
2022-07-18 08:34:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<ol
|
|
|
|
class="mx_DialogSidebar_list"
|
|
|
|
>
|
|
|
|
<li
|
|
|
|
class="mx_BeaconListItem"
|
|
|
|
>
|
2023-08-24 03:48:35 +00:00
|
|
|
<span
|
2024-03-07 14:40:03 +00:00
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar mx_BeaconListItem_avatar _avatar-imageless_mcap2_61"
|
2023-08-24 03:48:35 +00:00
|
|
|
data-color="1"
|
2022-11-11 16:02:01 +00:00
|
|
|
data-testid="avatar-img"
|
2023-08-24 03:48:35 +00:00
|
|
|
data-type="round"
|
|
|
|
role="presentation"
|
|
|
|
style="--cpd-avatar-size: 32px;"
|
|
|
|
>
|
|
|
|
|
|
|
|
</span>
|
2022-07-18 08:34:39 +00:00
|
|
|
<div
|
|
|
|
class="mx_BeaconListItem_info"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_BeaconStatus mx_BeaconStatus_Active mx_BeaconListItem_status"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_BeaconStatus_description"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_BeaconStatus_label"
|
|
|
|
>
|
|
|
|
@alice:server.org
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
class="mx_BeaconStatus_expiryTime"
|
|
|
|
>
|
|
|
|
Live until 16:14
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_BeaconListItem_interactions"
|
|
|
|
>
|
2024-01-09 11:46:31 +00:00
|
|
|
<a
|
2024-10-15 17:29:37 +00:00
|
|
|
aria-labelledby="floating-ui-qgl08"
|
2024-01-09 11:46:31 +00:00
|
|
|
data-testid="open-location-in-osm"
|
|
|
|
href="https://www.openstreetmap.org/?mlat=51&mlon=41#map=16/51/41"
|
|
|
|
rel="noreferrer noopener"
|
|
|
|
target="_blank"
|
2022-07-18 08:34:39 +00:00
|
|
|
>
|
2024-01-09 11:46:31 +00:00
|
|
|
<div
|
|
|
|
class="mx_ShareLatestLocation_icon"
|
|
|
|
/>
|
|
|
|
</a>
|
2022-07-18 08:34:39 +00:00
|
|
|
<div
|
|
|
|
class="mx_CopyableText mx_ShareLatestLocation_copy"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Copy"
|
|
|
|
class="mx_AccessibleButton mx_CopyableText_copyButton"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span
|
|
|
|
class="mx_BeaconListItem_lastUpdated"
|
|
|
|
>
|
|
|
|
Updated a few seconds ago
|
|
|
|
</span>
|
2022-04-20 08:14:24 +00:00
|
|
|
</div>
|
2022-07-18 08:34:39 +00:00
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<DialogSidebar /> renders sidebar correctly without beacons 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_DialogSidebar"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_DialogSidebar_header"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
|
|
|
>
|
2023-10-03 18:17:26 +00:00
|
|
|
View list
|
2022-07-18 08:34:39 +00:00
|
|
|
</h4>
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
aria-label="Close sidebar"
|
2022-07-18 08:34:39 +00:00
|
|
|
class="mx_AccessibleButton mx_DialogSidebar_closeButton"
|
|
|
|
data-testid="dialog-sidebar-close"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
2024-10-02 10:06:17 +00:00
|
|
|
<svg
|
2022-07-18 08:34:39 +00:00
|
|
|
class="mx_DialogSidebar_closeButtonIcon"
|
2024-10-02 10:06:17 +00:00
|
|
|
fill="currentColor"
|
|
|
|
height="24px"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
width="24px"
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
>
|
|
|
|
<path
|
|
|
|
d="M6.293 6.293a1 1 0 0 1 1.414 0L12 10.586l4.293-4.293a1 1 0 1 1 1.414 1.414L13.414 12l4.293 4.293a1 1 0 0 1-1.414 1.414L12 13.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L10.586 12 6.293 7.707a1 1 0 0 1 0-1.414Z"
|
|
|
|
/>
|
|
|
|
</svg>
|
2022-07-18 08:34:39 +00:00
|
|
|
</div>
|
2022-04-20 08:14:24 +00:00
|
|
|
</div>
|
2022-07-27 15:42:59 +00:00
|
|
|
<div
|
|
|
|
class="mx_DialogSidebar_noResults"
|
|
|
|
>
|
|
|
|
No live locations
|
|
|
|
</div>
|
2022-04-20 08:14:24 +00:00
|
|
|
</div>
|
2022-07-18 08:34:39 +00:00
|
|
|
</div>
|
2022-04-20 08:14:24 +00:00
|
|
|
`;
|