From 682a51d11abea6427ab5cfd8f8cbf93e9e6313f4 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 14 Dec 2022 13:08:30 +0100 Subject: [PATCH] openvidu-components: Added recordingActivity directive e2e test --- .../e2e/angular.test.ts | 20 +++++++++++++++++++ .../e2e/webcomponent-app/app.js | 2 +- .../app/testing-app/testing.component.html | 8 +++----- .../src/app/testing-app/testing.component.ts | 18 +++++++++++++---- 4 files changed, 38 insertions(+), 10 deletions(-) diff --git a/openvidu-components-angular/e2e/angular.test.ts b/openvidu-components-angular/e2e/angular.test.ts index 65e6539b..15501e21 100644 --- a/openvidu-components-angular/e2e/angular.test.ts +++ b/openvidu-components-angular/e2e/angular.test.ts @@ -985,6 +985,26 @@ describe('Testing ATTRIBUTE DIRECTIVES', () => { expect(await utils.isPresent('mute-btn')).to.be.false; }); + + it('should HIDE the RECORDING activity', async () => { + await browser.get(`${url}`); + + await utils.clickOn('#ovActivitiesPanel-checkbox'); + + await utils.clickOn('#recordingActivity-checkbox'); + + await utils.clickOn('#apply-btn'); + + await utils.checkToolbarIsPresent(); + + await utils.clickOn('#activities-panel-btn'); + + await browser.sleep(500); + + await utils.waitForElement('#custom-activities-panel'); + + expect(await utils.isPresent('ov-recording-activity')).to.be.false; + }); }); describe('Testing EVENTS', () => { diff --git a/openvidu-components-angular/e2e/webcomponent-app/app.js b/openvidu-components-angular/e2e/webcomponent-app/app.js index 4878766f..f3a2586a 100644 --- a/openvidu-components-angular/e2e/webcomponent-app/app.js +++ b/openvidu-components-angular/e2e/webcomponent-app/app.js @@ -134,7 +134,7 @@ $(document).ready(() => { appendElement('onSessionCreated'); // You can see the session documentation here - // https://docs.openvidu.io/en/stable/api/openvidu-browser/classes/session.html + // https://docs.openvidu.io/en/stable/api/openvidu-browser/classes/Session.html session.on('connectionCreated', (e) => { var user = JSON.parse(e.connection.data).clientData; diff --git a/openvidu-components-angular/src/app/testing-app/testing.component.html b/openvidu-components-angular/src/app/testing-app/testing.component.html index 8cfe1efc..43b10917 100644 --- a/openvidu-components-angular/src/app/testing-app/testing.component.html +++ b/openvidu-components-angular/src/app/testing-app/testing.component.html @@ -38,9 +38,9 @@ -