This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Update to React 18 #27985
Annotations
6 errors
test/components/views/settings/tabs/user/SessionManagerTab-test.tsx#L1757
TestingLibraryElementError: Unable to find an element with the text: Link new device. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div
id="mx_Dialog_Container"
/>
<div
id="mx_Dialog_StaticContainer"
/>
<div
id="mx_ContextualMenu_Container"
/>
<div>
<div
class="mx_SettingsTab"
>
<div
class="mx_SettingsTab_sections"
>
<div
class="mx_SettingsSection"
>
<div
class="mx_SettingsSection_subSections"
>
<div
class="mx_SettingsSubsection"
data-testid="current-session-section"
>
<div
class="mx_SettingsSubsectionHeading"
>
<h3
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
>
Current session
</h3>
<div
aria-disabled="true"
aria-expanded="false"
aria-haspopup="true"
aria-label="Options"
class="mx_AccessibleButton mx_AccessibleButton_disabled"
data-testid="current-session-menu"
disabled=""
role="button"
tabindex="0"
>
<div
class="mx_KebabContextMenu_icon"
/>
</div>
</div>
<div
class="mx_SettingsSubsection_content"
>
<div
class="mx_Spinner"
>
<div
aria-label="Loading…"
class="mx_Spinner_icon"
data-testid="spinner"
role="progressbar"
style="width: 32px; height: 32px;"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (test/components/views/settings/tabs/user/SessionManagerTab-test.tsx:1757:20)
|
test/components/views/rooms/MemberList-test.tsx#L447
Found multiple elements with the role "button" and name "Invite to this room"
Here are the matching elements:
Ignored nodes: comments, script, style
<button
aria-disabled="true"
class="_button_zt6rp_17 mx_MemberList_invite"
data-kind="secondary"
data-size="sm"
role="button"
tabindex="0"
>
<div
height="1em"
width="1em"
/>
Invite to this room
</button>
Ignored nodes: comments, script, style
<button
aria-disabled="false"
class="_button_zt6rp_17 mx_MemberList_invite"
data-kind="secondary"
data-size="sm"
role="button"
tabindex="0"
>
<div
height="1em"
width="1em"
/>
Invite to this room
</button>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<div
aria-labelledby="memberlist-panel-tab"
class="mx_BaseCard mx_MemberList"
id="memberlist-panel"
role="tabpanel"
>
<div
class="mx_BaseCard_header"
>
<div
class="mx_BaseCard_header_spacer"
/>
<button
class="_icon-button_bh2qc_17 _subtle-bg_bh2qc_38"
data-testid="base-card-close-button"
role="button"
style="--cpd-icon-button-size: 28px;"
tabindex="0"
>
<div
class="_indicator-icon_133tf_26"
style="--cpd-icon-button-size: 100%;"
>
<svg
fill="currentColor"
height="1em"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6.293 6.293a1 1 0 0 1 1.414 0L12 10.586l4.293-4.293a1 1 0 1 1 1.414 1.414L13.414 12l4.293 4.293a1 1 0 0 1-1.414 1.414L12 13.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L10.586 12 6.293 7.707a1 1 0 0 1 0-1.414Z"
/>
</svg>
</div>
</button>
</div>
<div
class="mx_AutoHideScrollbar"
tabindex="-1"
>
<button
aria-disabled="true"
class="_button_zt6rp_17 mx_MemberList_invite"
data-kind="secondary"
data-size="sm"
role="button"
tabindex="0"
>
<div
height="1em"
width="1em"
/>
Invite to this room
</button>
<div
class="mx_MemberList_wrapper"
>
<div
class="mx_MemberList_section mx_MemberList_joined"
role="list"
>
<div>
<div
aria-label="@Admin0:localhost (power 100)"
class="mx_AccessibleButton mx_EntityTile mx_EntityTile_online"
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="5"
data-testid="avatar-img"
data-type="round"
role="presentation"
style="--cpd-avatar-size: 36px;"
title="@Admin0:localhost"
>
a
</span>
</div>
<div
class="mx_EntityTile_details"
>
<div
class="mx_EntityTile_name"
>
<div
class="mx_DisambiguatedProfile"
>
<span
class=""
dir="auto"
>
@Admin0:localhost
</span>
</div>
</div>
<div
class="mx_PresenceLabel"
>
Online
</div>
|
test/languageHandler-test.tsx#L150
expect(received).toStrictEqual(expected) // deep equality
Expected: "This email address is already in use (test@example.com)"
Received: "This email address is already in use (%(email)s)"
at Object.toStrictEqual (test/languageHandler-test.tsx:150:43)
|
test/languageHandler-test.tsx#L165
expect(received).toStrictEqual(expected) // deep equality
Expected: [Error: Fake underlying error]
Received: undefined
at Object.toStrictEqual (test/languageHandler-test.tsx:165:41)
|
test/components/views/dialogs/LogoutDialog-test.tsx#L71
expect(received).toMatchSnapshot()
Snapshot name: `LogoutDialog Prompts user to set up backup if there is no backup on the server 1`
- Snapshot - 1
+ Received + 0
@@ -68,11 +68,10 @@
</button>
</p>
</details>
</div>
<div
- aria-describedby=":rs:"
aria-label="Close dialog"
class="mx_AccessibleButton mx_Dialog_cancelButton"
role="button"
tabindex="0"
/>
at Object.toMatchSnapshot (test/components/views/dialogs/LogoutDialog-test.tsx:71:36)
|
|
This job failed
Loading