diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-18 11:02:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-22 09:17:20 +0200 |
commit | cd4d7a2ca868209fb1e2dbd790c1e5d6cca77e86 (patch) | |
tree | a8d9e219c893551f669a3de37ae0ee91a6c0f7cd /client/e2e/src/po/video-watch.po.ts | |
parent | b4e5942ca79b8f5702c80197ec40eab8fa053a24 (diff) | |
download | PeerTube-cd4d7a2ca868209fb1e2dbd790c1e5d6cca77e86.tar.gz PeerTube-cd4d7a2ca868209fb1e2dbd790c1e5d6cca77e86.tar.zst PeerTube-cd4d7a2ca868209fb1e2dbd790c1e5d6cca77e86.zip |
Fix peertube with google bot
Diffstat (limited to 'client/e2e/src/po/video-watch.po.ts')
-rw-r--r-- | client/e2e/src/po/video-watch.po.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts index 266c9850c..b5df1cbc5 100644 --- a/client/e2e/src/po/video-watch.po.ts +++ b/client/e2e/src/po/video-watch.po.ts | |||
@@ -24,15 +24,19 @@ export class VideoWatchPage { | |||
24 | .then(seconds => parseInt(seconds, 10)) | 24 | .then(seconds => parseInt(seconds, 10)) |
25 | } | 25 | } |
26 | 26 | ||
27 | async pauseVideo () { | 27 | async pauseVideo (pauseAfterMs: number) { |
28 | const el = element(by.css('video')) | 28 | await browser.wait(browser.ExpectedConditions.invisibilityOf(element(by.css('.vjs-loading-spinner')))) |
29 | |||
30 | const el = element(by.css('div.video-js')) | ||
29 | await browser.wait(browser.ExpectedConditions.elementToBeClickable(el)) | 31 | await browser.wait(browser.ExpectedConditions.elementToBeClickable(el)) |
30 | 32 | ||
33 | await browser.sleep(pauseAfterMs) | ||
34 | |||
31 | return el.click() | 35 | return el.click() |
32 | } | 36 | } |
33 | 37 | ||
34 | async clickOnFirstVideoOfList () { | 38 | async clickOnVideo (videoName: string) { |
35 | const video = element(by.css('.videos .video-miniature:first-child .video-thumbnail')) | 39 | const video = element(by.css('.videos .video-miniature .video-thumbnail[title="' + videoName + '"]')) |
36 | 40 | ||
37 | await video.click() | 41 | await video.click() |
38 | 42 | ||