diff --git a/tests/openvidu-angular-web-tutorial.spec.js b/tests/openvidu-angular-web-tutorial.spec.js index 0bdc82aa..e8c83928 100644 --- a/tests/openvidu-angular-web-tutorial.spec.js +++ b/tests/openvidu-angular-web-tutorial.spec.js @@ -26,7 +26,7 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a // Fill in the username field, click the join button, and wait for the session to become visible. await page1.fill('#userName', 'User1'); - await page1.click('button.btn-success'); + await page1.click('#join input[type="submit"]'); await page1.waitForSelector('#session', { visible: true }); await page1.waitForTimeout(5000); diff --git a/tests/openvidu-hello-world-test.spec.js b/tests/openvidu-hello-world-test.spec.js index 82ac46cb..b44a3dc8 100644 --- a/tests/openvidu-hello-world-test.spec.js +++ b/tests/openvidu-hello-world-test.spec.js @@ -24,7 +24,7 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a // Interact with page1, such as clicking a button and waiting for a specific element to become visible, then wait for a timeout.. - await page1.click('button.btn-success'); + await page1.click('#join input[type="submit"]'); await page1.waitForSelector('#session', { visible: true }); await page1.waitForTimeout(5000); diff --git a/tests/openvidu-js-screen-share-tutorial.spec.js b/tests/openvidu-js-screen-share-tutorial.spec.js index 3fec69d9..32a8cf8f 100644 --- a/tests/openvidu-js-screen-share-tutorial.spec.js +++ b/tests/openvidu-js-screen-share-tutorial.spec.js @@ -24,7 +24,7 @@ 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('button.btn-success'); + await page1.click('#join input[type="submit"]'); await page1.waitForSelector('#session', { visible: true }); await page1.waitForTimeout(5000); diff --git a/tests/openvidu-js-web-tutorial.spec.js b/tests/openvidu-js-web-tutorial.spec.js index 082ab3c8..69b3fca8 100644 --- a/tests/openvidu-js-web-tutorial.spec.js +++ b/tests/openvidu-js-web-tutorial.spec.js @@ -27,7 +27,7 @@ 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('button.btn-success'); + await page1.click('#join input[type="submit"]'); await page1.waitForSelector('#session', { visible: true }); diff --git a/tests/openvidu-react-web-tutorial.spec.js b/tests/openvidu-react-web-tutorial.spec.js index d4e3f01c..4d2bbe27 100644 --- a/tests/openvidu-react-web-tutorial.spec.js +++ b/tests/openvidu-react-web-tutorial.spec.js @@ -27,7 +27,7 @@ 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('button.btn-success'); + await page1.click('#join input[type="submit"]'); await page1.waitForSelector('#session', { visible: true }); await page1.waitForTimeout(5000); diff --git a/tests/openvidu-recording-java-tutorial.spec.js b/tests/openvidu-recording-java-tutorial.spec.js index 45657391..4bbd6f5b 100644 --- a/tests/openvidu-recording-java-tutorial.spec.js +++ b/tests/openvidu-recording-java-tutorial.spec.js @@ -28,7 +28,7 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a await page1.goto('https://localhost:5000'); // Perform actions on the first page. - await page1.click('button.btn-success'); + await page1.click('#join-btn'); await page1.waitForSelector('#session', { visible: true }); // Find video elements on the first page and verify there is exactly one. diff --git a/tests/openvidu-vue-tutorial.spec.js b/tests/openvidu-vue-tutorial.spec.js index 245f6d88..4c95e761 100644 --- a/tests/openvidu-vue-tutorial.spec.js +++ b/tests/openvidu-vue-tutorial.spec.js @@ -22,12 +22,12 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a // Navigate to a specific URL on page 1 and perform actions such as filling a text field and clicking a button. await page1.goto('http://localhost:8080'); await page1.fill('input[type="text"]', 'User1'); - await page1.click('button.btn-success'); + await page1.click('button.btn.btn-lg.btn-success'); // Wait for a specific element to become visible. await page1.waitForSelector('#session', { visible: true }); await page1.waitForTimeout(5000); - + // Find video elements on page 1 and verify there are exactly two of them. var videoElements = await page1.$$('video'); expect(videoElements.length).toEqual(2);