2022-03-22 21:57:12 +08:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
2022-12-29 23:35:19 +08:00
exports[`<RoomLiveShareWarning /> when user has live beacons and geolocation is available renders correctly with one live beacon in room 1`] = `
<DocumentFragment>
<div
class="mx_RoomLiveShareWarning"
>
<div
class="mx_StyledLiveBeaconIcon mx_RoomLiveShareWarning_icon"
/>
<span
class="mx_RoomLiveShareWarning_label"
>
You are sharing your live location
</span>
<span
class="mx_LiveTimeRemaining"
2023-04-17 14:10:11 +08:00
data-testid="room-live-share-expiry"
2022-12-29 23:35:19 +08:00
>
1h left
</span>
<button
class="mx_AccessibleButton mx_RoomLiveShareWarning_stopButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger"
data-testid="room-live-share-primary-button"
role="button"
tabindex="0"
>
Stop
</button>
</div>
</DocumentFragment>
`;
2022-03-22 21:57:12 +08:00
2022-12-29 23:35:19 +08:00
exports[`<RoomLiveShareWarning /> when user has live beacons and geolocation is available renders correctly with two live beacons in room 1`] = `
<DocumentFragment>
<div
class="mx_RoomLiveShareWarning"
>
<div
class="mx_StyledLiveBeaconIcon mx_RoomLiveShareWarning_icon"
/>
<span
class="mx_RoomLiveShareWarning_label"
>
You are sharing your live location
</span>
<span
class="mx_LiveTimeRemaining"
2023-04-17 14:10:11 +08:00
data-testid="room-live-share-expiry"
2022-12-29 23:35:19 +08:00
>
12h left
</span>
<button
class="mx_AccessibleButton mx_RoomLiveShareWarning_stopButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger"
data-testid="room-live-share-primary-button"
role="button"
tabindex="0"
>
Stop
</button>
</div>
</DocumentFragment>
`;
2022-03-30 20:31:19 +08:00
2022-12-29 23:35:19 +08:00
exports[`<RoomLiveShareWarning /> when user has live beacons and geolocation is available stopping beacons displays error when stop sharing fails 1`] = `
<DocumentFragment>
<div
class="mx_RoomLiveShareWarning"
>
<div
class="mx_StyledLiveBeaconIcon mx_RoomLiveShareWarning_icon mx_StyledLiveBeaconIcon_error"
/>
<span
class="mx_RoomLiveShareWarning_label"
>
An error occurred while stopping your live location, please try again
</span>
<button
class="mx_AccessibleButton mx_RoomLiveShareWarning_stopButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger"
data-testid="room-live-share-primary-button"
role="button"
tabindex="0"
>
Retry
</button>
</div>
</DocumentFragment>
`;
2022-03-31 16:57:12 +08:00
2022-04-25 20:44:18 +08:00
exports[`<RoomLiveShareWarning /> when user has live beacons and geolocation is available with location publish errors displays location publish error when mounted with location publish errors 1`] = `
2022-12-29 23:35:19 +08:00
<DocumentFragment>
<div
class="mx_RoomLiveShareWarning"
2022-03-31 16:57:12 +08:00
>
<div
2022-12-29 23:35:19 +08:00
class="mx_StyledLiveBeaconIcon mx_RoomLiveShareWarning_icon mx_StyledLiveBeaconIcon_error"
/>
<span
class="mx_RoomLiveShareWarning_label"
>
An error occurred whilst sharing your live location, please try again
</span>
<button
class="mx_AccessibleButton mx_RoomLiveShareWarning_stopButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger"
data-testid="room-live-share-primary-button"
role="button"
tabindex="0"
>
Retry
</button>
<button
2024-04-24 20:24:25 +08:00
aria-label="Stop and close"
2022-12-29 23:35:19 +08:00
class="mx_AccessibleButton mx_RoomLiveShareWarning_closeButton"
2024-04-24 20:24:25 +08:00
data-state="closed"
2022-12-29 23:35:19 +08:00
data-testid="room-live-share-wire-error-close-button"
role="button"
tabindex="0"
2022-03-31 16:57:12 +08:00
>
2022-12-29 23:35:19 +08:00
<div
class="mx_RoomLiveShareWarning_closeButtonIcon"
/>
</button>
</div>
</DocumentFragment>
2022-03-31 16:57:12 +08:00
`;