be281fd735
* Use RelationType enum instead of hardcoded value * Fix threads replies fallback to target last reply * Only unsubscribe from threads events if needed * fix strict null check * fix strict null checks * strict null checks * fix typing * Unsubscribe listeners if new thread is `null` Co-authored-by: Faye Duxovni <fayed@element.io> * Update strict null checks * Type HTMLElement as nullable * Add thread fallback integration test * lint fix * Update snapshots * Add test after changing thread * Remove test comment * update snapshot * fix room context test utility * Add ThreadListContextMenu test * lint fix * fix thread rendering Co-authored-by: Faye Duxovni <fayed@element.io> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
206 lines
4.1 KiB
Text
206 lines
4.1 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a 0 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"
|
|
>
|
|
<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_VoiceBroadcastPlaybackBody_controls"
|
|
>
|
|
<div
|
|
aria-label="resume voice broadcast"
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="mx_Icon mx_Icon_16"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`VoiceBroadcastPlaybackBody when rendering a 1 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"
|
|
>
|
|
<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_VoiceBroadcastPlaybackBody_controls"
|
|
>
|
|
<div
|
|
aria-label="pause voice broadcast"
|
|
class="mx_AccessibleButton mx_VoiceBroadcastControl"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="mx_Icon mx_Icon_16"
|
|
/>
|
|
</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"
|
|
>
|
|
<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_VoiceBroadcastPlaybackBody_controls"
|
|
>
|
|
<div
|
|
class="mx_Spinner"
|
|
>
|
|
<div
|
|
aria-label="Loading..."
|
|
class="mx_Spinner_icon"
|
|
data-testid="spinner"
|
|
role="progressbar"
|
|
style="width: 32px; height: 32px;"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|