aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/player.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-05 10:26:10 +0100
committerChocobozzz <me@florianbigard.com>2021-03-05 10:26:10 +0100
commitf74832ce17503b99ee11a193ad03b8585f5651cb (patch)
tree08ac69993b975bf6786e028ef1d03eb5ee01a3a2 /client/e2e/src/po/player.po.ts
parentada9762f81fa48d50db69a2312075e71326e71fd (diff)
downloadPeerTube-f74832ce17503b99ee11a193ad03b8585f5651cb.tar.gz
PeerTube-f74832ce17503b99ee11a193ad03b8585f5651cb.tar.zst
PeerTube-f74832ce17503b99ee11a193ad03b8585f5651cb.zip
Fix local e2e tests
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) {