ci: Add LK CLI installation step to E2E test workflow
test: Introduce wait timeout before leaving the room in tests
This commit is contained in:
parent
2761e68dd8
commit
cf3f03bf3c
2
.github/workflows/wc-e2e-test.yaml
vendored
2
.github/workflows/wc-e2e-test.yaml
vendored
@ -17,6 +17,8 @@ jobs:
|
|||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
version: 10.18.3
|
version: 10.18.3
|
||||||
|
- name: Install LK CLI
|
||||||
|
run: curl -sSL https://get.livekit.io/cli | bash
|
||||||
- name: Setup OpenVidu Local Deployment
|
- name: Setup OpenVidu Local Deployment
|
||||||
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
@ -292,6 +292,7 @@ export const viewRecordingsAs = async (role: 'moderator' | 'speaker', page: Page
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const leaveRoom = async (page: Page, role: 'moderator' | 'speaker' = 'speaker', waitForMeetingEnded = false) => {
|
export const leaveRoom = async (page: Page, role: 'moderator' | 'speaker' = 'speaker', waitForMeetingEnded = false) => {
|
||||||
|
await page.waitForTimeout(200);
|
||||||
await interactWithElementInIframe(page, '#leave-btn', { action: 'click' });
|
await interactWithElementInIframe(page, '#leave-btn', { action: 'click' });
|
||||||
|
|
||||||
if (role === 'moderator') {
|
if (role === 'moderator') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user