2022-12-06 17:56:29 +08:00
|
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
2023-06-01 15:53:48 +08:00
|
|
|
|
exports[`RoomTile when message previews are enabled and there is a message in a thread should render as expected 1`] = `
|
|
|
|
|
<DocumentFragment>
|
|
|
|
|
<div
|
|
|
|
|
aria-describedby="mx_RoomTile_messagePreview_!1:example.org"
|
|
|
|
|
aria-label="!1:example.org"
|
|
|
|
|
aria-selected="false"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile"
|
|
|
|
|
role="treeitem"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_DecoratedRoomAvatar"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_BaseAvatar"
|
|
|
|
|
role="presentation"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
|
style="font-size: 20.8px; width: 32px; line-height: 32px;"
|
|
|
|
|
>
|
|
|
|
|
!
|
|
|
|
|
</span>
|
|
|
|
|
<img
|
|
|
|
|
alt=""
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
|
data-testid="avatar-img"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
|
style="width: 32px; height: 32px;"
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_titleContainer"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_title mx_RoomTile_titleWithSubtitle"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
title="!1:example.org"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
dir="auto"
|
|
|
|
|
>
|
|
|
|
|
!1:example.org
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_subtitle"
|
|
|
|
|
id="mx_RoomTile_messagePreview_!1:example.org"
|
|
|
|
|
title="test thread reply"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_RoomTile_subtitle_text"
|
|
|
|
|
>
|
|
|
|
|
test thread reply
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_RoomTile_badgeContainer"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Room options"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile_menuButton"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Notification options"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile_notificationsButton"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</DocumentFragment>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`RoomTile when message previews are enabled and there is a message in the room should render as expected 1`] = `
|
|
|
|
|
<DocumentFragment>
|
|
|
|
|
<div
|
|
|
|
|
aria-describedby="mx_RoomTile_messagePreview_!1:example.org"
|
|
|
|
|
aria-label="!1:example.org"
|
|
|
|
|
aria-selected="false"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile"
|
|
|
|
|
role="treeitem"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_DecoratedRoomAvatar"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_BaseAvatar"
|
|
|
|
|
role="presentation"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
|
style="font-size: 20.8px; width: 32px; line-height: 32px;"
|
|
|
|
|
>
|
|
|
|
|
!
|
|
|
|
|
</span>
|
|
|
|
|
<img
|
|
|
|
|
alt=""
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
|
data-testid="avatar-img"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
|
style="width: 32px; height: 32px;"
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_titleContainer"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_title mx_RoomTile_titleWithSubtitle"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
title="!1:example.org"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
dir="auto"
|
|
|
|
|
>
|
|
|
|
|
!1:example.org
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_subtitle"
|
|
|
|
|
id="mx_RoomTile_messagePreview_!1:example.org"
|
|
|
|
|
title="test message"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_RoomTile_subtitle_text"
|
|
|
|
|
>
|
|
|
|
|
test message
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_RoomTile_badgeContainer"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Room options"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile_menuButton"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Notification options"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile_notificationsButton"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</DocumentFragment>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`RoomTile when message previews are enabled should render a room without a message as expected 1`] = `
|
|
|
|
|
<DocumentFragment>
|
|
|
|
|
<div
|
|
|
|
|
aria-describedby="mx_RoomTile_messagePreview_!1:example.org"
|
|
|
|
|
aria-label="!1:example.org"
|
|
|
|
|
aria-selected="false"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile"
|
|
|
|
|
role="treeitem"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_DecoratedRoomAvatar"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_BaseAvatar"
|
|
|
|
|
role="presentation"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
|
style="font-size: 20.8px; width: 32px; line-height: 32px;"
|
|
|
|
|
>
|
|
|
|
|
!
|
|
|
|
|
</span>
|
|
|
|
|
<img
|
|
|
|
|
alt=""
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
|
data-testid="avatar-img"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
|
style="width: 32px; height: 32px;"
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_titleContainer"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_title"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
title="!1:example.org"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
dir="auto"
|
|
|
|
|
>
|
|
|
|
|
!1:example.org
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_RoomTile_badgeContainer"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Room options"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile_menuButton"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Notification options"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile_notificationsButton"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</DocumentFragment>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`RoomTile when message previews are not enabled should render the room 1`] = `
|
2022-12-06 17:56:29 +08:00
|
|
|
|
<div>
|
|
|
|
|
<div
|
2023-01-11 19:49:03 +08:00
|
|
|
|
aria-label="!1:example.org"
|
2022-12-06 17:56:29 +08:00
|
|
|
|
aria-selected="false"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile"
|
|
|
|
|
role="treeitem"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_DecoratedRoomAvatar"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_BaseAvatar"
|
|
|
|
|
role="presentation"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
aria-hidden="true"
|
2023-02-02 18:22:19 +08:00
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
|
style="font-size: 20.8px; width: 32px; line-height: 32px;"
|
2022-12-06 17:56:29 +08:00
|
|
|
|
>
|
|
|
|
|
!
|
|
|
|
|
</span>
|
2023-02-02 18:22:19 +08:00
|
|
|
|
<img
|
|
|
|
|
alt=""
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
|
data-testid="avatar-img"
|
2023-05-12 02:29:48 +08:00
|
|
|
|
loading="lazy"
|
2023-02-02 18:22:19 +08:00
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
|
style="width: 32px; height: 32px;"
|
|
|
|
|
/>
|
2022-12-06 17:56:29 +08:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_RoomTile_titleContainer"
|
|
|
|
|
>
|
|
|
|
|
<div
|
2023-01-11 19:49:03 +08:00
|
|
|
|
class="mx_RoomTile_title"
|
2022-12-06 17:56:29 +08:00
|
|
|
|
tabindex="-1"
|
|
|
|
|
title="!1:example.org"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
dir="auto"
|
|
|
|
|
>
|
|
|
|
|
!1:example.org
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
class="mx_RoomTile_badgeContainer"
|
2023-01-11 19:49:03 +08:00
|
|
|
|
/>
|
2022-12-06 17:56:29 +08:00
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Room options"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile_menuButton"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Notification options"
|
|
|
|
|
class="mx_AccessibleButton mx_RoomTile_notificationsButton"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|