Prompt the user when key storage is unexpectedly off #6057
Annotations
11 errors
DeviceListener › recheck › set up encryption › hides setup encryption toast when cross signing and secret storage are ready:
test/unit-tests/DeviceListener-test.ts#L315
expect(jest.fn()).toHaveBeenCalled()
Expected number of calls: >= 1
Received number of calls: 0
at Object.toHaveBeenCalled (test/unit-tests/DeviceListener-test.ts:315:56)
|
DeviceListener › recheck › set up encryption › hides setup encryption toast when it is dismissed:
test/unit-tests/DeviceListener-test.ts#L322
expect(jest.fn()).toHaveBeenCalled()
Expected number of calls: >= 1
Received number of calls: 0
at Object.toHaveBeenCalled (test/unit-tests/DeviceListener-test.ts:322:56)
|
DeviceListener › recheck › set up encryption › shows verify session toast when account has cross signing:
test/unit-tests/DeviceListener-test.ts#L343
expect(jest.fn()).toHaveBeenCalled()
Expected number of calls: >= 1
Received number of calls: 0
at Object.toHaveBeenCalled (test/unit-tests/DeviceListener-test.ts:343:55)
|
DeviceListener › recheck › set up encryption › when current device is verified › shows an out-of-sync toast when one of the secrets is missing:
test/unit-tests/DeviceListener-test.ts#L375
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "key_storage_out_of_sync"
Number of calls: 0
at Object.toHaveBeenCalledWith (test/unit-tests/DeviceListener-test.ts:375:60)
|
DeviceListener › recheck › set up encryption › when current device is verified › hides the out-of-sync toast when one of the secrets is missing:
test/unit-tests/DeviceListener-test.ts#L397
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "key_storage_out_of_sync"
Number of calls: 0
at Object.toHaveBeenCalledWith (test/unit-tests/DeviceListener-test.ts:397:60)
|
DeviceListener › recheck › set up encryption › when current device is verified › shows set up recovery toast when user has a key backup available:
test/unit-tests/DeviceListener-test.ts#L425
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "set_up_recovery"
Number of calls: 0
at Object.toHaveBeenCalledWith (test/unit-tests/DeviceListener-test.ts:425:60)
|
DeviceListener › recheck › key backup status › dispatches keybackup event when key backup is not enabled:
test/unit-tests/DeviceListener-test.ts#L457
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: {"action": "report_key_backup_not_enabled"}
Number of calls: 0
at Object.toHaveBeenCalledWith (test/unit-tests/DeviceListener-test.ts:457:49)
|
DeviceListener › recheck › when crypto is in use and set up › but key storage is off › shows the 'Turn on key storage' toast if we never explicitly turned off key storage:
test/unit-tests/DeviceListener-test.ts#L511
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "turn_on_key_storage"
Number of calls: 0
at Object.toHaveBeenCalledWith (test/unit-tests/DeviceListener-test.ts:511:60)
|
DeviceListener › recheck › when crypto is in use and set up › but key storage is off › shows the 'Turn on key storage' toast if we turned on key storage:
test/unit-tests/DeviceListener-test.ts#L529
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "turn_on_key_storage"
Number of calls: 0
at Object.toHaveBeenCalledWith (test/unit-tests/DeviceListener-test.ts:529:60)
|
DeviceListener › recheck › unverified sessions toasts › bulk unverified sessions toasts › hides toast when cross signing is not ready:
test/unit-tests/DeviceListener-test.ts#L632
expect(jest.fn()).toHaveBeenCalled()
Expected number of calls: >= 1
Received number of calls: 0
at Object.toHaveBeenCalled (test/unit-tests/DeviceListener-test.ts:632:67)
|
jest-tests
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | Digest | |
---|---|---|---|
coverage-1
|
400 KB |
sha256:11b2f1d13f1758754ab12a8a8bdf1f8f1a796adb200318e8e43a9494cbc04890
|
|