aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/player.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-09-03 10:27:04 +0200
committerChocobozzz <me@florianbigard.com>2021-09-03 16:35:18 +0200
commit6d210220be0875d63461829d83c6e3a59d05cf7a (patch)
tree60ec5b596ef06295b70ebb553920a39b549e0f13 /client/e2e/src/po/player.po.ts
parent2ede07153ce0282b116345dfee09bff902355a75 (diff)
downloadPeerTube-6d210220be0875d63461829d83c6e3a59d05cf7a.tar.gz
PeerTube-6d210220be0875d63461829d83c6e3a59d05cf7a.tar.zst
PeerTube-6d210220be0875d63461829d83c6e3a59d05cf7a.zip
Fix NSFW filter and add tests
Diffstat (limited to 'client/e2e/src/po/player.po.ts')
-rw-r--r--client/e2e/src/po/player.po.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/e2e/src/po/player.po.ts b/client/e2e/src/po/player.po.ts
index 372e8ab20..fca3bcdba 100644
--- a/client/e2e/src/po/player.po.ts
+++ b/client/e2e/src/po/player.po.ts
@@ -15,6 +15,9 @@ export class PlayerPage {
15 15
16 waitUntilPlaylistInfo (text: string, maxTime: number) { 16 waitUntilPlaylistInfo (text: string, maxTime: number) {
17 return browser.waitUntil(async () => { 17 return browser.waitUntil(async () => {
18 // Without this we have issues on iphone
19 await $('.video-js').click()
20
18 return (await $('.video-js .vjs-playlist-info').getText()).includes(text) 21 return (await $('.video-js .vjs-playlist-info').getText()).includes(text)
19 }, { timeout: maxTime }) 22 }, { timeout: maxTime })
20 } 23 }
@@ -42,7 +45,7 @@ export class PlayerPage {
42 await browserSleep(2000) 45 await browserSleep(2000)
43 46
44 await browser.waitUntil(async () => { 47 await browser.waitUntil(async () => {
45 return (await this.getWatchVideoPlayerCurrentTime()) >= 2 48 return (await this.getWatchVideoPlayerCurrentTime()) >= waitUntilSec
46 }) 49 })
47 50
48 await videojsElem().click() 51 await videojsElem().click()