mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-25 01:48:43 +08:00
2cee8a4b01
* Specify lazy loading for avatars so browser doesn't fetch eagerly if off-screen * Update snapshots
75 lines
1.6 KiB
Plaintext
75 lines
1.6 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||
|
||
exports[`RoomTile should render the room 1`] = `
|
||
<div>
|
||
<div
|
||
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>
|
||
</div>
|
||
`;
|