diff --git a/.github/workflows/openvidu-angular-tutorial.yml b/.github/workflows/openvidu-angular-tutorial.yml index 5dd0d220..f6c00e55 100644 --- a/.github/workflows/openvidu-angular-tutorial.yml +++ b/.github/workflows/openvidu-angular-tutorial.yml @@ -36,6 +36,7 @@ jobs: run: | sudo npm install npx ng serve > ../results/logs/client_application.log 2>&1 & + sleep 10 - name: Install dependencies run: npm ci diff --git a/.github/workflows/openvidu-react-tutorial.yml b/.github/workflows/openvidu-react-tutorial.yml index 9c964eb8..cd5cf3ec 100644 --- a/.github/workflows/openvidu-react-tutorial.yml +++ b/.github/workflows/openvidu-react-tutorial.yml @@ -34,8 +34,8 @@ jobs: run: | npm install npm start > ../results/logs/client_application.log 2>&1 & - - sleep 10 + npx update-browserslist-db@latest + sleep 20 - name: Install dependencies run: npm ci diff --git a/Tests/TutorialTests/openvidu-angular-web-tutorial.spec.js b/Tests/TutorialTests/openvidu-angular-web-tutorial.spec.js index f4679fcc..2c43f1ae 100644 --- a/Tests/TutorialTests/openvidu-angular-web-tutorial.spec.js +++ b/Tests/TutorialTests/openvidu-angular-web-tutorial.spec.js @@ -22,7 +22,7 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a try { // Navigate to the specified URL on page1. - await page1.goto('http://localhost:4200'); + await page1.goto('http://localhost:4200/'); // Fill in the username field, click the join button, and wait for the session to become visible. @@ -46,7 +46,7 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a await page1.screenshot({ path: '../../results/screenshots/page1_screenshot.png' }); // Navigate to the specified URL on page2. - await page2.goto('http://localhost:4200'); + await page2.goto('http://localhost:4200/'); // Fill in the username field, click the join button, and wait for the session to become visible. await page2.fill('#userName', 'User2'); diff --git a/Tests/TutorialTests/openvidu-react-web-tutorial.spec.js b/Tests/TutorialTests/openvidu-react-web-tutorial.spec.js index 2b3dce03..65ea6db3 100644 --- a/Tests/TutorialTests/openvidu-react-web-tutorial.spec.js +++ b/Tests/TutorialTests/openvidu-react-web-tutorial.spec.js @@ -28,8 +28,8 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a // Fill in the '#userName' field with 'Page1', click the 'JOIN' button, and wait for the '#session' element to become visible. await page1.fill('#userName', 'User1'); await page1.click('#join input[type="submit"]'); - await page1.waitForSelector('#session', { visible: true }); - await page1.waitForTimeout(10000); + await page1.waitForSelector('video', { visible: true }); + await page1.waitForTimeout(20000); var videoElements = await page1.$$('video');