From 6d210220be0875d63461829d83c6e3a59d05cf7a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Sep 2021 10:27:04 +0200 Subject: Fix NSFW filter and add tests --- client/e2e/src/po/player.po.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/e2e/src/po/player.po.ts') 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 { waitUntilPlaylistInfo (text: string, maxTime: number) { return browser.waitUntil(async () => { + // Without this we have issues on iphone + await $('.video-js').click() + return (await $('.video-js .vjs-playlist-info').getText()).includes(text) }, { timeout: maxTime }) } @@ -42,7 +45,7 @@ export class PlayerPage { await browserSleep(2000) await browser.waitUntil(async () => { - return (await this.getWatchVideoPlayerCurrentTime()) >= 2 + return (await this.getWatchVideoPlayerCurrentTime()) >= waitUntilSec }) await videojsElem().click() -- cgit v1.2.3