element-web/test/unit-tests
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
..
__snapshots__ Remove abandoned Voice Broadcasts labs flag (#28548) 2024-12-02 10:53:27 +00:00
accessibility Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
actions/handlers
async-components Use React Suspense when rendering async modals (#28386) 2024-11-12 21:19:11 +00:00
audio
autocomplete
components Enable key backup by default (#28691) 2024-12-17 14:50:48 +00:00
contexts Remove abandoned Voice Broadcasts labs flag (#28548) 2024-12-02 10:53:27 +00:00
customisations
dispatcher
editor Fix markdown escaping wrongly passing html through (#28363) 2024-11-04 11:31:44 +00:00
events Remove abandoned Voice Broadcasts labs flag (#28548) 2024-12-02 10:53:27 +00:00
hooks Update to React 18 (#24763) 2024-10-21 13:50:06 +00:00
i18n
images
integrations
models Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00
modules Iterate 2024-10-15 16:22:11 +01:00
notifications
settings
stores Factor out crypto setup process into a store (#28675) 2024-12-11 13:10:27 +00:00
toasts Enable key backup by default (#28691) 2024-12-17 14:50:48 +00:00
utils Change to en-US locale for date tests (#28723) 2024-12-11 19:00:24 +00:00
vector Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
widgets
Avatar-test.ts
ContentMessages-test.ts Replace `MatrixClient.isRoomEncrypted` by `MatrixClient.CryptoApi.isEncryptionEnabledInRoom` in `ContentMessages.ts` (#28238) 2024-10-18 14:44:56 +00:00
DecryptionFailureTracker-test.ts Add PostHog codes for trust requirement failures (#28292) 2024-10-28 13:16:48 +00:00
DeviceListener-test.ts Enable key backup by default (#28691) 2024-12-17 14:50:48 +00:00
HtmlUtils-test.tsx
Image-test.ts
KeyBindingsManager-test.ts
LegacyCallHandler-test.ts Remove abandoned Voice Broadcasts labs flag (#28548) 2024-12-02 10:53:27 +00:00
Lifecycle-test.ts Update test 2024-12-03 17:38:24 +00:00
Markdown-test.ts
MatrixClientPeg-test.ts Remove `Features.RustCrypto` (#28582) 2024-11-27 16:56:20 +00:00
MediaDeviceHandler-test.ts
Modal-test.ts
Notifier-test.ts Remove abandoned Voice Broadcasts labs flag (#28548) 2024-12-02 10:53:27 +00:00
PosthogAnalytics-test.ts
PreferredRoomVersions-test.ts
README.md
Reply-test.ts Remove reply fallbacks as per merged MSC2781 (#28406) 2024-11-13 14:11:20 +00:00
RoomNotifs-test.ts Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00
Rooms-test.ts
ScalarAuthClient-test.ts
SdkConfig-test.ts Remove abandoned Voice Broadcasts labs flag (#28548) 2024-12-02 10:53:27 +00:00
SecurityManager-test.ts Reset cross-signing before backup when resetting both (#28402) 2024-11-19 03:17:24 +00:00
SlashCommands-test.tsx Remove references to `MatrixClient.crypto` (#28204) 2024-10-17 08:50:44 +01:00
SlidingSyncManager-test.ts
SupportedBrowser-test.ts Update dependency caniuse-lite to v1.0.30001684 (#28559) 2024-11-27 09:38:01 +00:00
Terms-test.tsx Migrate to stylistic 2024-10-18 14:34:01 +01:00
TestSdkContext.ts Remove abandoned Voice Broadcasts labs flag (#28548) 2024-12-02 10:53:27 +00:00
TextForEvent-test.ts
TimezoneHandler-test.ts
Unread-test.ts Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00
UserActivity-test.ts
WorkerManager-test.ts
createRoom-test.ts
email-test.ts
favicon-test.ts
languageHandler-test.tsx
linkify-matrix-test.ts Update linkify to v4.1.4 (#28560) 2024-11-26 18:11:39 +00:00
submit-rageshake-test.ts
theme-test.ts
useTopic-test.tsx Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00

README.md

Any UTs for vector-web layer components or functionality should go here. This used to contain the UTs for notifications before they got moved to react-sdk.