element-web-Github/test/test-utils
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.ts
beacon.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
call.ts Upgrade target to es2022 (#12852) 2024-08-01 16:14:28 +00:00
client.ts Make tests more resilient for React 18 upgrade (#12861) 2024-08-06 17:22:02 +00:00
composer.ts
console.ts
date.ts
events.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
index.ts
location.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
oidc.ts MSC4108 support OIDC QR code login (#12370) 2024-06-06 09:57:28 +01:00
platform.ts Improve client metadata used for OIDC dynamic registration (#12257) 2024-02-16 14:43:58 +00:00
poll.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
pushRules.ts Stabilize support for MSC3952: intentional mentions (#10967) 2023-07-11 22:29:54 +00:00
relations.ts Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
room.ts Adept KnownMembership imports for new location in types 2024-03-18 14:43:08 +00:00
test-utils.ts Refactor the various email/phone management UI into a single component (#12884) 2024-08-14 13:13:57 +00:00
threads.ts Rewrite doesRoomOrThreadHaveUnreadMessages to use the receipt rewrite from js-sdk (#11903) 2023-11-29 13:36:52 +00:00
utilities.ts Fix closing all modals (#12728) 2024-07-05 13:39:13 +00:00
wrappers.tsx