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:
Carlos Santos 2025-12-05 12:10:34 +01:00
parent 2761e68dd8
commit cf3f03bf3c
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,8 @@ jobs:
uses: pnpm/action-setup@v4
with:
version: 10.18.3
- name: Install LK CLI
run: curl -sSL https://get.livekit.io/cli | bash
- name: Setup OpenVidu Local Deployment
uses: OpenVidu/actions/start-openvidu-local-deployment@main
with:

View File

@ -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) => {
await page.waitForTimeout(200);
await interactWithElementInIframe(page, '#leave-btn', { action: 'click' });
if (role === 'moderator') {