mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-28 11:28:12 +08:00
b04d31b5be
* add duration dropdown to live location picker Signed-off-by: Kerry Archibald <kerrya@element.io> * tidy comments Signed-off-by: Kerry Archibald <kerrya@element.io> * setup component Signed-off-by: Kerry Archibald <kerrya@element.io> * replace references to beaconInfoId with beacon.identifier Signed-off-by: Kerry Archibald <kerrya@element.io> * icon Signed-off-by: Kerry Archibald <kerrya@element.io> * component for styled live beacon icon Signed-off-by: Kerry Archibald <kerrya@element.io> * emit liveness change whenever livebeaconIds changes Signed-off-by: Kerry Archibald <kerrya@element.io> * Handle multiple live beacons in room share warning, test Signed-off-by: Kerry Archibald <kerrya@element.io> * un xdescribe beaconstore tests Signed-off-by: Kerry Archibald <kerrya@element.io> * missed copyrights Signed-off-by: Kerry Archibald <kerrya@element.io> * i18n Signed-off-by: Kerry Archibald <kerrya@element.io> * tidy Signed-off-by: Kerry Archibald <kerrya@element.io>
102 lines
2.6 KiB
Plaintext
102 lines
2.6 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<RoomLiveShareWarning /> when user has live beacons renders correctly with one live beacon in room 1`] = `
|
|
<RoomLiveShareWarning
|
|
roomId="$room1:server.org"
|
|
>
|
|
<div
|
|
className="mx_RoomLiveShareWarning"
|
|
>
|
|
<StyledLiveBeaconIcon
|
|
className="mx_RoomLiveShareWarning_icon"
|
|
>
|
|
<div
|
|
className="mx_StyledLiveBeaconIcon mx_RoomLiveShareWarning_icon"
|
|
/>
|
|
</StyledLiveBeaconIcon>
|
|
<span
|
|
className="mx_RoomLiveShareWarning_label"
|
|
>
|
|
You are sharing your live location
|
|
</span>
|
|
<span
|
|
className="mx_RoomLiveShareWarning_expiry"
|
|
data-test-id="room-live-share-expiry"
|
|
>
|
|
1h left
|
|
</span>
|
|
<AccessibleButton
|
|
data-test-id="room-live-share-stop-sharing"
|
|
disabled={false}
|
|
element="button"
|
|
kind="danger"
|
|
onClick={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
>
|
|
<button
|
|
className="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger"
|
|
data-test-id="room-live-share-stop-sharing"
|
|
onClick={[Function]}
|
|
onKeyDown={[Function]}
|
|
onKeyUp={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
>
|
|
Stop sharing
|
|
</button>
|
|
</AccessibleButton>
|
|
</div>
|
|
</RoomLiveShareWarning>
|
|
`;
|
|
|
|
exports[`<RoomLiveShareWarning /> when user has live beacons renders correctly with two live beacons in room 1`] = `
|
|
<RoomLiveShareWarning
|
|
roomId="$room2:server.org"
|
|
>
|
|
<div
|
|
className="mx_RoomLiveShareWarning"
|
|
>
|
|
<StyledLiveBeaconIcon
|
|
className="mx_RoomLiveShareWarning_icon"
|
|
>
|
|
<div
|
|
className="mx_StyledLiveBeaconIcon mx_RoomLiveShareWarning_icon"
|
|
/>
|
|
</StyledLiveBeaconIcon>
|
|
<span
|
|
className="mx_RoomLiveShareWarning_label"
|
|
>
|
|
You are sharing 2 live locations
|
|
</span>
|
|
<span
|
|
className="mx_RoomLiveShareWarning_expiry"
|
|
data-test-id="room-live-share-expiry"
|
|
>
|
|
12h left
|
|
</span>
|
|
<AccessibleButton
|
|
data-test-id="room-live-share-stop-sharing"
|
|
disabled={false}
|
|
element="button"
|
|
kind="danger"
|
|
onClick={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
>
|
|
<button
|
|
className="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger"
|
|
data-test-id="room-live-share-stop-sharing"
|
|
onClick={[Function]}
|
|
onKeyDown={[Function]}
|
|
onKeyUp={[Function]}
|
|
role="button"
|
|
tabIndex={0}
|
|
>
|
|
Stop sharing
|
|
</button>
|
|
</AccessibleButton>
|
|
</div>
|
|
</RoomLiveShareWarning>
|
|
`;
|