element-web/playwright/e2e
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
..
audio-player Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
composer Migrate composer.spec.ts from Cypress to Playwright (#12024) 2023-12-14 13:49:51 +00:00
create-room Migrate create-room.spec.ts from Cypress to Playwright (#11941) 2023-11-27 16:24:02 +00:00
crypto Show a progress bar while migrating from legacy crypto (#12104) 2024-01-17 07:14:49 +00:00
editing Use Compound tooltips more widely (#12128) 2024-01-11 11:49:24 +00:00
integration-manager Migrate widgets/* from Cypress to Playwright (#12032) 2023-12-12 17:26:08 +00:00
invite Improve stability of Playwright screenshots (#12009) 2023-12-07 10:32:23 +00:00
knock Migrate knock/* from Cypress to Playwright (#12030) 2023-12-12 14:08:36 +00:00
lazy-loading Playwright: Convert lazy-loading test to playwright (#11988) 2023-12-19 08:36:54 +00:00
left-panel Migrate remaining editing.spec.ts from Cypress to Playwright (#11976) 2023-11-30 10:18:18 +00:00
location Migrate remaining editing.spec.ts from Cypress to Playwright (#11976) 2023-11-30 10:18:18 +00:00
login Improve stability of Playwright screenshot tests (#11983) 2023-12-04 11:02:48 +00:00
one-to-one-chat Migrate one-to-one-chat.spec.ts from Cypress to Playwright (#11953) 2023-11-28 11:02:50 +00:00
permalinks Migrate permalinks.spec.ts from Cypress to Playwright (#12004) 2023-12-12 09:56:55 +00:00
polls Playwright: Convert /e2e/polls (#12065) 2024-01-09 06:28:40 +00:00
presence Migrate presence.spec.ts from Cypress to Playwright (#12022) 2023-12-12 10:00:47 +00:00
read-receipts Disable failing playwright test (#12176) 2024-01-24 09:54:14 +00:00
register Improve stability of Playwright screenshot tests (#11983) 2023-12-04 11:02:48 +00:00
regression-tests Migrate pills-click-in-app.spec.ts from Cypress to Playwright (#11984) 2023-12-04 13:41:20 +00:00
right-panel Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
room Refactor element call lobby + skip lobby (#12057) 2024-01-29 16:06:12 +00:00
room-directory Prepare for switching AccessibleTooltipButton to using Compound Tooltips (#12082) 2024-01-02 09:21:53 +00:00
settings Improve stability of Playwright screenshots (#12009) 2023-12-07 10:32:23 +00:00
sliding-sync Playwright: Convert lazy-loading test to playwright (#11988) 2023-12-19 08:36:54 +00:00
spaces Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
spotlight Convert spotlight tests to playwright (#12033) 2023-12-18 06:04:15 +00:00
threads Playwright: Convert e2e/threads (#12066) 2024-01-05 09:56:54 +00:00
timeline Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
toasts Migrate analytics-toast.spec.ts from Cypress to Playwright (#11939) 2023-11-27 10:00:16 +00:00
update Migrate update.spec.ts from Cypress to Playwright (#11937) 2023-11-27 11:28:17 +00:00
user-menu Migrate user-menu.spec.ts from Cypress to Playwright (#11940) 2023-11-27 11:22:59 +00:00
user-onboarding Improve stability of Playwright screenshot tests (#11983) 2023-12-04 11:02:48 +00:00
user-view Iterate landmarks around the app in order to improve a11y (#12064) 2023-12-20 15:32:24 +00:00
widgets Migrate widgets/* from Cypress to Playwright (#12032) 2023-12-12 17:26:08 +00:00
utils.ts Migrate knock/* from Cypress to Playwright (#12030) 2023-12-12 14:08:36 +00:00