diff options
Diffstat (limited to 'client/e2e/src/po')
-rw-r--r-- | client/e2e/src/po/app.po.ts | 2 | ||||
-rw-r--r-- | client/e2e/src/po/player.po.ts | 9 |
2 files changed, 6 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) { |