openvidu-components-e2e: added sleep after click button

pull/732/head
csantosm 2022-06-02 13:56:49 +02:00
parent 4a3865f419
commit b80ca191e2
1 changed files with 5 additions and 1 deletions

View File

@ -1119,10 +1119,13 @@ 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();
await browser.sleep(500);
// Checking if fullscreen button is not present // Checking if fullscreen button is not present
element = await browser.wait(until.elementLocated(By.className('mat-menu-content')), TIMEOUT); element = await browser.wait(until.elementLocated(By.className('mat-menu-content')), TIMEOUT);
expect(await element.isDisplayed()).to.be.true; expect(await element.isDisplayed()).to.be.true;
@ -1446,7 +1449,8 @@ describe('Testing EVENTS', () => {
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();
// Checking if fullscreen button is not present await browser.sleep(500);
element = await browser.wait(until.elementLocated(By.className('mat-menu-content')), TIMEOUT); element = await browser.wait(until.elementLocated(By.className('mat-menu-content')), TIMEOUT);
expect(await element.isDisplayed()).to.be.true; expect(await element.isDisplayed()).to.be.true;
const fullscreenButton = await browser.findElement(By.id('fullscreen-btn')); const fullscreenButton = await browser.findElement(By.id('fullscreen-btn'));