Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Improve login test reliability for ios

Chocobozzzb9b3d18dd98a
diff --git a/client/e2e/src/po/login.po.ts b/client/e2e/src/po/login.po.ts
index 91bf46e302..bc1854dbc1 100644
--- a/client/e2e/src/po/login.po.ts
+++ b/client/e2e/src/po/login.po.ts
@@ -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)
}
}