Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Force verification even for refreshed clients #617

Force verification even for refreshed clients

Force verification even for refreshed clients #617

Triggered via pull request October 2, 2024 13:40
Status Failure
Total duration 5m 7s
Artifacts 1

tests.yml

on: pull_request
Matrix: Jest
Element Web Integration Tests
1m 58s
Element Web Integration Tests
jest-tests
2s
jest-tests
Fit to window
Zoom out
Zoom in

Annotations

11 errors
<MatrixChat /> › when query params have a OIDC params › should make correct request to complete authorization: src/settings/controllers/DeviceIsolationModeController.ts#L32
TypeError: client.getCrypto(...)?.setDeviceIsolationMode is not a function at setDeviceIsolationMode (src/settings/controllers/DeviceIsolationModeController.ts:32:25) at MatrixClientPegClass.initClientCrypto (src/MatrixClientPeg.ts:348:31) at MatrixClientPegClass.assign (src/MatrixClientPeg.ts:292:13) at MatrixClientPegClass.start (src/MatrixClientPeg.ts:358:22) at startMatrixClient (src/Lifecycle.ts:1030:9) at doSetLoggedIn (src/Lifecycle.ts:843:9) at Object.restoreSessionFromStorage (src/Lifecycle.ts:597:9) at MatrixChat.initSession (src/components/structures/MatrixChat.tsx:383:13)
<MatrixChat /> › when query params have a OIDC params › should look up userId using access token: src/settings/controllers/DeviceIsolationModeController.ts#L32
TypeError: client.getCrypto(...)?.setDeviceIsolationMode is not a function at setDeviceIsolationMode (src/settings/controllers/DeviceIsolationModeController.ts:32:25) at MatrixClientPegClass.initClientCrypto (src/MatrixClientPeg.ts:348:31) at MatrixClientPegClass.assign (src/MatrixClientPeg.ts:292:13) at MatrixClientPegClass.start (src/MatrixClientPeg.ts:358:22) at startMatrixClient (src/Lifecycle.ts:1030:9) at doSetLoggedIn (src/Lifecycle.ts:843:9) at Object.restoreSessionFromStorage (src/Lifecycle.ts:597:9) at MatrixChat.initSession (src/components/structures/MatrixChat.tsx:383:13)
<MatrixChat /> › when query params have a OIDC params › should call onTokenLoginCompleted: src/settings/controllers/DeviceIsolationModeController.ts#L32
TypeError: client.getCrypto(...)?.setDeviceIsolationMode is not a function at setDeviceIsolationMode (src/settings/controllers/DeviceIsolationModeController.ts:32:25) at MatrixClientPegClass.initClientCrypto (src/MatrixClientPeg.ts:348:31) at MatrixClientPegClass.assign (src/MatrixClientPeg.ts:292:13) at MatrixClientPegClass.start (src/MatrixClientPeg.ts:358:22) at startMatrixClient (src/Lifecycle.ts:1030:9) at doSetLoggedIn (src/Lifecycle.ts:843:9) at Object.restoreSessionFromStorage (src/Lifecycle.ts:597:9) at MatrixChat.initSession (src/components/structures/MatrixChat.tsx:383:13)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should persist login credentials: src/settings/controllers/DeviceIsolationModeController.ts#L32
TypeError: client.getCrypto(...)?.setDeviceIsolationMode is not a function at setDeviceIsolationMode (src/settings/controllers/DeviceIsolationModeController.ts:32:25) at MatrixClientPegClass.initClientCrypto (src/MatrixClientPeg.ts:348:31) at MatrixClientPegClass.assign (src/MatrixClientPeg.ts:292:13) at MatrixClientPegClass.start (src/MatrixClientPeg.ts:358:22) at startMatrixClient (src/Lifecycle.ts:1030:9) at doSetLoggedIn (src/Lifecycle.ts:843:9) at Object.restoreSessionFromStorage (src/Lifecycle.ts:597:9) at MatrixChat.initSession (src/components/structures/MatrixChat.tsx:383:13)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should store clientId and issuer in session storage: src/settings/controllers/DeviceIsolationModeController.ts#L32
TypeError: client.getCrypto(...)?.setDeviceIsolationMode is not a function at setDeviceIsolationMode (src/settings/controllers/DeviceIsolationModeController.ts:32:25) at MatrixClientPegClass.initClientCrypto (src/MatrixClientPeg.ts:348:31) at MatrixClientPegClass.assign (src/MatrixClientPeg.ts:292:13) at MatrixClientPegClass.start (src/MatrixClientPeg.ts:358:22) at startMatrixClient (src/Lifecycle.ts:1030:9) at doSetLoggedIn (src/Lifecycle.ts:843:9) at Object.restoreSessionFromStorage (src/Lifecycle.ts:597:9) at MatrixChat.initSession (src/components/structures/MatrixChat.tsx:383:13)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should set logged in and start MatrixClient: test/components/structures/MatrixChat-test.tsx#L513
expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: {"action": "client_started"} Received 1 Object { - "action": "client_started", + "action": "on_logged_in", }, + false, 2 Object { - "action": "client_started", + "action": "will_start_client", }, + true, 3 Object { - "action": "client_started", + "action": "do_after_sync_prepared", + "deferred_action": Object { + "action": "setup_mjolnir", + }, }, Number of calls: 5 Ignored nodes: comments, script, style <html data-whatclasses="mx_Dialog_primary" data-whatelement="button" > <head> <title> Test </title> </head> <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> </html> at toHaveBeenCalledWith (test/components/structures/MatrixChat-test.tsx:513:56) at runWithExpensiveErrorDiagnosticsDisabled (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:47:12) at checkCallback (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:127:77) at checkRealTimersCallback (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:121:16) at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should set logged in and start MatrixClient: src/settings/controllers/DeviceIsolationModeController.ts#L32
TypeError: client.getCrypto(...)?.setDeviceIsolationMode is not a function at setDeviceIsolationMode (src/settings/controllers/DeviceIsolationModeController.ts:32:25) at MatrixClientPegClass.initClientCrypto (src/MatrixClientPeg.ts:348:31) at MatrixClientPegClass.assign (src/MatrixClientPeg.ts:292:13) at MatrixClientPegClass.start (src/MatrixClientPeg.ts:358:22) at startMatrixClient (src/Lifecycle.ts:1030:9) at doSetLoggedIn (src/Lifecycle.ts:843:9) at Object.restoreSessionFromStorage (src/Lifecycle.ts:597:9) at MatrixChat.initSession (src/components/structures/MatrixChat.tsx:383:13)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should persist device language when available: src/settings/controllers/DeviceIsolationModeController.ts#L32
TypeError: client.getCrypto(...)?.setDeviceIsolationMode is not a function at setDeviceIsolationMode (src/settings/controllers/DeviceIsolationModeController.ts:32:25) at MatrixClientPegClass.initClientCrypto (src/MatrixClientPeg.ts:348:31) at MatrixClientPegClass.assign (src/MatrixClientPeg.ts:292:13) at MatrixClientPegClass.start (src/MatrixClientPeg.ts:358:22) at startMatrixClient (src/Lifecycle.ts:1030:9) at doSetLoggedIn (src/Lifecycle.ts:843:9) at Object.restoreSessionFromStorage (src/Lifecycle.ts:597:9) at MatrixChat.initSession (src/components/structures/MatrixChat.tsx:383:13)
<MatrixChat /> › when query params have a OIDC params › when login succeeds › should not persist device language when not available: src/settings/controllers/DeviceIsolationModeController.ts#L32
TypeError: client.getCrypto(...)?.setDeviceIsolationMode is not a function at setDeviceIsolationMode (src/settings/controllers/DeviceIsolationModeController.ts:32:25) at MatrixClientPegClass.initClientCrypto (src/MatrixClientPeg.ts:348:31) at MatrixClientPegClass.assign (src/MatrixClientPeg.ts:292:13) at MatrixClientPegClass.start (src/MatrixClientPeg.ts:358:22) at startMatrixClient (src/Lifecycle.ts:1030:9) at doSetLoggedIn (src/Lifecycle.ts:843:9) at Object.restoreSessionFromStorage (src/Lifecycle.ts:597:9) at MatrixChat.initSession (src/components/structures/MatrixChat.tsx:383:13)
<MatrixChat /> › with an existing session › should render welcome page after login: test/components/structures/MatrixChat-test.tsx#L588
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 class="mx_Dialog_wrapper" > <div class="mx_Dialog_border _glass_1x9g9_17" > <div class="mx_Dialog" > <div data-focus-guard="true" style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;" tabindex="0" /> <div aria-describedby="mx_Dialog_content" aria-labelledby="mx_BaseDialog_title" class="mx_ErrorDialog mx_Dialog_fixedWidth" data-focus-lock-disabled="false" role="dialog" > <div class="mx_Dialog_header" > <h1 class="mx_Heading_h3 mx_Dialog_title" id="mx_BaseDialog_title" > Unable to restore session </h1> </div> <div class="mx_Dialog_content" id="mx_Dialog_content" > <p> We encountered an error trying to restore your previous session. </p> <p> If you have previously used a more recent version of Test, your session may be incompatible with this version. Close this window and return to the more recent version. </p> <p> Clearing your browser's storage may fix the problem, but will sign you out and cause any encrypted chat history to become unreadable. </p> </div> <div class="mx_Dialog_buttons" > <span class="mx_Dialog_buttons_row" > <button class="danger" > Clear Storage and Sign Out </button> <button class="mx_Dialog_primary" data-testid="dialog-primary-button" type="button" > Refresh </button> </span> </div> </div> <div data-focus-guard="true" style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;" tabindex="0" /> </div> </div> <div class="mx_Dialog_background" data-testid="dialog-background" /> </div> </div> <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 class="mx_LoginSplashView_splashButtons" > <div class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline" role="button" tabindex="0" > Logout </div> </div> </div> </div> </body> at waitForWrapper (node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/wait-for.js:166:27) at node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:86:33 at Object.findByLabelText (test/components/structures/MatrixChat-test.tsx:588:26)
jest-tests
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
coverage-1
396 KB