mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 17:24:50 +03:00
e1d631cb47
* Fix Voice Broadcast live badge position * Prevent voice broadcast header overflow * Fix VoiceBroadcastPlaybackBody-test
158 lines
3.8 KiB
Text
158 lines
3.8 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a broadcast should render as expected 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_VoiceBroadcastPlaybackBody"
|
|
>
|
|
<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"
|
|
>
|
|
<i
|
|
aria-hidden="true"
|
|
class="mx_Icon mx_Icon_16 mx_Icon_compound-secondary-content"
|
|
role="presentation"
|
|
style="mask-image: url(\\"image-file-stub\\");"
|
|
/>
|
|
<span>
|
|
@user:example.com
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
>
|
|
<i
|
|
aria-hidden="true"
|
|
class="mx_Icon mx_Icon_16 mx_Icon_compound-secondary-content"
|
|
role="presentation"
|
|
style="mask-image: url(\\"image-file-stub\\");"
|
|
/>
|
|
Voice broadcast
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_LiveBadge"
|
|
>
|
|
<i
|
|
aria-hidden="true"
|
|
class="mx_Icon mx_Icon_16 mx_Icon_live-badge"
|
|
role="presentation"
|
|
style="mask-image: url(\\"image-file-stub\\");"
|
|
/>
|
|
Live
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_VoiceBroadcastPlaybackBody_controls"
|
|
>
|
|
<div
|
|
aria-label="resume voice broadcast"
|
|
class="mx_AccessibleButton mx_BroadcastPlaybackControlButton"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
<i
|
|
aria-hidden="true"
|
|
class="mx_Icon mx_Icon_16 mx_Icon_compound-secondary-content"
|
|
role="presentation"
|
|
style="mask-image: url(\\"image-file-stub\\");"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a buffering voice broadcast should render as expected 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_VoiceBroadcastPlaybackBody"
|
|
>
|
|
<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"
|
|
>
|
|
<i
|
|
aria-hidden="true"
|
|
class="mx_Icon mx_Icon_16 mx_Icon_compound-secondary-content"
|
|
role="presentation"
|
|
style="mask-image: url(\\"image-file-stub\\");"
|
|
/>
|
|
<span>
|
|
@user:example.com
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="mx_VoiceBroadcastHeader_line"
|
|
>
|
|
<i
|
|
aria-hidden="true"
|
|
class="mx_Icon mx_Icon_16 mx_Icon_compound-secondary-content"
|
|
role="presentation"
|
|
style="mask-image: url(\\"image-file-stub\\");"
|
|
/>
|
|
Voice broadcast
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_LiveBadge"
|
|
>
|
|
<i
|
|
aria-hidden="true"
|
|
class="mx_Icon mx_Icon_16 mx_Icon_live-badge"
|
|
role="presentation"
|
|
style="mask-image: url(\\"image-file-stub\\");"
|
|
/>
|
|
Live
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_VoiceBroadcastPlaybackBody_controls"
|
|
>
|
|
<div
|
|
class="mx_Spinner"
|
|
>
|
|
<div
|
|
aria-label="Loading..."
|
|
class="mx_Spinner_icon"
|
|
role="progressbar"
|
|
style="width: 32px; height: 32px;"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|