Skip to content

Commit

Permalink
Merge pull request #16644 from boubkerbribri/fixTestsForNightly
Browse files Browse the repository at this point in the history
Tests - Fix logout used in Employee tests
  • Loading branch information
SimonGrn committed Dec 2, 2019
2 parents 0bdfab4 + 61b0c87 commit 7bc9da4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/puppeteer/pages/BO/BObasePage.js
Expand Up @@ -121,11 +121,11 @@ module.exports = class BOBasePage extends CommonPage {
* @returns {Promise<void>}
*/
async logoutBO() {
await this.page.click(this.headerLogoImage);
await this.page.waitForSelector(this.userProfileIcon);
await this.clickAndWaitForNavigation(this.headerLogoImage);
await this.page.waitForSelector(this.userProfileIcon, {visible: true});
await this.page.click(this.userProfileIcon);
await this.page.waitForSelector(this.userProfileLogoutLink);
await this.page.click(this.userProfileLogoutLink);
await this.page.waitForSelector(this.userProfileLogoutLink, {visible: true});
await this.clickAndWaitForNavigation(this.userProfileLogoutLink);
}

/**
Expand Down

0 comments on commit 7bc9da4

Please sign in to comment.