From f57c1de4439c25ac738d061bfc27e58291d6e590 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Mon, 18 Sep 2023 11:44:24 +0200 Subject: [PATCH] openvidu-components: Fixed screenshare e2e test --- openvidu-components-angular/e2e/webcomponent.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvidu-components-angular/e2e/webcomponent.test.ts b/openvidu-components-angular/e2e/webcomponent.test.ts index af323a4f..d585d32a 100644 --- a/openvidu-components-angular/e2e/webcomponent.test.ts +++ b/openvidu-components-angular/e2e/webcomponent.test.ts @@ -1327,7 +1327,7 @@ describe('Testing screenshare features', () => { }); - it('should screensharing with audio muted', async () => { + it('should screensharing with audio enabled', async () => { let isAudioEnabled; const getAudioScript = (className: string) => { return `return document.getElementsByClassName('${className}')[0].srcObject.getAudioTracks()[0].enabled;`; @@ -1349,7 +1349,7 @@ describe('Testing screenshare features', () => { isAudioEnabled = await browser.executeScript(getAudioScript('screen-type')); - expect(isAudioEnabled).to.be.false; + expect(isAudioEnabled).to.be.true; await utils.waitForElement('#statusMic'); expect(await utils.getNumberOfElements('#statusMic')).equals(1);