element-web/test
Robin 0d6a550c33
Prepare for Element Call integration (#9224)
* Improve accessibility and testability of Tooltip

Adding a role to Tooltip was motivated by React Testing Library's
reliance on accessibility-related attributes to locate elements.

* Make the ReadyWatchingStore constructor safer

The ReadyWatchingStore constructor previously had a chance to
immediately call onReady, which was dangerous because it was potentially
calling the derived class's onReady at a point when the derived class
hadn't even finished construction yet. In normal usage, I guess this
never was a problem, but it was causing some of the tests I was writing
to crash. This is solved by separating out the onReady call into a start
method.

* Rename 1:1 call components to 'LegacyCall'

to reflect the fact that they're slated for removal, and to not clash
with the new Call code.

* Refactor VideoChannelStore into Call and CallStore

Call is an abstract class that currently only has a Jitsi
implementation, but this will make it easy to later add an Element Call
implementation.

* Remove WidgetReady, ClientReady, and ForceHangupCall hacks

These are no longer used by the new Jitsi call implementation, and can
be removed.

* yarn i18n

* Delete call map entries instead of inserting nulls

* Allow multiple active calls and consolidate call listeners

* Fix a race condition when creating a video room

* Un-hardcode the media device fallback labels

* Apply misc code review fixes

* yarn i18n

* Disconnect from calls more politely on logout

* Fix some strict mode errors

* Fix another updateRoom race condition
2022-08-30 15:13:39 -04:00
..
__snapshots__ Location (live) share replies now provide a fallback content (#8949) 2022-07-01 08:01:22 +02:00
accessibility Convert some Enzyme tests to RTL (#9163) 2022-08-11 00:00:53 +00:00
audio Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
autocomplete Use "frequently used emojis" for autocompletion in composer (#8998) 2022-07-21 15:27:11 +02:00
components Prepare for Element Call integration (#9224) 2022-08-30 15:13:39 -04:00
editor Add support for MD / HTML in room topics (#8215) 2022-06-07 14:20:32 -06:00
events Fix invisible power levels tile when showing hidden events (#9162) 2022-08-10 13:33:13 +00:00
hooks Add a larger buffer to useLatestResult's test (#9178) 2022-08-25 14:49:39 -06:00
i18n
i18n-test Fall back to untranslated string rather than showing missing translation error (#8609) 2022-05-16 13:28:24 +01:00
images Add support for Animated (A)PNG (#8158) 2022-03-28 09:38:54 +01:00
img
models Prepare for Element Call integration (#9224) 2022-08-30 15:13:39 -04:00
modules Update matrix-org/react (enzyme deprecation) (#9116) 2022-08-02 15:10:43 +02:00
notifications Typescriptification - notification utils (#8209) 2022-04-01 08:45:50 +02:00
settings Fix crash when drawing blurHash for portrait videos PSB-139 (#8855) 2022-06-17 11:03:29 +00:00
setup Step 8.2: Fix wiring of jest test setup to avoid import cycle issues 2022-03-28 14:02:31 -06:00
stores Prepare for Element Call integration (#9224) 2022-08-30 15:13:39 -04:00
test-utils Prepare for Element Call integration (#9224) 2022-08-30 15:13:39 -04:00
utils Convert some Enzyme tests to RTL (#9163) 2022-08-11 00:00:53 +00:00
.eslintrc.js Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
Avatar-test.ts Wire local room logic (#9078) 2022-07-20 09:26:25 +02:00
ContentMessages-test.ts Use doMaybeLocalRoomAction (#9038) 2022-07-13 07:56:36 +02:00
DecryptionFailureTracker-test.js Fix all megolm error reported as unknown (#8916) 2022-06-30 08:55:05 +01:00
DeviceListener-test.ts Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
HtmlUtils-test.tsx Update matrix-org/react (enzyme deprecation) (#9116) 2022-08-02 15:10:43 +02:00
Image-test.ts Step 8.1: Remove skinning setup from all tests 2022-03-28 14:02:31 -06:00
KeyBindingsManager-test.ts Work towards unifying `KeyboardShortcuts` and `KeyBindingsDefaults` #2 (#7674) 2022-01-31 15:55:45 +00:00
LegacyCallHandler-test.ts Prepare for Element Call integration (#9224) 2022-08-30 15:13:39 -04:00
Markdown-test.ts Fix formatting not being applied after links (#7990) 2022-03-08 13:12:36 +00:00
MatrixClientPeg-test.ts Use doMaybeLocalRoomAction (#9038) 2022-07-13 07:56:36 +02:00
PosthogAnalytics-test.ts Replace deprecated String#substr with String#slice (#8314) 2022-04-14 07:52:42 +00:00
PreferredRoomVersions-test.ts Replace MSC3244 support with in-client room version checking (#9018) 2022-07-08 00:32:38 -06:00
Reply-test.ts Location (live) share replies now provide a fallback content (#8949) 2022-07-01 08:01:22 +02:00
RoomNotifs-test.ts Fix js-sdk types (#8588) 2022-05-13 19:13:21 +00:00
ScalarAuthClient-test.ts Test typescriptification - Terms/ScalarAuthClient (#8480) 2022-05-03 15:09:07 +00:00
SlashCommands-test.tsx Prepare for Element Call integration (#9224) 2022-08-30 15:13:39 -04:00
Terms-test.tsx Test typescriptification - Terms/ScalarAuthClient (#8480) 2022-05-03 15:09:07 +00:00
TextForEvent-test.ts Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
Unread-test.ts dont trigger unread counts for beacon location events (#9071) 2022-07-18 14:23:24 +00:00
UserActivity-test.ts Typescriptification - notification utils (#8209) 2022-04-01 08:45:50 +02:00
createRoom-test.ts Prepare for Element Call integration (#9224) 2022-08-30 15:13:39 -04:00
globalSetup.js Eslint - require copyright header rule (#8514) 2022-05-06 09:09:28 +00:00
languageHandler-test.ts Add support for overriding strings in the app (#7886) 2022-03-01 11:53:09 -07:00
linkify-matrix-test.ts Delete groups (legacy communities system) (#8027) 2022-03-22 23:07:37 +00:00
setupTests.js Update matrix-org/react (enzyme deprecation) (#9116) 2022-08-02 15:10:43 +02:00
useTopic-test.tsx Update matrix-org/react (enzyme deprecation) (#9116) 2022-08-02 15:10:43 +02:00