element-web/test/components/structures
Timo a370a5cfa4
Refactor element call lobby + skip lobby (#12057)
* Refactor ElementCall to use the widget lobby.
 - expose skip lobby
 - use the widget.data to build the widget url

Signed-off-by: Timo K <toger5@hotmail.de>

* Use shiftKey click to skip the lobby

Signed-off-by: Timo K <toger5@hotmail.de>

* remove Lobby component

Signed-off-by: Timo K <toger5@hotmail.de>

* update tests + remove EW lobby related tests

Signed-off-by: Timo K <toger5@hotmail.de>

* remove lobby device button tests

Signed-off-by: Timo K <toger5@hotmail.de>

* i18n

Signed-off-by: Timo K <toger5@hotmail.de>

* use voip participant label

Signed-off-by: Timo K <toger5@hotmail.de>

* update tests
Signed-off-by: Timo K <toger5@hotmail.de>

* fix rounded corners in pip

Signed-off-by: Timo K <toger5@hotmail.de>

* allow joining call in legacy room header (without banner)

Signed-off-by: Timo K <toger5@hotmail.de>

* Introduce new connection states for calls.
And use them for integrated lobby.

Signed-off-by: Timo K <toger5@hotmail.de>

* New room header call join
Fix broken top container element call.

Signed-off-by: Timo K <toger5@hotmail.de>

* i18n

Signed-off-by: Timo K <toger5@hotmail.de>

* Fix closing element call in lobby view.
(should destroy call if there the user never managed to connect (not clicked join in lobby)

Signed-off-by: Timo K <toger5@hotmail.de>

* all cases for connection state

Signed-off-by: Timo K <toger5@hotmail.de>

* add correct LiveContentSummary labels

Signed-off-by: Timo K <toger5@hotmail.de>

* Theme widget loading (no rounded corner)
destroy call when switching room while a call is loading.

Signed-off-by: Timo K <toger5@hotmail.de>

* temp

Signed-off-by: Timo K <toger5@hotmail.de>

* usei view room dispatcher instead of emitter

Signed-off-by: Timo K <toger5@hotmail.de>

* tidy up

Signed-off-by: Timo K <toger5@hotmail.de>

* returnToLobby + remove StartCallView

Signed-off-by: Timo K <toger5@hotmail.de>

* comment cleanup

Signed-off-by: Timo K <toger5@hotmail.de>

* disconnect ongoing calls before making widget sticky.

Signed-off-by: Timo K <toger5@hotmail.de>

* linter + jitsi as videoChannel

Signed-off-by: Timo K <toger5@hotmail.de>

* stickyPromise type

Signed-off-by: Timo K <toger5@hotmail.de>

* fix legacy call (jistsi, cisco, bbb) reopen
when clicking call button

Signed-off-by: Timo K <toger5@hotmail.de>

* fix tests and connect resolves

Signed-off-by: Timo K <toger5@hotmail.de>

* fix "waits for messaging when connecting" test

Signed-off-by: Timo K <toger5@hotmail.de>

* Allow to skip awaiting Call session events.
This option is used in tests to spare mocking the
events emitted when EC updates the room state

Signed-off-by: Timo K <toger5@hotmail.de>

* add sticky test

Signed-off-by: Timo K <toger5@hotmail.de>

* add test for looby tile rendering

Signed-off-by: Timo K <toger5@hotmail.de>

* fix flaky test

Signed-off-by: Timo K <toger5@hotmail.de>

* add reconnect after disconnect test (video room)

Signed-off-by: Timo K <toger5@hotmail.de>

* add shift click test to call toast

Signed-off-by: Timo K <toger5@hotmail.de>

* test for allowVoipWithNoMedia in widget url

Signed-off-by: Timo K <toger5@hotmail.de>

* fix e2e tests to search for the right element

Signed-off-by: Timo K <toger5@hotmail.de>

* destroy call after test so next test does not fail

Signed-off-by: Timo K <toger5@hotmail.de>

* new call test (connection failed)

Signed-off-by: Timo K <toger5@hotmail.de>

* reset to real timers

Signed-off-by: Timo K <toger5@hotmail.de>

* dont use skipSessionAwait for tests

Signed-off-by: Timo K <toger5@hotmail.de>

* code quality (sonar)

Signed-off-by: Timo K <toger5@hotmail.de>

* refactor call.disconnect tests (dont use skipSessionAwait)

Signed-off-by: Timo K <toger5@hotmail.de>

* miscellaneous cleanup

Signed-off-by: Timo K <toger5@hotmail.de>

* only send call notify after the call has been joined (not when just opening the lobby)

Signed-off-by: Timo K <toger5@hotmail.de>

* update call notify tests to expect notify on connect.
Not on widget creation.

Signed-off-by: Timo K <toger5@hotmail.de>

* Update playwright/e2e/room/room-header.spec.ts

Co-authored-by: Robin <robin@robin.town>

* Update src/components/views/voip/CallView.tsx

Co-authored-by: Robin <robin@robin.town>

* review
rename connect -> start
isVideoRoom not dependant on feature flags
rename allOtherCallsDisconnected -> disconnectAllOtherCalls

Signed-off-by: Timo K <toger5@hotmail.de>

* check for EC widget

Signed-off-by: Timo K <toger5@hotmail.de>

* dep array

Signed-off-by: Timo K <toger5@hotmail.de>

* rename in spyOn

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Robin <robin@robin.town>
2024-01-29 16:06:12 +00:00
..
__snapshots__ Add notification dots to thread summary icons (#12146) 2024-01-25 16:53:41 +00:00
auth Show a progress bar while migrating from legacy crypto (#12104) 2024-01-17 07:14:49 +00:00
AutocompleteInput-test.tsx Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
ContextMenu-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00
LargeLoader-test.tsx Start DM on first message (#8612) 2022-08-04 08:19:52 +02:00
LeftPanel-test.tsx Show filterContainer if "UIComponent.filterContainer" is enabled (#10381) 2023-03-21 09:06:43 +00:00
LegacyCallEventGrouper-test.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
LoggedInView-test.tsx Fix: sync intentional mentions push rules with legacy rules (#11667) 2023-09-27 00:03:38 +00:00
MainSplit-test.tsx Allow maintaining a different right panel width for thread panels (#11064) 2023-06-15 11:57:58 +00:00
MatrixChat-test.tsx Fix OIDC bugs due to amnesiac stores forgetting OIDC issuer & other data (#12166) 2024-01-23 13:34:10 +00:00
MessagePanel-test.tsx Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
PictureInPictureDragger-test.tsx Enable jsx-a11y/click-events-have-key-events eslint rule (#10362) 2023-08-09 06:27:31 +00:00
PipContainer-test.tsx Refactor element call lobby + skip lobby (#12057) 2024-01-29 16:06:12 +00:00
RightPanel-test.tsx Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
RoomSearchView-test.tsx Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
RoomStatusBar-test.tsx Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
RoomStatusBarUnsentMessages-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
RoomView-test.tsx Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
SpaceHierarchy-test.tsx Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
TabbedView-test.tsx Migrate more strings to translation keys (#11669) 2023-09-26 13:04:17 +01:00
ThreadPanel-test.tsx Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
ThreadView-test.tsx Default intentional mentions (#11602) 2023-09-14 11:36:15 +00:00
TimelinePanel-test.tsx Add notification dots to thread summary icons (#12146) 2024-01-25 16:53:41 +00:00
UploadBar-test.tsx Re-key all |zero-pluralised translations for Localazy compatibility (#11417) 2023-08-16 15:26:21 +00:00
UserMenu-test.tsx Replace broadcast instance with SDKContext (#9824) 2022-12-27 08:39:26 +01:00
ViewSource-test.tsx Align action_* strings with Element X project in Localazy (#11437) 2023-08-22 20:55:15 +01:00