diff options
author | Chocobozzz <me@florianbigard.com> | 2021-03-05 10:26:10 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-03-05 10:26:10 +0100 |
commit | f74832ce17503b99ee11a193ad03b8585f5651cb (patch) | |
tree | 08ac69993b975bf6786e028ef1d03eb5ee01a3a2 /client/e2e/src | |
parent | ada9762f81fa48d50db69a2312075e71326e71fd (diff) | |
download | PeerTube-f74832ce17503b99ee11a193ad03b8585f5651cb.tar.gz PeerTube-f74832ce17503b99ee11a193ad03b8585f5651cb.tar.zst PeerTube-f74832ce17503b99ee11a193ad03b8585f5651cb.zip |
Fix local e2e tests
Diffstat (limited to 'client/e2e/src')
-rw-r--r-- | client/e2e/src/po/app.po.ts | 2 | ||||
-rw-r--r-- | client/e2e/src/po/player.po.ts | 9 | ||||
-rw-r--r-- | client/e2e/src/videos.e2e-spec.ts | 1 |
3 files changed, 7 insertions, 5 deletions
diff --git a/client/e2e/src/po/app.po.ts b/client/e2e/src/po/app.po.ts index 4954880ef..3ed65399e 100644 --- a/client/e2e/src/po/app.po.ts +++ b/client/e2e/src/po/app.po.ts | |||
@@ -9,6 +9,8 @@ export class AppPage { | |||
9 | 9 | ||
10 | await element(by.css('.configure-instance-button')).click() | 10 | await element(by.css('.configure-instance-button')).click() |
11 | 11 | ||
12 | await browser.sleep(5000) | ||
13 | |||
12 | await browser.switchTo().window(firstHandle) | 14 | await browser.switchTo().window(firstHandle) |
13 | } | 15 | } |
14 | } | 16 | } |
diff --git a/client/e2e/src/po/player.po.ts b/client/e2e/src/po/player.po.ts index 48e61dfea..cb148a003 100644 --- a/client/e2e/src/po/player.po.ts +++ b/client/e2e/src/po/player.po.ts | |||
@@ -3,11 +3,10 @@ import { browserSleep, isIOS, isMobileDevice, isSafari } from '../utils' | |||
3 | 3 | ||
4 | export class PlayerPage { | 4 | export class PlayerPage { |
5 | 5 | ||
6 | getWatchVideoPlayerCurrentTime () { | 6 | async getWatchVideoPlayerCurrentTime () { |
7 | return element(by.css('.video-js .vjs-current-time-display')) | 7 | const elem = element(by.css('video')) |
8 | .getText() | 8 | |
9 | .then((t: string) => t.split(':')[1]) | 9 | return elem.getAttribute('currentTime') |
10 | .then(seconds => parseInt(seconds, 10)) | ||
11 | } | 10 | } |
12 | 11 | ||
13 | waitUntilPlaylistInfo (text: string) { | 12 | waitUntilPlaylistInfo (text: string) { |
diff --git a/client/e2e/src/videos.e2e-spec.ts b/client/e2e/src/videos.e2e-spec.ts index 4fccdf1b6..cb7926258 100644 --- a/client/e2e/src/videos.e2e-spec.ts +++ b/client/e2e/src/videos.e2e-spec.ts | |||
@@ -158,6 +158,7 @@ describe('Videos workflow', () => { | |||
158 | await videoWatchPage.createPlaylist(playlistName) | 158 | await videoWatchPage.createPlaylist(playlistName) |
159 | 159 | ||
160 | await videoWatchPage.saveToPlaylist(playlistName) | 160 | await videoWatchPage.saveToPlaylist(playlistName) |
161 | await browser.sleep(5000) | ||
161 | 162 | ||
162 | await videoUploadPage.navigateTo() | 163 | await videoUploadPage.navigateTo() |
163 | 164 | ||