element-web/test/components/views
David Baker 4751c52d82
Refactor the various email/phone management UI into a single component (#12884)
* Refactor the various email/phone management UI into a single component

These were basically the same component copied & pasted 3 times and
tweaked to match the behaviour of each case. This de-dupes them into
one component.

This all could really benefit from playwright tests, but would require
setting up a dummy ID server in the playwright tests. This is all legacy
pre-MAS stuff so its questionable whether its worth the effort.

* Basic test, remove old tests

* Use different text to confirm remove & put headers back

although the two texts are both 'Remove' in practice

* Remove string

This was never triggered anyway with sydent & synapse because they
don't seem to agree on what error to return. In any case, I think it
makes more sense for it to be consistent with the email path, ie. using
a dialog.

* Avoid nested forms

* Snapshots

* More snapshots

* Test the hs side

* Snapshots

* Test IS bind/revoke

* Test remove can be cancelled

* Test unvalidated cases & fix phone error

* Reset state between tests

* Import useState directly

* One more direct React import
2024-08-14 13:13:57 +00:00
..
audio_messages Accessibility improvements around aria-labels and tooltips (#12062) 2024-01-05 10:59:41 +00:00
auth Tooltip: migrate remaining tooltips from AccessibleTooltipButton to AccessibleButton (#12522) 2024-05-17 14:11:07 +00:00
avatars Add missing presence indicator to new room header (#12865) 2024-08-06 14:51:25 +00:00
beacon Tooltip: Remove extra data attribute (#12483) 2024-05-06 08:54:40 +00:00
beta Fix instances of double translation and guard translation calls using typescript (#11443) 2023-08-22 16:32:05 +01:00
context_menus Fix React contexts (#12855) 2024-08-01 13:01:05 +01:00
dialogs Update @vector-im/compound-design-tokens (#12876) 2024-08-09 12:32:37 +00:00
elements Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
emojipicker Fix roving tab index crash compareDocumentPosition (#12594) 2024-06-11 09:11:52 +00:00
location Minor tweaks to UserSettings dialog (#12651) 2024-06-20 09:29:38 +00:00
messages Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
polls/pollHistory Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
right_panel Update @vector-im/compound-design-tokens (#12876) 2024-08-09 12:32:37 +00:00
room_settings Change avatarsetting componment to use a menu (#12585) 2024-06-07 13:25:21 +00:00
rooms Add chat button on new room header for maximised widgets (#12882) 2024-08-12 13:44:15 +00:00
settings Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
spaces Update @vector-im/compound-design-tokens (#12876) 2024-08-09 12:32:37 +00:00
toasts Update toast styles to match Figma (#12833) 2024-07-30 12:57:15 +00:00
typography Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
user-onboarding Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
voip Tooltip: improve accessibility for call and voice messages (#12489) 2024-05-07 10:20:52 +00:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
VerificationShowSas-test.tsx Clean up some references to internal js-sdk classes (#12363) 2024-03-22 12:28:13 +00:00