mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 05:00:31 +03:00
2cee8a4b01
* Specify lazy loading for avatars so browser doesn't fetch eagerly if off-screen * Update snapshots
79 lines
1.7 KiB
Text
79 lines
1.7 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`RoomAvatar should render as expected for a DM room 1`] = `
|
|
<div>
|
|
<span
|
|
class="mx_BaseAvatar"
|
|
role="presentation"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="mx_BaseAvatar_initial"
|
|
style="font-size: 23.400000000000002px; width: 36px; line-height: 36px;"
|
|
>
|
|
D
|
|
</span>
|
|
<img
|
|
alt=""
|
|
aria-hidden="true"
|
|
class="mx_BaseAvatar_image"
|
|
data-testid="avatar-img"
|
|
loading="lazy"
|
|
src="data:image/png;base64,00"
|
|
style="width: 36px; height: 36px;"
|
|
/>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`RoomAvatar should render as expected for a LocalRoom 1`] = `
|
|
<div>
|
|
<span
|
|
class="mx_BaseAvatar"
|
|
role="presentation"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="mx_BaseAvatar_initial"
|
|
style="font-size: 23.400000000000002px; width: 36px; line-height: 36px;"
|
|
>
|
|
L
|
|
</span>
|
|
<img
|
|
alt=""
|
|
aria-hidden="true"
|
|
class="mx_BaseAvatar_image"
|
|
data-testid="avatar-img"
|
|
loading="lazy"
|
|
src="data:image/png;base64,00"
|
|
style="width: 36px; height: 36px;"
|
|
/>
|
|
</span>
|
|
</div>
|
|
`;
|
|
|
|
exports[`RoomAvatar should render as expected for a Room 1`] = `
|
|
<div>
|
|
<span
|
|
class="mx_BaseAvatar"
|
|
role="presentation"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="mx_BaseAvatar_initial"
|
|
style="font-size: 23.400000000000002px; width: 36px; line-height: 36px;"
|
|
>
|
|
T
|
|
</span>
|
|
<img
|
|
alt=""
|
|
aria-hidden="true"
|
|
class="mx_BaseAvatar_image"
|
|
data-testid="avatar-img"
|
|
loading="lazy"
|
|
src="data:image/png;base64,00"
|
|
style="width: 36px; height: 36px;"
|
|
/>
|
|
</span>
|
|
</div>
|
|
`;
|