Improve login test reliability for ios
This commit is contained in:
parent
57702d2537
commit
b9b3d18dd9
|
@ -20,18 +20,18 @@ export class LoginPage {
|
||||||
|
|
||||||
await $('form input[type=submit]').click()
|
await $('form input[type=submit]').click()
|
||||||
|
|
||||||
|
if (this.isMobileDevice) {
|
||||||
const menuToggle = $('.top-left-block span[role=button]')
|
const menuToggle = $('.top-left-block span[role=button]')
|
||||||
|
|
||||||
if (this.isMobileDevice) {
|
await $('h2=Our content selection').waitForDisplayed()
|
||||||
await browser.pause(1000)
|
|
||||||
|
|
||||||
await menuToggle.click()
|
await menuToggle.click()
|
||||||
}
|
|
||||||
|
|
||||||
await this.ensureIsLoggedInAs(username)
|
await this.ensureIsLoggedInAs(username)
|
||||||
|
|
||||||
if (this.isMobileDevice) {
|
|
||||||
await menuToggle.click()
|
await menuToggle.click()
|
||||||
|
} else {
|
||||||
|
await this.ensureIsLoggedInAs(username)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue