Skip to content

Commit

Permalink
change click
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmailJniah committed Apr 20, 2024
1 parent 2d8c1f2 commit ee8b33b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 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('button.btn-success');
await page1.click('#join input[type="submit"]');
await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

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('button.btn-success');
await page1.click('#join input[type="submit"]');
await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

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('button.btn-success');
await page1.click('#join input[type="submit"]');
await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

Expand Down
2 changes: 1 addition & 1 deletion tests/openvidu-js-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('button.btn-success');
await page1.click('#join input[type="submit"]');


await page1.waitForSelector('#session', { visible: true });
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('button.btn-success');
await page1.click('#join input[type="submit"]');
await page1.waitForSelector('#session', { visible: true });
await page1.waitForTimeout(5000);

Expand Down
2 changes: 1 addition & 1 deletion 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('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.
Expand Down
4 changes: 2 additions & 2 deletions tests/openvidu-vue-tutorial.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ee8b33b

Please sign in to comment.