aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/player.po.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e/src/po/player.po.ts')
-rw-r--r--client/e2e/src/po/player.po.ts9
1 files changed, 4 insertions, 5 deletions
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
4export class PlayerPage { 4export 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) {