Skip to content

Commit

Permalink
changes on hello world test
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmailJniah committed Apr 24, 2024
1 parent eb53729 commit 3ebdbaf
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Tests/TutorialTests/openvidu-hello-world-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a
expect(isPaused).not.toBe(true);

}

// Check if audio is playing
var audioElement = await page1.$('audio');
expect(audioElement).not.toBe(null);

var isMuted = await audioElement.evaluate(audio => audio.muted);
expect(isMuted).not.toBe(true);


// Capture a screenshot of page1 and save it to a file.
Expand Down Expand Up @@ -67,15 +74,11 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a
expect(isPaused).not.toBe(true);

}

audioElement = await page2.$('audio');
expect(audioElement).not.toBe(null);

var isMuted = await videoElements[1].evaluate(video => video.muted);

expect(isMuted).not.toBe(true);

videoElements = await page1.$$('video');

isMuted = await videoElements[1].evaluate(video => video.muted);

isMuted = await audioElement.evaluate(audio => audio.muted);
expect(isMuted).not.toBe(true);


Expand Down

0 comments on commit 3ebdbaf

Please sign in to comment.