Improve login test reliability for ios

This commit is contained in:
Chocobozzz 2022-10-31 09:57:17 +01:00
parent 57702d2537
commit b9b3d18dd9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 6 deletions

View File

@ -20,18 +20,18 @@ export class LoginPage {
await $('form input[type=submit]').click()
const menuToggle = $('.top-left-block span[role=button]')
if (this.isMobileDevice) {
await browser.pause(1000)
const menuToggle = $('.top-left-block span[role=button]')
await $('h2=Our content selection').waitForDisplayed()
await menuToggle.click()
}
await this.ensureIsLoggedInAs(username)
await this.ensureIsLoggedInAs(username)
if (this.isMobileDevice) {
await menuToggle.click()
} else {
await this.ensureIsLoggedInAs(username)
}
}