diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-20 15:45:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-20 15:45:11 +0200 |
commit | 6247b2057b792cea155a1abd9788c363ae7d2cc2 (patch) | |
tree | df48c12f19ef1969d243315a881bfde01b232aaf /client/e2e/src/po | |
parent | 93ea9c47d989e28405cf1039f89be71e592e36a5 (diff) | |
download | PeerTube-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.ts | 7 |
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 | ||