Skip to content

Commit

Permalink
click button.btn-success
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmailJniah committed Apr 20, 2024
1 parent 255cc71 commit 2d8c1f2
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/openvidu-angular-web-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('#join input[type="submit"]');
await page1.click('button.btn-success');
await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

Expand Down
1 change: 1 addition & 0 deletions tests/openvidu-getaroom-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a
await page1.waitForSelector('button.btn-success', { timeout: 10000 });

// Click the button with the 'onclick' attribute.

await page1.click('button.btn-success');

// Wait for the '#session' element to become visible and wait for 5 seconds.
Expand Down
2 changes: 1 addition & 1 deletion tests/openvidu-hello-world-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('#join input[type="submit"]');
await page1.click('button.btn-success');
await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

Expand Down
1 change: 0 additions & 1 deletion tests/openvidu-iframe-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a
let iframeHandle = await page1.waitForSelector('iframe.openvidu-iframe');
let frame = await iframeHandle.contentFrame();



// Click the "JOIN" button within the iframe and wait for the '#session' element to become visible.
await frame.click('input[type="submit"]');
Expand Down
2 changes: 1 addition & 1 deletion tests/openvidu-js-screen-share-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('#join input[type="submit"]');
await page1.click('button.btn-success');
await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

Expand Down
5 changes: 4 additions & 1 deletion tests/openvidu-js-web-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ 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.click('button.btn-success');


await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

Expand Down
2 changes: 1 addition & 1 deletion tests/openvidu-react-web-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('#join input[type="submit"]');
await page1.click('button.btn-success');
await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

Expand Down
4 changes: 2 additions & 2 deletions tests/openvidu-recording-java-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('#join-btn');
await page1.click('button.btn-success');
await page1.waitForSelector('#session', { visible: true });

// Find video elements on the first page and verify there is exactly one.
Expand All @@ -46,8 +46,8 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a
await page2.waitForSelector('#session', { visible: true });
await page2.click('#buttonStartRecording');
await page2.click('#buttonGetRecording');
await page2.waitForTimeout(5000);
await page2.screenshot({ path: '../results/screenshots/page2_startrecording_screenshot.png' });
await page2.waitForTimeout(5000);
await page2.click('#buttonStopRecording');
await page2.click('#buttonGetRecording');
await page2.screenshot({ path: '../results/screenshots/page2_stoprecording_screenshot.png' });
Expand Down
2 changes: 1 addition & 1 deletion tests/openvidu-recording-node-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a
await page1.goto('http://localhost:5000');

// Perform actions on the first page.
await page1.click('#join-btn');
await page1.click('button.btn-success');
await page1.waitForSelector('#session', { visible: true });

// Find video elements on the first page and verify there is exactly one.
Expand Down
6 changes: 4 additions & 2 deletions tests/openvidu-vue-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +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.btn-lg.btn-success');
await page1.click('button.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);
Expand Down

0 comments on commit 2d8c1f2

Please sign in to comment.