2022-10-12 14:00:37 +00:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
2022-11-30 10:43:58 +00:00
exports[`VoiceBroadcastHeader when rendering a buffering live broadcast header with broadcast info should render the header with a red live badge 1`] = `
<div>
<div
class="mx_VoiceBroadcastHeader"
>
<div
data-testid="room-avatar"
>
room avatar:
!room:example.com
</div>
<div
class="mx_VoiceBroadcastHeader_content"
>
<div
2022-12-15 11:43:01 +00:00
class="mx_VoiceBroadcastHeader_room_wrapper"
2022-11-30 10:43:58 +00:00
>
2022-12-15 11:43:01 +00:00
<div
class="mx_VoiceBroadcastHeader_room"
>
!room:example.com
</div>
2022-11-30 10:43:58 +00:00
</div>
<div
2022-12-08 14:27:32 +00:00
aria-label="Change input device"
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
role="button"
tabindex="0"
2022-11-30 10:43:58 +00:00
>
2024-10-08 12:00:37 +00:00
<svg
2022-11-30 10:43:58 +00:00
class="mx_Icon mx_Icon_16"
2024-10-08 12:00:37 +00:00
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8 6a4 4 0 1 1 8 0v6a4 4 0 0 1-8 0V6Z"
/>
<path
d="M5 11a1 1 0 0 1 1 1 6 6 0 0 0 12 0 1 1 0 1 1 2 0 8.001 8.001 0 0 1-7 7.938V21a1 1 0 1 1-2 0v-1.062A8.001 8.001 0 0 1 4 12a1 1 0 0 1 1-1Z"
/>
</svg>
2022-11-30 10:43:58 +00:00
<span>
test user
</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-11-16 15:13:59 +00:00
exports[`VoiceBroadcastHeader when rendering a live (grey) broadcast header with broadcast info should render the header with a grey live badge 1`] = `
<div>
<div
class="mx_VoiceBroadcastHeader"
>
<div
data-testid="room-avatar"
>
room avatar:
!room:example.com
</div>
<div
class="mx_VoiceBroadcastHeader_content"
>
<div
2022-12-15 11:43:01 +00:00
class="mx_VoiceBroadcastHeader_room_wrapper"
2022-11-16 15:13:59 +00:00
>
2022-12-15 11:43:01 +00:00
<div
class="mx_VoiceBroadcastHeader_room"
>
!room:example.com
</div>
2022-11-16 15:13:59 +00:00
</div>
<div
2022-12-08 14:27:32 +00:00
aria-label="Change input device"
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
role="button"
tabindex="0"
2022-11-16 15:13:59 +00:00
>
2024-10-08 12:00:37 +00:00
<svg
2022-11-16 15:13:59 +00:00
class="mx_Icon mx_Icon_16"
2024-10-08 12:00:37 +00:00
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8 6a4 4 0 1 1 8 0v6a4 4 0 0 1-8 0V6Z"
/>
<path
d="M5 11a1 1 0 0 1 1 1 6 6 0 0 0 12 0 1 1 0 1 1 2 0 8.001 8.001 0 0 1-7 7.938V21a1 1 0 1 1-2 0v-1.062A8.001 8.001 0 0 1 4 12a1 1 0 0 1 1-1Z"
/>
</svg>
2022-11-16 15:13:59 +00:00
<span>
test user
</span>
</div>
<div
class="mx_VoiceBroadcastHeader_line"
>
<div
class="mx_Icon mx_Icon_16"
/>
Voice broadcast
</div>
</div>
<div
class="mx_LiveBadge mx_LiveBadge--grey"
>
<div
class="mx_Icon mx_Icon_16"
/>
Live
</div>
</div>
</div>
`;
exports[`VoiceBroadcastHeader when rendering a live broadcast header with broadcast info should render the header with a red live badge 1`] = `
2022-10-12 14:00:37 +00:00
<div>
<div
class="mx_VoiceBroadcastHeader"
>
2022-10-14 08:09:38 +00:00
<div
data-testid="room-avatar"
2022-10-12 14:00:37 +00:00
>
2022-10-14 08:09:38 +00:00
room avatar:
!room:example.com
</div>
2022-10-12 14:00:37 +00:00
<div
class="mx_VoiceBroadcastHeader_content"
>
<div
2022-12-15 11:43:01 +00:00
class="mx_VoiceBroadcastHeader_room_wrapper"
2022-10-12 14:00:37 +00:00
>
2022-12-15 11:43:01 +00:00
<div
class="mx_VoiceBroadcastHeader_room"
>
!room:example.com
</div>
2022-10-12 14:00:37 +00:00
</div>
<div
2022-12-08 14:27:32 +00:00
aria-label="Change input device"
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
role="button"
tabindex="0"
2022-10-12 14:00:37 +00:00
>
2024-10-08 12:00:37 +00:00
<svg
2022-10-20 08:04:14 +00:00
class="mx_Icon mx_Icon_16"
2024-10-08 12:00:37 +00:00
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8 6a4 4 0 1 1 8 0v6a4 4 0 0 1-8 0V6Z"
/>
<path
d="M5 11a1 1 0 0 1 1 1 6 6 0 0 0 12 0 1 1 0 1 1 2 0 8.001 8.001 0 0 1-7 7.938V21a1 1 0 1 1-2 0v-1.062A8.001 8.001 0 0 1 4 12a1 1 0 0 1 1-1Z"
/>
</svg>
2022-10-17 16:13:06 +00:00
<span>
test user
</span>
2022-10-12 14:00:37 +00:00
</div>
<div
class="mx_VoiceBroadcastHeader_line"
>
2022-10-20 08:04:14 +00:00
<div
class="mx_Icon mx_Icon_16"
2022-10-12 14:00:37 +00:00
/>
Voice broadcast
</div>
2022-11-30 10:43:58 +00:00
<div
class="mx_VoiceBroadcastHeader_line"
>
<div
class="mx_Spinner"
>
<div
2023-02-14 09:05:01 +00:00
aria-label="Loading…"
2022-11-30 10:43:58 +00:00
class="mx_Spinner_icon"
data-testid="spinner"
role="progressbar"
style="width: 14px; height: 14px;"
/>
</div>
Buffering…
</div>
2022-10-12 14:00:37 +00:00
</div>
<div
class="mx_LiveBadge"
>
2022-10-20 08:04:14 +00:00
<div
class="mx_Icon mx_Icon_16"
2022-10-12 14:00:37 +00:00
/>
Live
</div>
</div>
</div>
`;
exports[`VoiceBroadcastHeader when rendering a non-live broadcast header should render the header without a live badge 1`] = `
<div>
<div
class="mx_VoiceBroadcastHeader"
>
2022-10-14 08:09:38 +00:00
<div
data-testid="room-avatar"
2022-10-12 14:00:37 +00:00
>
2022-10-14 08:09:38 +00:00
room avatar:
!room:example.com
</div>
2022-10-12 14:00:37 +00:00
<div
class="mx_VoiceBroadcastHeader_content"
>
<div
2022-12-15 11:43:01 +00:00
class="mx_VoiceBroadcastHeader_room_wrapper"
2022-10-12 14:00:37 +00:00
>
2022-12-15 11:43:01 +00:00
<div
class="mx_VoiceBroadcastHeader_room"
>
!room:example.com
</div>
2022-10-12 14:00:37 +00:00
</div>
<div
2022-12-08 14:27:32 +00:00
aria-label="Change input device"
class="mx_AccessibleButton mx_VoiceBroadcastHeader_line"
role="button"
tabindex="0"
2022-10-12 14:00:37 +00:00
>
2024-10-08 12:00:37 +00:00
<svg
2022-10-20 08:04:14 +00:00
class="mx_Icon mx_Icon_16"
2024-10-08 12:00:37 +00:00
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8 6a4 4 0 1 1 8 0v6a4 4 0 0 1-8 0V6Z"
/>
<path
d="M5 11a1 1 0 0 1 1 1 6 6 0 0 0 12 0 1 1 0 1 1 2 0 8.001 8.001 0 0 1-7 7.938V21a1 1 0 1 1-2 0v-1.062A8.001 8.001 0 0 1 4 12a1 1 0 0 1 1-1Z"
/>
</svg>
2022-10-17 16:13:06 +00:00
<span>
test user
</span>
2022-10-12 14:00:37 +00:00
</div>
</div>
</div>
</div>
`;