mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-22 21:20:35 +03:00
700b3955a4
* Deprecate AccessibleTooltipButton Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Deprecate AccessibleTooltipButton Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix `UserInfo-test.tsx` * Update `LoginWithQRFlow-test.tsx` snapshot * Remove tooltip provider from test * Fix `AccessibleButton` * Update snapshots * Revert to original import * Use title to populate aria-label * Rollback AccessibleButton or Tooltip changes. Will come in another PR * Rollback en.json change * Update snapshots * Fix `UserInfo` * Update snapshots * Use label instead of title in test * Use label instead of title in TAC test * Use label instead of title in read-receipt test * Remove tooltip for ContextMenu * Add extra information for caption field --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
125 lines
3.5 KiB
Text
125 lines
3.5 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
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"
|
|
data-testid="room-live-share-expiry"
|
|
>
|
|
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>
|
|
`;
|
|
|
|
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"
|
|
data-testid="room-live-share-expiry"
|
|
>
|
|
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>
|
|
`;
|
|
|
|
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>
|
|
`;
|
|
|
|
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`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
class="mx_RoomLiveShareWarning"
|
|
>
|
|
<div
|
|
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
|
|
aria-label="Stop and close"
|
|
class="mx_AccessibleButton mx_RoomLiveShareWarning_closeButton"
|
|
data-state="closed"
|
|
data-testid="room-live-share-wire-error-close-button"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="mx_RoomLiveShareWarning_closeButtonIcon"
|
|
/>
|
|
</button>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|