mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-28 19:38:48 +08:00
b422641258
* Upgrade compound-web I forgot to include this in https://github.com/matrix-org/matrix-react-sdk/pull/12209, which has caused avatar and username colors to be out of sync and sometimes revert to plain black/white. * Update tests * Update tests
161 lines
3.5 KiB
Plaintext
161 lines
3.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`MemberTile should display an verified E2EIcon when the e2E status = Verified 1`] = `
|
|
<div>
|
|
<div>
|
|
<div
|
|
class="mx_AccessibleButton mx_EntityTile mx_EntityTile_offline_neveractive"
|
|
role="button"
|
|
tabindex="0"
|
|
title="@userId:matrix.org (power 0)"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_avatar"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_k41ul_17 mx_BaseAvatar _avatar-imageless_k41ul_60"
|
|
data-color="2"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 36px;"
|
|
title="@userId:matrix.org"
|
|
>
|
|
u
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="mx_EntityTile_details"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_name"
|
|
>
|
|
<div
|
|
class="mx_DisambiguatedProfile"
|
|
>
|
|
<span
|
|
class=""
|
|
dir="auto"
|
|
>
|
|
@userId:matrix.org
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_PresenceLabel"
|
|
>
|
|
Offline
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`MemberTile should display an warning E2EIcon when the e2E status = Warning 1`] = `
|
|
<div>
|
|
<div>
|
|
<div
|
|
class="mx_AccessibleButton mx_EntityTile mx_EntityTile_offline_neveractive"
|
|
role="button"
|
|
tabindex="0"
|
|
title="@userId:matrix.org (power 0)"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_avatar"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_k41ul_17 mx_BaseAvatar _avatar-imageless_k41ul_60"
|
|
data-color="2"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 36px;"
|
|
title="@userId:matrix.org"
|
|
>
|
|
u
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="mx_EntityTile_details"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_name"
|
|
>
|
|
<div
|
|
class="mx_DisambiguatedProfile"
|
|
>
|
|
<span
|
|
class=""
|
|
dir="auto"
|
|
>
|
|
@userId:matrix.org
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_PresenceLabel"
|
|
>
|
|
Offline
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`MemberTile should not display an E2EIcon when the e2E status = normal 1`] = `
|
|
<div>
|
|
<div>
|
|
<div
|
|
class="mx_AccessibleButton mx_EntityTile mx_EntityTile_offline_neveractive"
|
|
role="button"
|
|
tabindex="0"
|
|
title="@userId:matrix.org (power 0)"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_avatar"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_k41ul_17 mx_BaseAvatar _avatar-imageless_k41ul_60"
|
|
data-color="2"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 36px;"
|
|
title="@userId:matrix.org"
|
|
>
|
|
u
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="mx_EntityTile_details"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_name"
|
|
>
|
|
<div
|
|
class="mx_DisambiguatedProfile"
|
|
>
|
|
<span
|
|
class=""
|
|
dir="auto"
|
|
>
|
|
@userId:matrix.org
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_PresenceLabel"
|
|
>
|
|
Offline
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|