2022-10-14 12:13:17 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-10-20 16:04:14 +08:00
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a 0 broadcast should render as expected 1`] = `
|
2022-10-14 12:13:17 +08:00
|
|
|
<div>
|
|
|
|
<div
|
2022-10-26 19:45:39 +08:00
|
|
|
class="mx_VoiceBroadcastBody"
|
2022-10-14 12:13:17 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader"
|
|
|
|
>
|
2022-10-14 16:09:38 +08:00
|
|
|
<div
|
|
|
|
data-testid="room-avatar"
|
2022-10-14 12:13:17 +08:00
|
|
|
>
|
2022-10-14 16:09:38 +08:00
|
|
|
room avatar:
|
|
|
|
My room
|
|
|
|
</div>
|
2022-10-14 12:13:17 +08:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_content"
|
|
|
|
>
|
|
|
|
<div
|
2022-10-14 16:09:38 +08:00
|
|
|
class="mx_VoiceBroadcastHeader_room"
|
2022-10-14 12:13:17 +08:00
|
|
|
>
|
2022-10-14 16:09:38 +08:00
|
|
|
My room
|
2022-10-14 12:13:17 +08:00
|
|
|
</div>
|
|
|
|
<div
|
2022-10-14 16:09:38 +08:00
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
2022-10-14 12:13:17 +08:00
|
|
|
>
|
2022-10-20 16:04:14 +08:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-14 16:09:38 +08:00
|
|
|
/>
|
2022-10-18 00:13:06 +08:00
|
|
|
<span>
|
|
|
|
@user:example.com
|
|
|
|
</span>
|
2022-10-14 12:13:17 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
2022-10-20 16:04:14 +08:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-14 12:13:17 +08:00
|
|
|
/>
|
|
|
|
Voice broadcast
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-17 20:31:03 +08:00
|
|
|
<div
|
|
|
|
class="mx_LiveBadge"
|
|
|
|
>
|
2022-10-20 16:04:14 +08:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-17 20:31:03 +08:00
|
|
|
/>
|
|
|
|
Live
|
|
|
|
</div>
|
2022-10-14 12:13:17 +08:00
|
|
|
</div>
|
|
|
|
<div
|
2022-10-26 19:45:39 +08:00
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
2022-10-14 12:13:17 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="resume voice broadcast"
|
2022-10-20 16:04:14 +08:00
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-01 01:35:02 +08:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
|
|
|
23:42
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-10-20 16:04:14 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a 1 broadcast should render as expected 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
2022-10-26 19:45:39 +08:00
|
|
|
class="mx_VoiceBroadcastBody"
|
2022-10-20 16:04:14 +08: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 19:45:39 +08:00
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
2022-10-20 16:04:14 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="pause voice broadcast"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
2022-10-14 12:13:17 +08:00
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
2022-10-20 16:04:14 +08:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-14 12:13:17 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-01 01:35:02 +08:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
|
|
|
23:42
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-10-14 12:13:17 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
2022-10-17 23:35:13 +08:00
|
|
|
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a buffering voice broadcast should render as expected 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
2022-10-26 19:45:39 +08:00
|
|
|
class="mx_VoiceBroadcastBody"
|
2022-10-17 23:35:13 +08: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 16:04:14 +08:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-17 23:35:13 +08:00
|
|
|
/>
|
2022-10-18 00:13:06 +08:00
|
|
|
<span>
|
|
|
|
@user:example.com
|
|
|
|
</span>
|
2022-10-17 23:35:13 +08:00
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
|
|
>
|
2022-10-20 16:04:14 +08:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-17 23:35:13 +08:00
|
|
|
/>
|
|
|
|
Voice broadcast
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_LiveBadge"
|
|
|
|
>
|
2022-10-20 16:04:14 +08:00
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
2022-10-17 23:35:13 +08:00
|
|
|
/>
|
|
|
|
Live
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
2022-10-26 19:45:39 +08:00
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
2022-10-17 23:35:13 +08:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Spinner"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Loading..."
|
|
|
|
class="mx_Spinner_icon"
|
2022-10-20 19:48:25 +08:00
|
|
|
data-testid="spinner"
|
2022-10-17 23:35:13 +08:00
|
|
|
role="progressbar"
|
|
|
|
style="width: 32px; height: 32px;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-01 01:35:02 +08:00
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
|
|
|
23:42
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a stopped broadcast and the length updated 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
|
|
|
|
class="mx_LiveBadge"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
Live
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_controls"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="play voice broadcast"
|
|
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_Icon mx_Icon_16"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_VoiceBroadcastBody_timerow"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_Clock"
|
|
|
|
>
|
|
|
|
00:42
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-10-17 23:35:13 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|