From b9b3d18dd98af76aa423eeb58127352314dce762 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 31 Oct 2022 09:57:17 +0100 Subject: [PATCH] Improve login test reliability for ios --- client/e2e/src/po/login.po.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/e2e/src/po/login.po.ts b/client/e2e/src/po/login.po.ts index 91bf46e30..bc1854dbc 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) } } -- 2.41.0