mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-22 18:10:39 +03:00
700b3955a4
* Deprecate AccessibleTooltipButton Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Deprecate AccessibleTooltipButton Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix `UserInfo-test.tsx` * Update `LoginWithQRFlow-test.tsx` snapshot * Remove tooltip provider from test * Fix `AccessibleButton` * Update snapshots * Revert to original import * Use title to populate aria-label * Rollback AccessibleButton or Tooltip changes. Will come in another PR * Rollback en.json change * Update snapshots * Fix `UserInfo` * Update snapshots * Use label instead of title in test * Use label instead of title in TAC test * Use label instead of title in read-receipt test * Remove tooltip for ContextMenu * Add extra information for caption field --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
163 lines
3.6 KiB
Text
163 lines
3.6 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`MemberTile should display an verified E2EIcon when the e2E status = Verified 1`] = `
|
|
<div>
|
|
<div>
|
|
<div
|
|
aria-label="@userId:matrix.org (power 0)"
|
|
class="mx_AccessibleButton mx_EntityTile mx_EntityTile_offline_neveractive"
|
|
data-state="closed"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_avatar"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
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
|
|
aria-label="@userId:matrix.org (power 0)"
|
|
class="mx_AccessibleButton mx_EntityTile mx_EntityTile_offline_neveractive"
|
|
data-state="closed"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_avatar"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
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
|
|
aria-label="@userId:matrix.org (power 0)"
|
|
class="mx_AccessibleButton mx_EntityTile mx_EntityTile_offline_neveractive"
|
|
data-state="closed"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="mx_EntityTile_avatar"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
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>
|
|
`;
|