Skip to content

Enable key backup by default #1787

Enable key backup by default

Enable key backup by default #1787

Triggered via pull request December 16, 2024 18:17
Status Failure
Total duration 5m 14s
Artifacts 1

tests.yml

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

Annotations

11 errors
<MatrixChat /> › login via key/pass › post login setup › should go to use case selection if user just registered: test/unit-tests/components/structures/MatrixChat-test.tsx#L1126
expect(received).resolves.toBeInTheDocument() Received promise rejected instead of resolved Rejected to value: [TestingLibraryElementError: Unable to find role="heading" and name "You're in"· Ignored nodes: comments, script, style <body style="--emoji-font-family: Twemoji;" > <div id="mx_Dialog_StaticContainer" /> <div id="mx_Dialog_Container" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-0" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-1" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-2" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-3" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-4" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-5" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-6" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-7" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-8" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-9" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-10" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-11" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-12" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-13" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-14" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive" id="rbd-announcement-15" style="position: absolute; width: 1px; height: 1px; margin: -1px; border: 0px; padding: 0px; overflow: hidden; clip-path: inset(100%);" /> <div aria-atomic="true" aria-live="assertive"
<RestoreKeyBackupDialog /> › should render: test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx#L31
Property `getKeyBackupInfo` does not exist in the provided object at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:731:13) at Object.spyOn (test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx:31:14)
<RestoreKeyBackupDialog /> › should display an error when recovery key is invalid: test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx#L31
Property `getKeyBackupInfo` does not exist in the provided object at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:731:13) at Object.spyOn (test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx:31:14)
<RestoreKeyBackupDialog /> › should not raise an error when recovery is valid: test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx#L31
Property `getKeyBackupInfo` does not exist in the provided object at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:731:13) at Object.spyOn (test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx:31:14)
<RestoreKeyBackupDialog /> › should restore key backup when the key is cached: test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx#L31
Property `getKeyBackupInfo` does not exist in the provided object at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:731:13) at Object.spyOn (test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx:31:14)
<RestoreKeyBackupDialog /> › should restore key backup when the key is in secret storage: test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx#L31
Property `getKeyBackupInfo` does not exist in the provided object at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:731:13) at Object.spyOn (test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx:31:14)
<RestoreKeyBackupDialog /> › should restore key backup when security key is filled by user: test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx#L31
Property `getKeyBackupInfo` does not exist in the provided object at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:731:13) at Object.spyOn (test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx:31:14)
<RestoreKeyBackupDialog /> › should restore key backup when passphrase is filled: test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx#L31
Property `getKeyBackupInfo` does not exist in the provided object at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:731:13) at Object.spyOn (test/unit-tests/components/views/dialogs/security/RestoreKeyBackupDialog-test.tsx:31:14)
CreateSecretStorageDialog › handles the happy path: test/unit-tests/components/views/dialogs/security/CreateSecretStorageDialog-test.tsx#L58
Unable to find an element with the text: Your keys are now being backed up from this 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> <div data-focus-guard="true" style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;" tabindex="0" /> <div aria-labelledby="mx_BaseDialog_title" class="mx_CreateSecretStorageDialog" data-focus-lock-disabled="false" role="dialog" > <div class="mx_Dialog_header" /> <div> <div> <p> Unable to query secret storage status </p> <div class="mx_Dialog_buttons" > <div class="mx_Dialog_buttons" > <span class="mx_Dialog_buttons_row" > <button data-testid="dialog-cancel-button" type="button" > Cancel </button> <button class="mx_Dialog_primary" data-testid="dialog-primary-button" type="button" > Retry </button> </span> </div> </div> </div> </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> </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 Object.findByText (test/unit-tests/components/views/dialogs/security/CreateSecretStorageDialog-test.tsx:58:22)
CreateSecretStorageDialog › when there is an error when bootstraping the secret storage: test/unit-tests/components/views/dialogs/security/CreateSecretStorageDialog-test.tsx#L73
Unable to find an element with the text: Unable to set up secret storage. 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 data-focus-guard="true" style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;" tabindex="0" /> <div aria-labelledby="mx_BaseDialog_title" class="mx_CreateSecretStorageDialog" data-focus-lock-disabled="false" role="dialog" > <div class="mx_Dialog_header" /> <div> <div> <p> Unable to query secret storage status </p> <div class="mx_Dialog_buttons" > <div class="mx_Dialog_buttons" > <span class="mx_Dialog_buttons_row" > <button data-testid="dialog-cancel-button" type="button" > Cancel </button> <button class="mx_Dialog_primary" data-testid="dialog-primary-button" type="button" > Retry </button> </span> </div> </div> </div> </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> </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 Object.findByText (test/unit-tests/components/views/dialogs/security/CreateSecretStorageDialog-test.tsx:73:22)
jest-tests
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
coverage-1
393 KB