aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-20 15:45:11 +0200
committerChocobozzz <me@florianbigard.com>2018-09-20 15:45:11 +0200
commit6247b2057b792cea155a1abd9788c363ae7d2cc2 (patch)
treedf48c12f19ef1969d243315a881bfde01b232aaf /client/e2e/src/po
parent93ea9c47d989e28405cf1039f89be71e592e36a5 (diff)
downloadPeerTube-6247b2057b792cea155a1abd9788c363ae7d2cc2.tar.gz
PeerTube-6247b2057b792cea155a1abd9788c363ae7d2cc2.tar.zst
PeerTube-6247b2057b792cea155a1abd9788c363ae7d2cc2.zip
Fix client e2e tests
Diffstat (limited to 'client/e2e/src/po')
-rw-r--r--client/e2e/src/po/video-watch.po.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts
index 13f4ae945..e17aebc29 100644
--- a/client/e2e/src/po/video-watch.po.ts
+++ b/client/e2e/src/po/video-watch.po.ts
@@ -26,8 +26,11 @@ export class VideoWatchPage {
26 .then((texts: any) => texts.map(t => t.trim())) 26 .then((texts: any) => texts.map(t => t.trim()))
27 } 27 }
28 28
29 waitWatchVideoName (videoName: string, isSafari: boolean) { 29 waitWatchVideoName (videoName: string, isMobileDevice: boolean, isSafari: boolean) {
30 const elem = element(by.css('.video-info .video-info-name')) 30 // On mobile we display the first node, on desktop the second
31 const index = isMobileDevice ? 0 : 1
32
33 const elem = element.all(by.css('.video-info .video-info-name')).get(index)
31 34
32 if (isSafari) return browser.sleep(5000) 35 if (isSafari) return browser.sleep(5000)
33 36