element-web/test/components/views/settings
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
devices Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
discovery Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
notifications Move the active tab in user settings to the dialog title (#12481) 2024-05-07 09:32:24 +00:00
shared Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
tabs Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
AddPrivilegedUsers-test.tsx Expose apps/widgets (#12071) 2024-01-22 10:53:27 +00:00
AddRemoveThreepids-test.tsx Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
AvatarSetting-test.tsx Change avatarsetting componment to use a menu (#12585) 2024-06-07 13:25:21 +00:00
ChangePassword-test.tsx Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
CrossSigningPanel-test.tsx Element-R: fix repeated requests to enter 4S key during cross-signing reset (#12059) 2023-12-15 14:59:36 +00:00
CryptographyPanel-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
EventIndexPanel-test.tsx Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
FontScalingPanel-test.tsx Use browser's font size instead of hardcoded 16px as root font size (#12246) 2024-02-21 11:23:07 +00:00
JoinRuleSettings-test.tsx Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
KeyboardShortcut-test.tsx Conform more code to strict null checking (#10169) 2023-02-16 09:38:44 +00:00
LayoutSwitcher-test.tsx New layout selector ui in user settings (#12676) 2024-07-05 07:30:31 +00:00
Notifications-test.tsx Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
PowerLevelSelector-test.tsx Change user permission by using a new apply button (#12346) 2024-03-19 13:45:23 +00:00
SecureBackupPanel-test.tsx SecureBackupPanel: stop using deprecated APIs, and other fixes (#11644) 2023-09-22 10:57:11 +00:00
SetIntegrationManager-test.tsx Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
SettingsFieldset-test.tsx Update usages of test utilities preferring RTL (#10203) 2023-02-22 10:52:55 +00:00
ThemeChoicePanel-test.tsx New theme ui in user settings (#12576) 2024-06-26 15:47:01 +00:00
UserProfileSettings-test.tsx Add sign out button to settings profile section (#12666) 2024-07-29 12:53:44 +00:00