From 6423d148ffbd2ea9ababd109abff21ba040683a1 Mon Sep 17 00:00:00 2001 From: ismail Date: Wed, 24 Apr 2024 14:01:51 +0200 Subject: [PATCH] change hello-world --- Tests/TutorialTests/openvidu-hello-world-test.spec.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Tests/TutorialTests/openvidu-hello-world-test.spec.js b/Tests/TutorialTests/openvidu-hello-world-test.spec.js index 45f38be9..25cc02cf 100644 --- a/Tests/TutorialTests/openvidu-hello-world-test.spec.js +++ b/Tests/TutorialTests/openvidu-hello-world-test.spec.js @@ -40,6 +40,8 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a } + + // Capture a screenshot of page1 and save it to a file. await page1.screenshot({ path: '../results/screenshots/page1_screenshot.png' }); @@ -66,13 +68,8 @@ test('Checking for the presence of two active webcams in an OpenVidu session', a expect(isPaused).not.toBe(true); } - - var audioElement = await page2.$('audio'); - expect(audioElement).not.toBe(null); - - var isMuted = await audioElement.evaluate(audio => audio.muted); - expect(isMuted).not.toBe(true); + // Close the pages and the browser. await Promise.all([page1.close(), page2.close()]);