mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Updated e2e tests
parent
95e5e977da
commit
085d659363
|
@ -578,6 +578,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -599,6 +602,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -620,6 +626,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -641,6 +650,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -662,6 +674,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -688,6 +703,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -709,6 +727,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -730,6 +751,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -751,6 +775,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -796,6 +823,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -842,6 +872,9 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('session-container')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
|
@ -877,6 +910,10 @@ describe('Testing videoconference EVENTS', () => {
|
||||||
it('should receive the onSessionCreated event', async () => {
|
it('should receive the onSessionCreated event', async () => {
|
||||||
let element;
|
let element;
|
||||||
await browser.get(`${url}?prejoin=false`);
|
await browser.get(`${url}?prejoin=false`);
|
||||||
|
|
||||||
|
element = await browser.wait(until.elementLocated(By.id('call-container')), TIMEOUT);
|
||||||
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
|
|
||||||
element = await browser.wait(until.elementLocated(By.id('onSessionCreated')), TIMEOUT);
|
element = await browser.wait(until.elementLocated(By.id('onSessionCreated')), TIMEOUT);
|
||||||
expect(await element.isDisplayed()).to.be.true;
|
expect(await element.isDisplayed()).to.be.true;
|
||||||
element = await browser.findElements(By.id('onJoinButtonClicked'));
|
element = await browser.findElements(By.id('onJoinButtonClicked'));
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#call-container, #session-container {
|
#call-container, #vc-container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
#session-container {
|
#vc-container {
|
||||||
background-color: var(--ov-primary-color);
|
background-color: var(--ov-primary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<span>{{ errorMessage }}</span>
|
<span>{{ errorMessage }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div [@inOutAnimation] id="session-container" *ngIf="showVideoconference || (!showPrejoin && !loading && !error)">
|
<div [@inOutAnimation] id="vc-container" *ngIf="showVideoconference || (!showPrejoin && !loading && !error)">
|
||||||
<ov-session (onSessionCreated)="_onSessionCreated($event)" *ngIf="isSessionInitialized">
|
<ov-session (onSessionCreated)="_onSessionCreated($event)" *ngIf="isSessionInitialized">
|
||||||
<ng-template #toolbar>
|
<ng-template #toolbar>
|
||||||
<ng-container *ngIf="openviduAngularToolbarTemplate">
|
<ng-container *ngIf="openviduAngularToolbarTemplate">
|
||||||
|
|
Loading…
Reference in New Issue