2022-10-14 07:13:17 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-11-16 18:13:59 +03:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a 0/not-live broadcast should render as expected 1`] = `
|
2022-10-14 07:13:17 +03:00
|
|
|
<div>
|
|
|
|
<div
|
2022-10-26 14:45:39 +03:00
|
|
|
class="mx_VoiceBroadcastBody"
|
2022-10-14 07:13:17 +03:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader"
|
|
|
|
>
|
2022-10-14 11:09:38 +03:00
|
|
|
<div
|
|
|
|
data-testid="room-avatar"
|
2022-10-14 07:13:17 +03:00
|
|
|
>
|
2022-10-14 11:09:38 +03:00
|
|
|
room avatar:
|
|
|
|
My room
|
|
|
|
</div>
|
2022-10-14 07:13:17 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_content"
|
|
|
|
>
|
|
|
|
<div
|
2022-10-14 11:09:38 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
2022-10-14 07:13:17 +03:00
|
|
|
>
|
2022-10-14 11:09:38 +03:00
|
|
|
My room
|
2022-10-14 07:13:17 +03:00
|
|
|
</div>
|
|
|
|
<div
|
2022-10-14 11:09:38 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
2022-10-14 07:13:17 +03:00
|
|
|
>
|
2022-10-20 11:04:14 +03:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-14 11:09:38 +03:00
|
|
|
/>
|
2022-10-17 19:13:06 +03:00
|
|
|
<span>
|
|
|
|
@user:example.com
|
|
|
|
</span>
|
2022-10-14 07:13:17 +03:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
2022-10-20 11:04:14 +03:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-14 07:13:17 +03:00
|
|
|
/>
|
|
|
|
Voice broadcast
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-10-26 14:45:39 +03:00
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
2022-10-14 07:13:17 +03:00
|
|
|
>
|
2022-11-21 10:47:09 +03:00
|
|
|
<div
|
|
|
|
aria-label="30s backward"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_secondary_content"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-14 07:13:17 +03:00
|
|
|
<div
|
|
|
|
aria-label="resume voice broadcast"
|
2022-11-28 15:03:18 +03:00
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl mx_VoiceBroadcastControl-play"
|
2022-10-20 11:04:14 +03:00
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-11-21 10:47:09 +03:00
|
|
|
<div
|
|
|
|
aria-label="30s forward"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_secondary_content"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-20 11:04:14 +03:00
|
|
|
</div>
|
2022-10-31 20:35:02 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2022-11-04 13:50:19 +03:00
|
|
|
<input
|
|
|
|
class="mx_SeekBar"
|
|
|
|
max="1"
|
|
|
|
min="0"
|
|
|
|
step="0.001"
|
|
|
|
style="--fillTo: 0;"
|
|
|
|
tabindex="0"
|
|
|
|
type="range"
|
|
|
|
value="0"
|
|
|
|
/>
|
2022-10-31 20:35:02 +03:00
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
|
|
|
23:42
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-10-20 11:04:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2022-11-16 18:13:59 +03:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a 1/live broadcast should render as expected 1`] = `
|
2022-10-20 11:04:14 +03:00
|
|
|
<div>
|
|
|
|
<div
|
2022-10-26 14:45:39 +03:00
|
|
|
class="mx_VoiceBroadcastBody"
|
2022-10-20 11:04:14 +03:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
data-testid="room-avatar"
|
|
|
|
>
|
|
|
|
room avatar:
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
<span>
|
|
|
|
@user:example.com
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Voice broadcast
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_LiveBadge"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Live
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-10-26 14:45:39 +03:00
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
2022-10-20 11:04:14 +03:00
|
|
|
>
|
2022-11-21 10:47:09 +03:00
|
|
|
<div
|
|
|
|
aria-label="30s backward"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_secondary_content"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-20 11:04:14 +03:00
|
|
|
<div
|
|
|
|
aria-label="pause voice broadcast"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
2022-10-14 07:13:17 +03:00
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
2022-10-20 11:04:14 +03:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-14 07:13:17 +03:00
|
|
|
/>
|
|
|
|
</div>
|
2022-11-21 10:47:09 +03:00
|
|
|
<div
|
|
|
|
aria-label="30s forward"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_secondary_content"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-14 07:13:17 +03:00
|
|
|
</div>
|
2022-10-31 20:35:02 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2022-11-04 13:50:19 +03:00
|
|
|
<input
|
|
|
|
class="mx_SeekBar"
|
|
|
|
max="1"
|
|
|
|
min="0"
|
|
|
|
step="0.001"
|
|
|
|
style="--fillTo: 0;"
|
|
|
|
tabindex="0"
|
|
|
|
type="range"
|
|
|
|
value="0"
|
|
|
|
/>
|
2022-10-31 20:35:02 +03:00
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
|
|
|
23:42
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-10-14 07:13:17 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2022-10-17 18:35:13 +03:00
|
|
|
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a buffering voice broadcast should render as expected 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
2022-10-26 14:45:39 +03:00
|
|
|
class="mx_VoiceBroadcastBody"
|
2022-10-17 18:35:13 +03:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
data-testid="room-avatar"
|
|
|
|
>
|
|
|
|
room avatar:
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
2022-10-20 11:04:14 +03:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-17 18:35:13 +03:00
|
|
|
/>
|
2022-10-17 19:13:06 +03:00
|
|
|
<span>
|
|
|
|
@user:example.com
|
|
|
|
</span>
|
2022-10-17 18:35:13 +03:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
2022-10-20 11:04:14 +03:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-17 18:35:13 +03:00
|
|
|
/>
|
|
|
|
Voice broadcast
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_LiveBadge"
|
|
|
|
>
|
2022-10-20 11:04:14 +03:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-17 18:35:13 +03:00
|
|
|
/>
|
|
|
|
Live
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-10-26 14:45:39 +03:00
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
2022-10-17 18:35:13 +03:00
|
|
|
>
|
2022-11-21 10:47:09 +03:00
|
|
|
<div
|
|
|
|
aria-label="30s backward"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_secondary_content"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-17 18:35:13 +03:00
|
|
|
<div
|
|
|
|
class="mx_Spinner"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Loading..."
|
|
|
|
class="mx_Spinner_icon"
|
2022-10-20 14:48:25 +03:00
|
|
|
data-testid="spinner"
|
2022-10-17 18:35:13 +03:00
|
|
|
role="progressbar"
|
|
|
|
style="width: 32px; height: 32px;"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-11-21 10:47:09 +03:00
|
|
|
<div
|
|
|
|
aria-label="30s forward"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_secondary_content"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-17 18:35:13 +03:00
|
|
|
</div>
|
2022-10-31 20:35:02 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2022-11-04 13:50:19 +03:00
|
|
|
<input
|
|
|
|
class="mx_SeekBar"
|
|
|
|
max="1"
|
|
|
|
min="0"
|
|
|
|
step="0.001"
|
|
|
|
style="--fillTo: 0;"
|
|
|
|
tabindex="0"
|
|
|
|
type="range"
|
|
|
|
value="0"
|
|
|
|
/>
|
2022-10-31 20:35:02 +03:00
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
|
|
|
23:42
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2022-11-21 10:47:09 +03:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a playing broadcast should render as expected 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
data-testid="room-avatar"
|
|
|
|
>
|
|
|
|
room avatar:
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
<span>
|
|
|
|
@user:example.com
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Voice broadcast
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="30s backward"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_secondary_content"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
aria-label="pause voice broadcast"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
aria-label="30s forward"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_secondary_content"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
class="mx_SeekBar"
|
|
|
|
max="1"
|
|
|
|
min="0"
|
|
|
|
step="0.001"
|
|
|
|
style="--fillTo: 0;"
|
|
|
|
tabindex="0"
|
|
|
|
type="range"
|
|
|
|
value="0"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
|
|
|
23:42
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a stopped broadcast should render as expected 1`] = `
|
2022-10-31 20:35:02 +03:00
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
data-testid="room-avatar"
|
|
|
|
>
|
|
|
|
room avatar:
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_content"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
<span>
|
|
|
|
@user:example.com
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Voice broadcast
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="play voice broadcast"
|
2022-11-28 15:03:18 +03:00
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl mx_VoiceBroadcastControl-play"
|
2022-10-31 20:35:02 +03:00
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2022-11-04 13:50:19 +03:00
|
|
|
<input
|
|
|
|
class="mx_SeekBar"
|
|
|
|
max="1"
|
|
|
|
min="0"
|
|
|
|
step="0.001"
|
|
|
|
style="--fillTo: 0;"
|
|
|
|
tabindex="0"
|
|
|
|
type="range"
|
|
|
|
value="0"
|
|
|
|
/>
|
2022-10-31 20:35:02 +03:00
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
2022-11-21 10:47:09 +03:00
|
|
|
23:42
|
2022-10-31 20:35:02 +03:00
|
|
|
</span>
|
|
|
|
</div>
|
2022-10-17 18:35:13 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|