openvidu-components: Updated e2e dependencies

pull/750/head
Carlos Santos 2022-10-07 15:48:01 +02:00
parent 875763f357
commit d0a9ad0e67
3 changed files with 31427 additions and 30817 deletions

View File

@ -1,5 +1,5 @@
import { Builder, By, until, WebDriver } from 'selenium-webdriver';
import { expect } from 'chai'; import { expect } from 'chai';
import { Builder, By, until, WebDriver } from 'selenium-webdriver';
import { AngularConfig } from './selenium.conf'; import { AngularConfig } from './selenium.conf';
@ -256,7 +256,7 @@ describe('Testing PANEL STRUCTURAL DIRECTIVES', () => {
expect(element.length).equals(1); expect(element.length).equals(1);
element = await browser.wait(until.elementLocated(By.id('additional-panel-title')), TIMEOUT); element = await browser.wait(until.elementLocated(By.id('additional-panel-title')), TIMEOUT);
await browser.wait(until.elementTextMatches(element, /NEW PANEL/), TIMEOUT); await browser.wait(until.elementTextMatches(element, /NEW PANEL/), TIMEOUT);
expect(await element.getAttribute("innerText")).equals('NEW PANEL'); expect(await element.getAttribute('innerText')).equals('NEW PANEL');
await panelBtn.click(); await panelBtn.click();
@ -349,7 +349,7 @@ describe('Testing PANEL STRUCTURAL DIRECTIVES', () => {
expect(element.length).equals(1); expect(element.length).equals(1);
element = await browser.wait(until.elementLocated(By.id('activities-panel-title')), TIMEOUT); element = await browser.wait(until.elementLocated(By.id('activities-panel-title')), TIMEOUT);
await browser.wait(until.elementTextMatches(element, /CUSTOM ACTIVITIES PANEL/), TIMEOUT); await browser.wait(until.elementTextMatches(element, /CUSTOM ACTIVITIES PANEL/), TIMEOUT);
expect(await element.getAttribute("innerText")).equals('CUSTOM ACTIVITIES PANEL'); expect(await element.getAttribute('innerText')).equals('CUSTOM ACTIVITIES PANEL');
}); });
it('should inject the CUSTOM PANEL with PARTICIPANTS PANEL only and without children', async () => { it('should inject the CUSTOM PANEL with PARTICIPANTS PANEL only and without children', async () => {
@ -514,7 +514,6 @@ describe('Testing PANEL STRUCTURAL DIRECTIVES', () => {
expect(element.length).equals(0); expect(element.length).equals(0);
}); });
it('should inject an ACTIVITIES PANEL only', async () => { it('should inject an ACTIVITIES PANEL only', async () => {
let element; let element;
await browser.get(`${url}`); await browser.get(`${url}`);
@ -573,7 +572,7 @@ describe('Testing PANEL STRUCTURAL DIRECTIVES', () => {
expect(element.length).equals(1); expect(element.length).equals(1);
element = await browser.wait(until.elementLocated(By.id('additional-panel-title')), TIMEOUT); element = await browser.wait(until.elementLocated(By.id('additional-panel-title')), TIMEOUT);
await browser.wait(until.elementTextMatches(element, /NEW PANEL/), TIMEOUT); await browser.wait(until.elementTextMatches(element, /NEW PANEL/), TIMEOUT);
expect(await element.getAttribute("innerText")).equals('NEW PANEL'); expect(await element.getAttribute('innerText')).equals('NEW PANEL');
await panelBtn.click(); await panelBtn.click();
@ -697,8 +696,10 @@ describe('Testing PANEL STRUCTURAL DIRECTIVES', () => {
expect(await element.isDisplayed()).to.be.true; expect(await element.isDisplayed()).to.be.true;
// Click on button for opening participants panel // Click on button for opening participants panel
await browser.sleep(500);
element = await browser.wait(until.elementLocated(By.id('participants-panel-btn')), TIMEOUT); element = await browser.wait(until.elementLocated(By.id('participants-panel-btn')), TIMEOUT);
expect(await element.isDisplayed()).to.be.true; expect(await element.isDisplayed()).to.be.true;
expect(await element.isEnabled()).to.be.true;
await element.click(); await element.click();
// Check if custom panel is not present // Check if custom panel is not present
@ -1123,7 +1124,6 @@ describe('Testing ATTRIBUTE DIRECTIVES', () => {
element = await browser.wait(until.elementLocated(By.id('media-buttons-container')), TIMEOUT); element = await browser.wait(until.elementLocated(By.id('media-buttons-container')), TIMEOUT);
expect(await element.isDisplayed()).to.be.true; expect(await element.isDisplayed()).to.be.true;
// Open more options menu // Open more options menu
element = await browser.wait(until.elementLocated(By.id('more-options-btn')), TIMEOUT); element = await browser.wait(until.elementLocated(By.id('more-options-btn')), TIMEOUT);
await element.click(); await element.click();
@ -1181,8 +1181,6 @@ describe('Testing ATTRIBUTE DIRECTIVES', () => {
element = await browser.wait(until.elementLocated(By.id('media-buttons-container')), TIMEOUT); element = await browser.wait(until.elementLocated(By.id('media-buttons-container')), TIMEOUT);
expect(await element.isDisplayed()).to.be.true; expect(await element.isDisplayed()).to.be.true;
element = await browser.findElements(By.id('screenshare-btn')); element = await browser.findElements(By.id('screenshare-btn'));
expect(element.length).equals(0); expect(element.length).equals(0);
}); });
@ -1291,7 +1289,7 @@ describe('Testing ATTRIBUTE DIRECTIVES', () => {
await element.click(); await element.click();
// Switch to first tab // Switch to first tab
browser.switchTo().window(tabs[0]); await browser.switchTo().window(tabs[0]);
element = await browser.wait(until.elementsLocated(By.id('remote-participant-item')), TIMEOUT); element = await browser.wait(until.elementsLocated(By.id('remote-participant-item')), TIMEOUT);
expect(element.length).equals(1); expect(element.length).equals(1);
@ -1461,7 +1459,6 @@ describe('Testing EVENTS', () => {
expect(await fullscreenButton.isDisplayed()).to.be.true; expect(await fullscreenButton.isDisplayed()).to.be.true;
await fullscreenButton.click(); await fullscreenButton.click();
// Checking if onFullscreenButtonClicked has been received // Checking if onFullscreenButtonClicked has been received
element = await browser.wait(until.elementLocated(By.id('onFullscreenButtonClicked')), TIMEOUT); element = await browser.wait(until.elementLocated(By.id('onFullscreenButtonClicked')), TIMEOUT);
expect(await element.isDisplayed()).to.be.true; expect(await element.isDisplayed()).to.be.true;

File diff suppressed because it is too large Load Diff

View File

@ -27,17 +27,17 @@
"@types/chai": "4.3.0", "@types/chai": "4.3.0",
"@types/mocha": "9.1.0", "@types/mocha": "9.1.0",
"@types/node": "16.11.6", "@types/node": "16.11.6",
"@types/selenium-webdriver": "4.1.1", "@types/selenium-webdriver": "4.1.5",
"chai": "4.3.6", "chai": "4.3.6",
"chromedriver": "104.0.0", "chromedriver": "106.0.1",
"codelyzer": "6.0.2", "codelyzer": "6.0.2",
"concat": "^1.0.3", "concat": "^1.0.3",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"http-server": "14.1.0", "http-server": "14.1.1",
"jasmine-core": "3.10.1", "jasmine-core": "3.10.1",
"jasmine-spec-reporter": "7.0.0", "jasmine-spec-reporter": "7.0.0",
"karma": "^6.3.9", "karma": "^6.3.9",
"karma-chrome-launcher": "3.1.0", "karma-chrome-launcher": "3.1.1",
"karma-coverage": "^2.0.3", "karma-coverage": "^2.0.3",
"karma-coverage-istanbul-reporter": "3.0.3", "karma-coverage-istanbul-reporter": "3.0.3",
"karma-jasmine": "4.0.1", "karma-jasmine": "4.0.1",
@ -47,7 +47,7 @@
"karma-notify-reporter": "1.3.0", "karma-notify-reporter": "1.3.0",
"mocha": "9.2.2", "mocha": "9.2.2",
"ng-packagr": "13.0.3", "ng-packagr": "13.0.3",
"selenium-webdriver": "4.4.0", "selenium-webdriver": "4.5.0",
"ts-node": "10.4.0", "ts-node": "10.4.0",
"tslint": "6.1.3", "tslint": "6.1.3",
"typescript": "4.4.4", "typescript": "4.4.4",