openvidu-components: Fixed screenshare e2e test

pull/819/head
Carlos Santos 2023-09-18 11:44:24 +02:00
parent 287ec58bab
commit f57c1de443
1 changed files with 2 additions and 2 deletions

View File

@ -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);