element-web-Github/test/components/views/context_menus
David Baker dcf7643d4a
Fix closing all modals (#12728)
* Fix closing all modals

We used `Modal.closeCurrentModal()` in a bunch of places, in all cases
(as far as I can see: it wasn't commented) we meant to close all open
modals. This swaps that function for one that closes all open modals.

Also types the close reason which claimed to be something in a comment,
of course, was wrong because a load of places passed their own random
string which was never used.

* Force close modals

* Try with minimal changes

* Already had a method for this

* Add test

* More tests

* Unused importsd
2024-07-05 13:39:13 +00:00
..
__snapshots__ Remove focus-visible polyfill (#11677) 2023-09-28 11:52:26 +00:00
ContextMenu-test.tsx Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
EmbeddedPage-test.tsx Locallazy: Convert even more strings (#11679) 2023-10-02 11:43:00 +01:00
MessageContextMenu-test.tsx Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
RoomContextMenu-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
RoomGeneralContextMenu-test.tsx Fix closing all modals (#12728) 2024-07-05 13:39:13 +00:00
SpaceContextMenu-test.tsx Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
ThreadListContextMenu-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
WidgetContextMenu-test.tsx Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00