From f7b0f8e8037d2e3aab9cc774fe0e6c3aa22bfede Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Fri, 21 Apr 2023 13:32:13 +0200 Subject: [PATCH] openvidu-components: Added e2e test for checking video sound button Checking if sound button is not present for local participants --- .../e2e/webcomponent.test.ts | 37 +++++++++++++++++++ .../components/stream/stream.component.html | 4 +- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/openvidu-components-angular/e2e/webcomponent.test.ts b/openvidu-components-angular/e2e/webcomponent.test.ts index 6af09c85..a9d24213 100644 --- a/openvidu-components-angular/e2e/webcomponent.test.ts +++ b/openvidu-components-angular/e2e/webcomponent.test.ts @@ -1037,6 +1037,43 @@ describe('Testing videoconference EVENTS', () => { }); }); +describe('Testing stream video menu features', () => { + let browser: WebDriver; + let utils: OpenViduComponentsPO; + async function createChromeBrowser(): Promise { + return await new Builder() + .forBrowser(WebComponentConfig.browserName) + .withCapabilities(WebComponentConfig.browserCapabilities) + .setChromeOptions(WebComponentConfig.browserOptions) + .usingServer(WebComponentConfig.seleniumAddress) + .build(); + } + + beforeEach(async () => { + browser = await createChromeBrowser(); + utils = new OpenViduComponentsPO(browser); + }); + + afterEach(async () => { + await browser.quit(); + }); + + it('should not show the Mute sound button for local participant', async () => { + await browser.get(`${url}&prejoin=false`); + + await utils.checkLayoutPresent(); + + await utils.waitForElement('#stream-menu-btn'); + await utils.clickOn('#stream-menu-btn'); + + await browser.sleep(500); + + // Checking if mute sound button is not present + expect(await utils.isPresent('#sound-btn')).to.be.false; + }); +}); + + describe('Testing screenshare features', () => { let browser: WebDriver; let utils: OpenViduComponentsPO; diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/stream/stream.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/stream/stream.component.html index 776e1be2..e137148c 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/stream/stream.component.html +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/stream/stream.component.html @@ -50,7 +50,7 @@
- @@ -60,7 +60,7 @@ {{ 'STREAM.ZOOM_OUT' | translate }} {{ 'STREAM.ZOOM_IN' | translate }} -