element-web/test/utils
Richard van der Hoff 889318d3a2
Speed up `waitForMember` if user already in room (#11110)
* Speed up `waitForMember` if user already in room

`waitForMember` waits for a user to join, or be invited, to a room. But if the
user is already in the room (ie, we miss the `NewMember` event), we end up
timing out after 1500ms.

We can save 1.5s here by returning immediately.

* fix strict type errors

* stfu SonarCloud
2023-06-19 14:11:25 +00:00
..
__snapshots__
beacon
device
dm
exportUtils Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
localRoom
location
media
permalinks Matrix matrix scheme permalink constructor not stripping query params (#11060) 2023-06-09 07:20:05 +00:00
room Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
validate
AnimationUtils-test.ts
AutoDiscoveryUtils-test.tsx add delegatedauthentication to validated server config (#11053) 2023-06-13 01:43:25 +00:00
DMRoomMap-test.ts
DateUtils-test.ts
ErrorUtils-test.ts
EventRenderingUtils-test.ts Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
EventUtils-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
Feedback-test.ts
FixedRollingArray-test.ts
LruCache-test.ts
MegolmExportEncryption-test.ts
MessageDiffUtils-test.tsx
MultiInviter-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
SearchInput-test.ts
ShieldUtils-test.ts
Singleflight-test.ts
SnakedObject-test.ts
UrlUtils-test.ts
WidgetUtils-test.ts
arrays-test.ts
colour-test.ts
connection-test.ts
createVoiceMessageContent-test.ts
direct-messages-test.ts Apply `strictNullChecks` to `src/utils/local-room.ts` (#10915) 2023-06-01 11:55:26 +00:00
enums-test.ts
export-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
generate-megolm-test-vectors.py
iterables-test.ts
leave-behaviour-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
local-room-test.ts Apply `strictNullChecks` to `src/utils/local-room.ts` (#10915) 2023-06-01 11:55:26 +00:00
maps-test.ts
membership-test.ts Speed up `waitForMember` if user already in room (#11110) 2023-06-19 14:11:25 +00:00
notifications-test.ts Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
numbers-test.ts
objects-test.ts
pillify-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
sets-test.ts
stringOrderField-test.ts
threepids-test.ts
tooltipify-test.tsx