element-web/test/test-utils
David Baker 980b922348
Enable key backup by default (#28691)
* Factor out crypto setup process into a store

To make components pure and avoid react 18 dev mode problems due
to components making requests when mounted.

* fix test

* test for the store

* Add comment

* Enable key backup by default

When we set up cross signing, so the key backup key will be stored locally along with the cross signing keys until the user sets up recovery (4s). This will mean that a user can restore their backup if they log in on a new device as long as they verify with the one they registered on.

Replaces https://github.com/element-hq/element-web/pull/28267

* Fix test

* Prompt user to set up 4S on logout

* Fix test

* Add playwright test for key backup by default

* Fix imports

* This isn't unexpected anymore

* Update doc

* Fix docs and function name on renderSetupBackupDialog()

* Use checkKeyBackupAndEnable

* Docs for setup encryption toast

* Also test the toast appears

* Update mock for the method we use now

* Okay fine I guess we need both

* Swap here too

* Fix comment & doc comments
2024-12-17 14:50:48 +00:00
..
audio.ts
beacon.ts
call.ts
client.ts
composer.ts
console.ts
date.ts
events.ts
index.ts
jest-matrix-react.tsx
location.ts
oidc.ts
platform.ts
poll.ts
predictableRandom.ts
pushRules.ts
relations.ts
room.ts
test-utils.ts Enable key backup by default (#28691) 2024-12-17 14:50:48 +00:00
threads.ts
utilities.ts
wrappers.tsx