aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-31 09:57:17 +0100
committerChocobozzz <me@florianbigard.com>2022-10-31 09:57:17 +0100
commitb9b3d18dd98af76aa423eeb58127352314dce762 (patch)
tree4875364eb62718588062558cc118a4496061eab9 /client/e2e
parent57702d2537db0e1bbefd58d87b5097baad6acde7 (diff)
downloadPeerTube-b9b3d18dd98af76aa423eeb58127352314dce762.tar.gz
PeerTube-b9b3d18dd98af76aa423eeb58127352314dce762.tar.zst
PeerTube-b9b3d18dd98af76aa423eeb58127352314dce762.zip
Improve login test reliability for ios
Diffstat (limited to 'client/e2e')
-rw-r--r--client/e2e/src/po/login.po.ts12
1 files 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 {
20 20
21 await $('form input[type=submit]').click() 21 await $('form input[type=submit]').click()
22 22
23 const menuToggle = $('.top-left-block span[role=button]')
24
25 if (this.isMobileDevice) { 23 if (this.isMobileDevice) {
26 await browser.pause(1000) 24 const menuToggle = $('.top-left-block span[role=button]')
25
26 await $('h2=Our content selection').waitForDisplayed()
27 27
28 await menuToggle.click() 28 await menuToggle.click()
29 }
30 29
31 await this.ensureIsLoggedInAs(username) 30 await this.ensureIsLoggedInAs(username)
32 31
33 if (this.isMobileDevice) {
34 await menuToggle.click() 32 await menuToggle.click()
33 } else {
34 await this.ensureIsLoggedInAs(username)
35 } 35 }
36 } 36 }
37 37