Skip to content

Remove usage of legacyRoot in RTL tests #1015

Remove usage of legacyRoot in RTL tests

Remove usage of legacyRoot in RTL tests #1015

Triggered via pull request November 18, 2024 15:27
Status Failure
Total duration 6m 58s
Artifacts

tests.yml

on: pull_request
Matrix: Jest
jest-tests
2s
jest-tests
Fit to window
Zoom out
Zoom in

Annotations

13 errors
<UserInfo /> › with crypto enabled › should render a deactivate button for users of the same server if we are a server admin: test/unit-tests/components/views/right_panel/UserInfo-test.tsx#L657
expect(received).toMatchSnapshot() Snapshot name: `<UserInfo /> with crypto enabled should render a deactivate button for users of the same server if we are a server admin 1` - Snapshot - 7 + Received + 18 @@ -117,20 +117,20 @@ </h2> <p> Messages in this room are not end-to-end encrypted. </p> <div - class="mx_UserInfo_container_verifyButton" + class="mx_Spinner" > <div - class="mx_AccessibleButton mx_UserInfo_field mx_UserInfo_verifyButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link" - role="button" - tabindex="0" - > - Verify + aria-label="Loading…" + class="mx_Spinner_icon" + data-testid="spinner" + role="progressbar" + style="width: 32px; height: 32px;" + /> </div> - </div> <div class="mx_UserInfo_devices" > <div /> <div> @@ -344,9 +344,20 @@ <path d="M8.7 17.3a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7l3.9-3.9-3.9-3.9a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275l4.6 4.6c.1.1.17.208.213.325.041.117.062.242.062.375s-.02.258-.063.375a.877.877 0 0 1-.212.325l-4.6 4.6a.948.948 0 0 1-.7.275.948.948 0 0 1-.7-.275Z" /> </svg> </button> + </div> + <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> at Object.toMatchSnapshot (test/unit-tests/components/views/right_panel/UserInfo-test.tsx:657:31)
Jest (1)
Process completed with exit code 1.
<ForgotPassword> › when starting a password reset flow › and the server liveness check fails › should show the server error: test/unit-tests/components/structures/auth/ForgotPassword-test.tsx#L166
expect(received).resolves.toBeInTheDocument() Received promise rejected instead of resolved Rejected to value: [TestingLibraryElementError: Unable to find an element with the text: server down. 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> <div class="mx_AuthPage" > <div class="mx_AuthPage_modal" style="position: relative;" > <div class="mx_AuthPage_modalBlur" style="position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; filter: blur(40px);" /> <div class="mx_AuthPage_modalContent" style="display: flex; z-index: 1; background: rgba(255, 255, 255, 0.59); border-radius: 8px;" > <div class="mx_AuthHeader" > <aside class="mx_AuthHeaderLogo" > <img alt="Element" src="themes/element/img/logos/element-logo.svg" /> </aside> <div class="mx_Dropdown mx_LanguageDropdown mx_AuthBody_language" > <div aria-describedby="mx_LanguageDropdown_value" aria-expanded="false" aria-haspopup="listbox" aria-label="Language Dropdown" aria-owns="mx_LanguageDropdown_input" class="mx_AccessibleButton mx_Dropdown_input mx_no_textinput" role="button" tabindex="0" > <div class="mx_Dropdown_option" id="mx_LanguageDropdown_value" > <div> English </div> </div> <span class="mx_Dropdown_arrow" /> </div> </div> </div> <main class="mx_AuthBody mx_AuthBody_forgot-password" > <svg class="mx_AuthBody_icon" fill="currentColor" height="1em" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg" > <path d="M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 5.111a1 1 0 0 0 .514.874l7 3.89a1 1 0 0 0 .972 0l7-3.89a1 1 0 1 0-.972-1.748L12 11.856 5.486 8.237A1 1 0 0 0 4 9.111Z" /> </svg> <h1> Enter your email to reset password </h1> <p class="mx_AuthBody_text" > <span> <strong> example.com </strong> will send you a verification link to let you reset your password. </span> </p> <form> <fieldset> <div class="mx_AuthBody_fieldRow" > <div class="mx_Field mx_Field_input mx_Field_valid" > <input id="mx_Field_7" label="Email address" placeholder="Email address" type="text" value="[email protected]" /> <label for="mx_Field_7" > Email address </label> </div> </div> <button class="mx_Login_submit" type="submit" > Send email </button> <div class="mx_AuthBody_button-container" > <button class="mx_AccessibleButton mx_AuthBody_sign-in-i
<MatrixChat /> › when query params have a OIDC params › should make correct request to complete authorization: test/unit-tests/components/structures/MatrixChat-test.tsx#L252
thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at afterEach (test/unit-tests/components/structures/MatrixChat-test.tsx:252:5) at Object.describe (test/unit-tests/components/structures/MatrixChat-test.tsx:78:1)
<MatrixChat /> › when query params have a OIDC params › should look up userId using access token: test/unit-tests/components/structures/MatrixChat-test.tsx#L252
thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at afterEach (test/unit-tests/components/structures/MatrixChat-test.tsx:252:5) at Object.describe (test/unit-tests/components/structures/MatrixChat-test.tsx:78:1)
<MatrixChat /> › when query params have a OIDC params › should call onTokenLoginCompleted: test/unit-tests/components/structures/MatrixChat-test.tsx#L252
thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at afterEach (test/unit-tests/components/structures/MatrixChat-test.tsx:252:5) at Object.describe (test/unit-tests/components/structures/MatrixChat-test.tsx:78:1)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should persist login credentials: test/unit-tests/components/structures/MatrixChat-test.tsx#L252
thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at afterEach (test/unit-tests/components/structures/MatrixChat-test.tsx:252:5) at Object.describe (test/unit-tests/components/structures/MatrixChat-test.tsx:78:1)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should store clientId and issuer in session storage: test/unit-tests/components/structures/MatrixChat-test.tsx#L252
thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at afterEach (test/unit-tests/components/structures/MatrixChat-test.tsx:252:5) at Object.describe (test/unit-tests/components/structures/MatrixChat-test.tsx:78:1)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should set logged in and start MatrixClient: test/unit-tests/components/structures/MatrixChat-test.tsx#L198
Unable to find a label with the text of: User menu Ignored nodes: comments, script, style <body style="--emoji-font-family: Twemoji;" > <div id="mx_Dialog_StaticContainer" /> <div id="mx_Dialog_Container" /> <div> <div class="mx_MatrixChat_splash" > <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> </body> at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27) at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 at findByLabelText (test/unit-tests/components/structures/MatrixChat-test.tsx:198:26) at Object.waitForSyncAndLoad (test/unit-tests/components/structures/MatrixChat-test.tsx:520:23)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should set logged in and start MatrixClient: test/unit-tests/components/structures/MatrixChat-test.tsx#L252
thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at afterEach (test/unit-tests/components/structures/MatrixChat-test.tsx:252:5) at Object.describe (test/unit-tests/components/structures/MatrixChat-test.tsx:78:1)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should persist device language when available: test/unit-tests/components/structures/MatrixChat-test.tsx#L252
thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at afterEach (test/unit-tests/components/structures/MatrixChat-test.tsx:252:5) at Object.describe (test/unit-tests/components/structures/MatrixChat-test.tsx:78:1)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should not persist device language when not available: test/unit-tests/components/structures/MatrixChat-test.tsx#L252
thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." at afterEach (test/unit-tests/components/structures/MatrixChat-test.tsx:252:5) at Object.describe (test/unit-tests/components/structures/MatrixChat-test.tsx:78:1)
jest-tests
Process completed with exit code 1.