mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-25 01:48:43 +08:00
4751c52d82
* 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 |
||
---|---|---|
.. | ||
__snapshots__ | ||
devices | ||
discovery | ||
notifications | ||
shared | ||
tabs | ||
AddPrivilegedUsers-test.tsx | ||
AddRemoveThreepids-test.tsx | ||
AvatarSetting-test.tsx | ||
ChangePassword-test.tsx | ||
CrossSigningPanel-test.tsx | ||
CryptographyPanel-test.tsx | ||
EventIndexPanel-test.tsx | ||
FontScalingPanel-test.tsx | ||
JoinRuleSettings-test.tsx | ||
KeyboardShortcut-test.tsx | ||
LayoutSwitcher-test.tsx | ||
Notifications-test.tsx | ||
PowerLevelSelector-test.tsx | ||
SecureBackupPanel-test.tsx | ||
SetIntegrationManager-test.tsx | ||
SettingsFieldset-test.tsx | ||
ThemeChoicePanel-test.tsx | ||
UserProfileSettings-test.tsx |