element-web/test
Hubert Chathi 3d56aa7ff6
Fix logic in DeviceListener (#30230)
* remove incorrect check for cross-signing

SETUP_ENCRYPTION tries to set up everything (4S, cross-signing and key backup),
rather than just setting up encryption, as its name would imply.
crossSigningReady == false happens when the user's device isn't verified, so it
should trigger VERIFY_THIS_SESSION rather than SETUP_ENCRYPTION

* reorder conditions in allSystemsReady to match the order in the if statements

* explicitly handle secrets missing from 4S

rather than falling back to the SETUP_ENCRYPTION catch-all.  Also, remove
SETUP_ENCRYPTION since it is no longer used.

* convert button handlers to switch statements for consistency

(almost) all the other functions that use make decisions based on Kind use
switch statements

* update i18n (remove obsolete string)
2025-06-30 14:01:06 +00:00
..
@types Change License: AGPL + Element Commercial (#28856) 2025-01-06 11:18:54 +00:00
app-tests Update all non-major dependencies (#29194) 2025-02-05 13:25:06 +00:00
components/views/dialogs Delegate to new ResetIdentityDialog from SetupEncryptionBody (#29701) 2025-04-30 10:08:38 +00:00
setup Change License: AGPL + Element Commercial (#28856) 2025-01-06 11:18:54 +00:00
test-utils test: use forceCloseAllModals instead of closeCurrentModal (#30211) 2025-06-26 08:02:42 +00:00
unit-tests Fix logic in DeviceListener (#30230) 2025-06-30 14:01:06 +00:00
CreateCrossSigning-test.ts Do not send empty auth when setting up cross-signing keys (#29914) 2025-06-10 11:37:04 +00:00
globalSetup.ts Change License: AGPL + Element Commercial (#28856) 2025-01-06 11:18:54 +00:00
jest-mocks.ts Change License: AGPL + Element Commercial (#28856) 2025-01-06 11:18:54 +00:00
setupTests.ts Switch to secure random strings (#29013) 2025-01-21 13:54:57 +00:00
slowReporter.cjs Change License: AGPL + Element Commercial (#28856) 2025-01-06 11:18:54 +00:00