element-web/test/unit-tests
Hubert Chathi ebd5df633e
Some checks failed
Build / Build on ${{ matrix.image }} (macos-14, ${{ github.event_name == 'push' && github.ref_name == 'develop' }}, ${{ github.event_name == 'pull_request' }}) (push) Has been cancelled
Build / Build on ${{ matrix.image }} (ubuntu-24.04, ${{ github.event_name == 'push' && github.ref_name == 'develop' }}, ${{ github.event_name == 'pull_request' }}) (push) Has been cancelled
Build / Build on ${{ matrix.image }} (windows-2022, ${{ github.event_name == 'push' && github.ref_name == 'develop' }}, ${{ github.event_name == 'pull_request' }}) (push) Has been cancelled
Build and Deploy develop / Build & Deploy develop.element.io (push) Has been cancelled
Deploy documentation / GitHub Pages (push) Has been cancelled
Localazy Upload / upload (push) Has been cancelled
Shared Component Visual Tests / Run Visual Tests (push) Has been cancelled
Static Analysis / Typescript Syntax Check (push) Has been cancelled
Static Analysis / i18n Check (push) Has been cancelled
Static Analysis / Rethemendex Check (push) Has been cancelled
Static Analysis / ESLint (push) Has been cancelled
Static Analysis / Style Lint (push) Has been cancelled
Static Analysis / Workflow Lint (push) Has been cancelled
Static Analysis / Analyse Dead Code (push) Has been cancelled
Deploy documentation / deploy (push) Has been cancelled
Update Jitsi / update (push) Has been cancelled
Localazy Download / download (push) Has been cancelled
Handle cross-signing keys missing locally and/or from secret storage (#31367)
* show correct toast when cross-signing keys missing

If cross-signing keys are missing both locally and in 4S, show a new toast
saying that identity needs resetting, rather than saying that the device
needs to be verified.

* refactor: make DeviceListener in charge of device state

- move enum from SetupEncryptionToast to DeviceListener
- DeviceListener has public method to get device state
- DeviceListener emits events to update device state

* reset key backup when needed in RecoveryPanelOutOfSync

brings RecoveryPanelOutOfSync in line with SetupEncryptionToast behaviour

* update strings to agree with designs from Figma

* use DeviceListener to determine EncryptionUserSettingsTab display

rather than using its own logic

* prompt to reset identity in Encryption Settings when needed

* fix type

* calculate device state even if we aren't going to show a toast

* update snapshot

* make logs more accurate

* add tests

* make the bot use a different access token/device

* only log in a new session when requested

* Mark properties as read-only

Co-authored-by: Skye Elliot <actuallyori@gmail.com>

* remove some duplicate strings

* make accessToken optional instead of using empty string

* switch from enum to string union as per review

* apply other changes from review

* handle errors in accessSecretStorage

* remove incorrect testid

---------

Co-authored-by: Skye Elliot <actuallyori@gmail.com>
2025-12-19 17:00:50 +00:00
..
__snapshots__ Switch to rendering svg icons rather than css masking (#31517) 2025-12-15 09:52:50 +00:00
accessibility Move room list search to shared components (#31502) 2025-12-11 15:43:20 +00:00
actions/handlers
async-components Switch to compound-design-tokens for platform icons (#31543) 2025-12-15 16:37:24 +00:00
audio Fix audio player seek bar position (#31127) 2025-10-29 16:05:04 +00:00
autocomplete Use context provided RoomViewStore within the RoomView component hierarchy (#31077) 2025-10-29 09:40:21 +00:00
components Handle cross-signing keys missing locally and/or from secret storage (#31367) 2025-12-19 17:00:50 +00:00
contexts
customisations
dispatcher
editor Switch Export and Import Icons to match intuition (#30805) 2025-09-25 09:20:48 +00:00
events Change module API to be an instance getter (#31025) 2025-10-15 09:20:48 +00:00
hooks
i18n
images
indexing EventIndexer: ensure we add initial checkpoints when the db is first opened (#31448) 2025-12-08 14:08:31 +00:00
integrations
models Fix widgets getting stuck in loading states (#31314) 2025-12-05 09:19:06 +00:00
modules Switch to Compound icons in more places (#31560) 2025-12-17 11:17:11 +00:00
notifications
renderer Update vector-im (#31306) 2025-12-02 09:57:28 +00:00
settings MSC4380: Invite blocking (#31268) 2025-11-27 18:42:58 +00:00
stores Remove release announcements for new sounds & room list (#31544) 2025-12-19 14:40:44 +00:00
toasts Handle cross-signing keys missing locally and/or from secret storage (#31367) 2025-12-19 17:00:50 +00:00
utils Switch to rendering svg icons rather than css masking (#31517) 2025-12-15 09:52:50 +00:00
vector Switch to compound-design-tokens for platform icons (#31543) 2025-12-15 16:37:24 +00:00
widgets
Avatar-test.ts Remove matrix-events-sdk dependency (#31398) 2025-12-04 13:24:28 +00:00
ContentMessages-test.ts Fix handling of 413 server response when uploading media (#30737) 2025-09-12 10:28:40 +00:00
createRoom-test.ts Provide a labs flag for encrypted state events (MSC3414) (#31513) 2025-12-18 14:45:52 +00:00
DecryptionFailureTracker-test.ts
DeviceListener-test.ts Handle cross-signing keys missing locally and/or from secret storage (#31367) 2025-12-19 17:00:50 +00:00
email-test.ts
favicon-test.ts Simplify favicons and other web icons (#31000) 2025-10-14 13:08:52 +00:00
HtmlUtils-test.tsx Fix highlights in messages (or search results) breaking links (#30264) 2025-10-20 06:10:13 +00:00
Image-test.ts Improve handling of animated images, add support for AVIF animations (#30932) 2025-10-03 13:29:10 +00:00
KeyBindingsManager-test.ts
languageHandler-test.tsx
LegacyCallHandler-test.ts
Lifecycle-test.ts Tidy up token refresh code (#31519) 2025-12-12 18:23:50 +00:00
linkify-matrix-test.ts
Markdown-test.ts
MatrixClientPeg-test.ts
MediaDeviceHandler-test.ts
Modal-test.ts
Notifier-test.ts Add decline button to call notification toast (use new notification event) (#30729) 2025-09-16 10:41:44 +00:00
PosthogAnalytics-test.ts
PreferredRoomVersions-test.ts
README.md
Reply-test.ts
RoomInvite-test.ts
RoomNotifs-test.ts
Rooms-test.ts
ScalarAuthClient-test.ts
SdkConfig-test.ts
SecurityManager-test.ts
SlashCommands-test.tsx Use context provided RoomViewStore within the RoomView component hierarchy (#31077) 2025-10-29 09:40:21 +00:00
SlidingSyncManager-test.ts
submit-rageshake-test.ts
SupportedBrowser-test.ts Update browserslist (#31328) 2025-11-25 18:52:27 +00:00
Terms-test.tsx
TestSdkContext.ts
TextForEvent-test.ts Fix invalid events crashing entire room rather than just their tile (#31256) 2025-11-18 17:33:49 +00:00
theme-test.ts Update jest to v30 (major) (#30117) 2025-11-13 10:50:33 +00:00
TimezoneHandler-test.ts
Unread-test.ts
UserActivity-test.ts
useTopic-test.tsx
WorkerManager-test.ts

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.