2022-10-14 07:13:17 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2023-01-24 13:20:26 +03:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a buffering voice 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-12-15 14:43:01 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_room_wrapper"
|
2022-10-14 07:13:17 +03:00
|
|
|
>
|
2022-12-15 14:43:01 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
2022-10-14 07:13:17 +03:00
|
|
|
</div>
|
|
|
|
<div
|
2022-12-08 17:27:32 +03:00
|
|
|
aria-label="Change input device"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
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
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_Spinner"
|
|
|
|
>
|
|
|
|
<div
|
2023-02-14 12:05:01 +03:00
|
|
|
aria-label="Loading…"
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_Spinner_icon"
|
|
|
|
data-testid="spinner"
|
|
|
|
role="progressbar"
|
|
|
|
style="width: 14px; height: 14px;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
Buffering…
|
2022-10-14 07:13:17 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-24 13:20:26 +03:00
|
|
|
<div
|
|
|
|
class="mx_LiveBadge"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Live
|
|
|
|
</div>
|
2022-10-14 07:13:17 +03:00
|
|
|
</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
|
2023-01-24 13:20:26 +03:00
|
|
|
aria-label="pause voice broadcast"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
2022-10-20 11:04:14 +03:00
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
2023-03-08 13:11:01 +03:00
|
|
|
class="mx_Icon mx_Icon_12"
|
2022-10-20 11:04:14 +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-20 11:04:14 +03:00
|
|
|
</div>
|
2022-11-30 10:47:29 +03:00
|
|
|
<input
|
2024-01-05 13:59:41 +03:00
|
|
|
aria-label="Audio seek bar"
|
2022-11-30 10:47:29 +03:00
|
|
|
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
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2023-04-25 19:10:46 +03:00
|
|
|
<time
|
2022-10-31 20:35:02 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="PT0S"
|
2022-10-31 20:35:02 +03:00
|
|
|
>
|
2022-11-30 10:47:29 +03:00
|
|
|
00:00
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
|
|
|
<time
|
2022-11-30 10:47:29 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="-PT23M42S"
|
2022-11-30 10:47:29 +03:00
|
|
|
>
|
|
|
|
-23:42
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
2022-10-31 20:35:02 +03:00
|
|
|
</div>
|
2022-10-20 11:04:14 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-01-24 13:20:26 +03:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a pause/not-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
|
2022-12-15 14:43:01 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_room_wrapper"
|
2022-10-20 11:04:14 +03:00
|
|
|
>
|
2022-12-15 14:43:01 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
2022-10-20 11:04:14 +03:00
|
|
|
</div>
|
|
|
|
<div
|
2022-12-08 17:27:32 +03:00
|
|
|
aria-label="Change input device"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-10-20 11:04:14 +03:00
|
|
|
>
|
|
|
|
<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
|
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
|
2023-01-24 13:20:26 +03:00
|
|
|
aria-label="resume voice broadcast"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl mx_VoiceBroadcastControl-play"
|
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-11-30 10:47:29 +03:00
|
|
|
<input
|
2024-01-05 13:59:41 +03:00
|
|
|
aria-label="Audio seek bar"
|
2022-11-30 10:47:29 +03:00
|
|
|
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
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2023-04-25 19:10:46 +03:00
|
|
|
<time
|
2022-10-31 20:35:02 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="PT0S"
|
2022-10-31 20:35:02 +03:00
|
|
|
>
|
2022-11-30 10:47:29 +03:00
|
|
|
00:00
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
|
|
|
<time
|
2022-11-30 10:47:29 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="-PT23M42S"
|
2022-11-30 10:47:29 +03:00
|
|
|
>
|
|
|
|
-23:42
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
2022-10-31 20:35:02 +03:00
|
|
|
</div>
|
2022-10-14 07:13:17 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2022-10-17 18:35:13 +03:00
|
|
|
|
2023-01-24 13:20:26 +03:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a playing broadcast in pip mode should render as expected 1`] = `
|
2022-10-17 18:35:13 +03:00
|
|
|
<div>
|
|
|
|
<div
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_VoiceBroadcastBody mx_VoiceBroadcastBody--pip"
|
2022-10-17 18:35:13 +03:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader"
|
|
|
|
>
|
|
|
|
<div
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_AccessibleButton"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-10-17 18:35:13 +03:00
|
|
|
>
|
2023-01-24 13:20:26 +03:00
|
|
|
<div
|
|
|
|
data-testid="room-avatar"
|
|
|
|
>
|
|
|
|
room avatar:
|
|
|
|
My room
|
|
|
|
</div>
|
2022-10-17 18:35:13 +03:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_content"
|
|
|
|
>
|
|
|
|
<div
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_AccessibleButton"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-10-17 18:35:13 +03:00
|
|
|
>
|
2022-12-15 14:43:01 +03:00
|
|
|
<div
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_room_wrapper"
|
2022-12-15 14:43:01 +03:00
|
|
|
>
|
2023-01-24 13:20:26 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
2022-12-15 14:43:01 +03:00
|
|
|
</div>
|
2022-10-17 18:35:13 +03:00
|
|
|
</div>
|
|
|
|
<div
|
2022-12-08 17:27:32 +03:00
|
|
|
aria-label="Change input device"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-10-17 18:35:13 +03:00
|
|
|
>
|
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
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Voice broadcast
|
2022-10-17 18:35:13 +03:00
|
|
|
</div>
|
|
|
|
</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"
|
2022-12-13 15:32:19 +03:00
|
|
|
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
|
2023-03-08 13:11:01 +03:00
|
|
|
class="mx_Icon mx_Icon_12"
|
2022-12-13 15:32:19 +03:00
|
|
|
/>
|
|
|
|
</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>
|
|
|
|
<input
|
2024-01-05 13:59:41 +03:00
|
|
|
aria-label="Audio seek bar"
|
2022-12-13 15:32:19 +03:00
|
|
|
class="mx_SeekBar"
|
|
|
|
max="1"
|
|
|
|
min="0"
|
|
|
|
step="0.001"
|
|
|
|
style="--fillTo: 0;"
|
|
|
|
tabindex="0"
|
|
|
|
type="range"
|
|
|
|
value="0"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2023-04-25 19:10:46 +03:00
|
|
|
<time
|
2022-12-13 15:32:19 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="PT0S"
|
2022-12-13 15:32:19 +03:00
|
|
|
>
|
|
|
|
00:00
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
|
|
|
<time
|
2022-12-13 15:32:19 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="-PT23M42S"
|
2022-12-13 15:32:19 +03:00
|
|
|
>
|
|
|
|
-23:42
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
2022-12-13 15:32:19 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-01-24 13:20:26 +03:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a playing broadcast should render as expected 1`] = `
|
2022-12-13 15:32:19 +03:00
|
|
|
<div>
|
|
|
|
<div
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_VoiceBroadcastBody"
|
2022-12-13 15:32:19 +03:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader"
|
|
|
|
>
|
|
|
|
<div
|
2023-01-24 13:20:26 +03:00
|
|
|
data-testid="room-avatar"
|
2022-12-13 15:32:19 +03:00
|
|
|
>
|
2023-01-24 13:20:26 +03:00
|
|
|
room avatar:
|
|
|
|
My room
|
2022-12-13 15:32:19 +03:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_content"
|
|
|
|
>
|
|
|
|
<div
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_room_wrapper"
|
2022-12-13 15:32:19 +03:00
|
|
|
>
|
|
|
|
<div
|
2023-01-24 13:20:26 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
2022-12-13 15:32:19 +03:00
|
|
|
>
|
2023-01-24 13:20:26 +03:00
|
|
|
My room
|
2022-12-13 15:32:19 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
aria-label="Change input device"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<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"
|
2022-11-21 10:47:09 +03:00
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_24"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-17 18:35:13 +03:00
|
|
|
<div
|
2022-11-30 13:43:58 +03:00
|
|
|
aria-label="pause voice broadcast"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-10-17 18:35:13 +03:00
|
|
|
>
|
|
|
|
<div
|
2023-03-08 13:11:01 +03:00
|
|
|
class="mx_Icon mx_Icon_12"
|
2022-10-17 18:35:13 +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-17 18:35:13 +03:00
|
|
|
</div>
|
2022-11-30 10:47:29 +03:00
|
|
|
<input
|
2024-01-05 13:59:41 +03:00
|
|
|
aria-label="Audio seek bar"
|
2022-11-30 10:47:29 +03:00
|
|
|
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
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2023-04-25 19:10:46 +03:00
|
|
|
<time
|
2022-10-31 20:35:02 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="PT0S"
|
2022-10-31 20:35:02 +03:00
|
|
|
>
|
2022-11-30 10:47:29 +03:00
|
|
|
00:00
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
|
|
|
<time
|
2022-11-30 10:47:29 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="-PT23M42S"
|
2022-11-30 10:47:29 +03:00
|
|
|
>
|
|
|
|
-23:42
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
2022-10-31 20:35:02 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2023-01-24 13:20:26 +03:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a playing/live broadcast should render as expected 1`] = `
|
2022-11-21 10:47:09 +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
|
2022-12-15 14:43:01 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_room_wrapper"
|
2022-11-21 10:47:09 +03:00
|
|
|
>
|
2022-12-15 14:43:01 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
2022-11-21 10:47:09 +03:00
|
|
|
</div>
|
|
|
|
<div
|
2022-12-08 17:27:32 +03:00
|
|
|
aria-label="Change input device"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-11-21 10:47:09 +03:00
|
|
|
>
|
|
|
|
<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>
|
2023-01-24 13:20:26 +03:00
|
|
|
<div
|
|
|
|
class="mx_LiveBadge"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Live
|
|
|
|
</div>
|
2022-11-21 10:47:09 +03:00
|
|
|
</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
|
2023-03-08 13:11:01 +03:00
|
|
|
class="mx_Icon mx_Icon_12"
|
2022-11-21 10:47:09 +03:00
|
|
|
/>
|
|
|
|
</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>
|
2022-11-30 10:47:29 +03:00
|
|
|
<input
|
2024-01-05 13:59:41 +03:00
|
|
|
aria-label="Audio seek bar"
|
2022-11-30 10:47:29 +03:00
|
|
|
class="mx_SeekBar"
|
|
|
|
max="1"
|
|
|
|
min="0"
|
|
|
|
step="0.001"
|
|
|
|
style="--fillTo: 0;"
|
|
|
|
tabindex="0"
|
|
|
|
type="range"
|
|
|
|
value="0"
|
|
|
|
/>
|
2022-11-21 10:47:09 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2023-04-25 19:10:46 +03:00
|
|
|
<time
|
2022-11-21 10:47:09 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="PT0S"
|
2022-11-21 10:47:09 +03:00
|
|
|
>
|
2022-11-30 10:47:29 +03:00
|
|
|
00:00
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
|
|
|
<time
|
2022-11-30 10:47:29 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="-PT23M42S"
|
2022-11-30 10:47:29 +03:00
|
|
|
>
|
|
|
|
-23:42
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
2022-11-21 10:47:09 +03:00
|
|
|
</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
|
2022-12-15 14:43:01 +03:00
|
|
|
class="mx_VoiceBroadcastHeader_room_wrapper"
|
2022-10-31 20:35:02 +03:00
|
|
|
>
|
2022-12-15 14:43:01 +03:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
2022-10-31 20:35:02 +03:00
|
|
|
</div>
|
|
|
|
<div
|
2022-12-08 17:27:32 +03:00
|
|
|
aria-label="Change input device"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
2022-10-31 20:35:02 +03:00
|
|
|
>
|
|
|
|
<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>
|
2022-11-30 10:47:29 +03:00
|
|
|
<input
|
2024-01-05 13:59:41 +03:00
|
|
|
aria-label="Audio seek bar"
|
2022-11-30 10:47:29 +03:00
|
|
|
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
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
2023-04-25 19:10:46 +03:00
|
|
|
<time
|
2022-10-31 20:35:02 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="PT0S"
|
2022-10-31 20:35:02 +03:00
|
|
|
>
|
2022-11-30 10:47:29 +03:00
|
|
|
00:00
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
|
|
|
<time
|
2022-11-30 10:47:29 +03:00
|
|
|
class="mx_Clock"
|
2023-04-25 19:10:46 +03:00
|
|
|
datetime="-PT23M42S"
|
2022-11-30 10:47:29 +03:00
|
|
|
>
|
|
|
|
-23:42
|
2023-04-25 19:10:46 +03:00
|
|
|
</time>
|
2022-10-31 20:35:02 +03:00
|
|
|
</div>
|
2022-10-17 18:35:13 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2023-01-24 13:20:26 +03:00
|
|
|
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering an error 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_wrapper"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
|
|
|
>
|
|
|
|
My room
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
aria-label="Change input device"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<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_VoiceBroadcastRecordingConnectionError"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Unable to play this voice broadcast
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|