element-web-Github/test/components/structures/__snapshots__
David Baker 67cb8b7590
Force verification even for refreshed clients (#44)
* Force verification even for refreshed cients

Set a flag on login to remember that the device needs to be verified
so that we don't forget if the user refreshes the page, but still allow
user with an existing unverified session to stay logged in.

* Hopefully make matrixchat tests pass?

Much, much tweaking to make the matrixchat tests pass again. Should
hopefully make them a bit more solid in general with judicious use of
waitFor rather than flushPromises(). Also lots of fun to stop the state
bleeding between tests.

* Manual yarn.lock manipulation

to hopefully resolve infinite package sadness

* Make final test pass(?)

Mock out the createClient method to return the same client, because
we've mocked the peg to always return that client, so if we let the
code make another one having still overridden the peg, everything becomes
cursed.

Also mock out the autodiscovery stuff rather than relying on fetch-mock.

* another waitFor

* death to flushPromises

* Put the logged in dispatch back

Actually it breaks all sorts of other things too, having fixed all the
MatrixChat tests (although this is useful anyway).

* Try displaying the screen in onClientStarted instead

* Put post login screen back in logged in

but move ready transition to avoid flash of main UI

* Rejig more in the hope it does the right thing

* Make hook work before push rules are fetched

* Add test for unskippable verification

* Add test for use case selection

* Fix test

* Add playwright test for unskippable verification

* Remove console log

* Add log message to log line

* Add tsdoc

* Use useTypedEventEmitter

* Remove commented code

* Use catch instead of empty then on unawaited promises

or in one case just await it because the caller was async anyway

* Add new mock
2024-10-03 08:55:06 +00:00
..
FilePanel-test.tsx.snap Update compound-design-tokens to satisfy compound-web peer dependency (#12808) 2024-07-24 09:49:33 +00:00
MainSplit-test.tsx.snap Allow maintaining a different right panel width for thread panels (#11064) 2023-06-15 11:57:58 +00:00
MatrixChat-test.tsx.snap Force verification even for refreshed clients (#44) 2024-10-03 08:55:06 +00:00
MessagePanel-test.tsx.snap Update dependency @vector-im/compound-web to v3.1.3 (#12281) 2024-03-07 14:40:03 +00:00
PictureInPictureDragger-test.tsx.snap Redesign the picture-in-picture window (#9800) 2023-01-04 04:44:38 +00:00
RoomStatusBar-test.tsx.snap Improve readability of badges and pills (#12360) 2024-03-22 00:27:13 +00:00
RoomView-test.tsx.snap Remove legacy room header and promote beta room header (#105) 2024-10-02 12:10:58 +00:00
SpaceHierarchy-test.tsx.snap Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
TabbedView-test.tsx.snap Use semantic list elements for menu lists and tab lists (#10902) 2023-05-15 13:33:49 +00:00
ThreadPanel-test.tsx.snap Update Thread Panel to match latest designs (#12797) 2024-07-23 09:12:07 +00:00
UserMenu-test.tsx.snap Add Tooltip to AccessibleButton (#12443) 2024-04-24 12:24:25 +00:00