mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Updated e2e dependencies
parent
875763f357
commit
d0a9ad0e67
|
@ -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
|
@ -1,80 +1,80 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "13.0.0",
|
"@angular/animations": "13.0.0",
|
||||||
"@angular/cdk": "13.0.0",
|
"@angular/cdk": "13.0.0",
|
||||||
"@angular/common": "13.0.0",
|
"@angular/common": "13.0.0",
|
||||||
"@angular/core": "13.0.0",
|
"@angular/core": "13.0.0",
|
||||||
"@angular/flex-layout": "13.0.0-beta.36",
|
"@angular/flex-layout": "13.0.0-beta.36",
|
||||||
"@angular/forms": "13.0.0",
|
"@angular/forms": "13.0.0",
|
||||||
"@angular/material": "13.0.0",
|
"@angular/material": "13.0.0",
|
||||||
"@angular/platform-browser": "13.0.0",
|
"@angular/platform-browser": "13.0.0",
|
||||||
"@angular/platform-browser-dynamic": "13.0.0",
|
"@angular/platform-browser-dynamic": "13.0.0",
|
||||||
"@angular/router": "13.0.0",
|
"@angular/router": "13.0.0",
|
||||||
"autolinker": "3.14.3",
|
"autolinker": "3.14.3",
|
||||||
"lorem-ipsum": "^2.0.8",
|
"lorem-ipsum": "^2.0.8",
|
||||||
"openvidu-browser": "2.23.0",
|
"openvidu-browser": "2.23.0",
|
||||||
"rxjs": "7.5.6",
|
"rxjs": "7.5.6",
|
||||||
"tslib": "2.3.1",
|
"tslib": "2.3.1",
|
||||||
"zone.js": "0.11.4"
|
"zone.js": "0.11.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "13.2.5",
|
"@angular-devkit/build-angular": "13.2.5",
|
||||||
"@angular/cli": "13.0.1",
|
"@angular/cli": "13.0.1",
|
||||||
"@angular/compiler": "13.0.0",
|
"@angular/compiler": "13.0.0",
|
||||||
"@angular/compiler-cli": "13.0.0",
|
"@angular/compiler-cli": "13.0.0",
|
||||||
"@angular/elements": "13.0.0",
|
"@angular/elements": "13.0.0",
|
||||||
"@compodoc/compodoc": "^1.1.19",
|
"@compodoc/compodoc": "^1.1.19",
|
||||||
"@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",
|
||||||
"karma-jasmine-html-reporter": "1.7.0",
|
"karma-jasmine-html-reporter": "1.7.0",
|
||||||
"karma-junit-reporter": "2.0.1",
|
"karma-junit-reporter": "2.0.1",
|
||||||
"karma-mocha-reporter": "2.2.5",
|
"karma-mocha-reporter": "2.2.5",
|
||||||
"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",
|
||||||
"webpack-bundle-analyzer": "^4.5.0"
|
"webpack-bundle-analyzer": "^4.5.0"
|
||||||
},
|
},
|
||||||
"name": "openvidu-components-testapp",
|
"name": "openvidu-components-testapp",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ng build openvidu-components-testapp --configuration production",
|
"build": "ng build openvidu-components-testapp --configuration production",
|
||||||
"bundle-report": "ng build openvidu-webcomponent --stats-json --configuration production && webpack-bundle-analyzer dist/openvidu-webcomponent/stats.json",
|
"bundle-report": "ng build openvidu-webcomponent --stats-json --configuration production && webpack-bundle-analyzer dist/openvidu-webcomponent/stats.json",
|
||||||
"doc:build": "cd projects/openvidu-angular && npx compodoc -p ./doc/tsconfig.doc.json -c ./doc/.compodocrc.json",
|
"doc:build": "cd projects/openvidu-angular && npx compodoc -p ./doc/tsconfig.doc.json -c ./doc/.compodocrc.json",
|
||||||
"doc:clean-copy": "rm -rf ../../openvidu.io-docs/docs/api/openvidu-angular && cp -r ./docs/openvidu-angular/ ../../openvidu.io-docs/docs/api/openvidu-angular",
|
"doc:clean-copy": "rm -rf ../../openvidu.io-docs/docs/api/openvidu-angular && cp -r ./docs/openvidu-angular/ ../../openvidu.io-docs/docs/api/openvidu-angular",
|
||||||
"doc:serve": "cd projects/openvidu-angular && npx compodoc -p ./doc/tsconfig.doc.json --watch --serve -c ./doc/.compodocrc.json",
|
"doc:serve": "cd projects/openvidu-angular && npx compodoc -p ./doc/tsconfig.doc.json --watch --serve -c ./doc/.compodocrc.json",
|
||||||
"lib:build": "ng build openvidu-angular --configuration production && cd ./dist/openvidu-angular && npm pack",
|
"lib:build": "ng build openvidu-angular --configuration production && cd ./dist/openvidu-angular && npm pack",
|
||||||
"lib:copy": "cp dist/openvidu-angular/openvidu-angular-*.tgz ../../openvidu-tutorials/openvidu-call/openvidu-call-front",
|
"lib:copy": "cp dist/openvidu-angular/openvidu-angular-*.tgz ../../openvidu-tutorials/openvidu-call/openvidu-call-front",
|
||||||
"lib:e2e": "tsc --project ./e2e && npx mocha --recursive --timeout 30000 ./e2e/dist/angular.test.js",
|
"lib:e2e": "tsc --project ./e2e && npx mocha --recursive --timeout 30000 ./e2e/dist/angular.test.js",
|
||||||
"lib:e2e-ci": "cross-env LAUNCH_MODE=CI npm run lib:e2e",
|
"lib:e2e-ci": "cross-env LAUNCH_MODE=CI npm run lib:e2e",
|
||||||
"lib:serve": "ng build openvidu-angular --watch",
|
"lib:serve": "ng build openvidu-angular --watch",
|
||||||
"lib:test": "ng test openvidu-angular --no-watch --code-coverage",
|
"lib:test": "ng test openvidu-angular --no-watch --code-coverage",
|
||||||
"lint": "ng lint",
|
"lint": "ng lint",
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "ng serve --ssl --configuration development",
|
"start": "ng serve --ssl --configuration development",
|
||||||
"start-prod": "npx http-server ./dist/openvidu-components-testapp/ --port 4200",
|
"start-prod": "npx http-server ./dist/openvidu-components-testapp/ --port 4200",
|
||||||
"webcomponent:build": "./node_modules/@angular/cli/bin/ng.js build openvidu-webcomponent --configuration production && node ./openvidu-webcomponent-build.js",
|
"webcomponent:build": "./node_modules/@angular/cli/bin/ng.js build openvidu-webcomponent --configuration production && node ./openvidu-webcomponent-build.js",
|
||||||
"webcomponent:e2e": "tsc --project ./e2e && npx mocha --recursive --timeout 30000 ./e2e/dist/webcomponent.test.js",
|
"webcomponent:e2e": "tsc --project ./e2e && npx mocha --recursive --timeout 30000 ./e2e/dist/webcomponent.test.js",
|
||||||
"webcomponent:e2e-ci": "cross-env LAUNCH_MODE=CI npm run webcomponent:e2e",
|
"webcomponent:e2e-ci": "cross-env LAUNCH_MODE=CI npm run webcomponent:e2e",
|
||||||
"webcomponent:serve-testapp": "npx http-server ./e2e/webcomponent-app/"
|
"webcomponent:serve-testapp": "npx http-server ./e2e/webcomponent-app/"
|
||||||
},
|
},
|
||||||
"version": "2.23.1"
|
"version": "2.23.1"
|
||||||
}
|
}
|
Loading…
Reference in New Issue