element-web/test/components/views/settings/tabs/user
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
..
__snapshots__ Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
AccountUserSettingsTab-test.tsx Rename general user settings to account (#12841) 2024-08-06 17:05:08 +00:00
AppearanceUserSettingsTab-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
KeyboardUserSettingsTab-test.tsx Comply with noImplicitAny (#9940) 2023-02-13 11:39:16 +00:00
LabsUserSettingsTab-test.tsx Switch to Rust crypto stack for all logins (#12630) 2024-06-24 09:14:42 +00:00
MjolnirUserSettingsTab-test.tsx Use semantic headings in user settings - Ignored users (#11006) 2023-05-30 22:42:53 +00:00
PreferencesUserSettingsTab-test.tsx Move language settings to 'preferences' (#12723) 2024-07-05 22:04:27 +00:00
SecurityUserSettingsTab-test.tsx Add support for device dehydration v2 (#12316) 2024-04-15 15:47:15 +00:00
SessionManagerTab-test.tsx Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
SidebarUserSettingsTab-test.tsx Video call meta space (#12297) 2024-03-25 18:35:31 +00:00
VoiceUserSettingsTab-test.tsx await promises (#10992) 2023-05-28 22:19:37 +00:00