From 91d9558963c4eb6e47d74a14ff8d527c6326e0e1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 8 Jun 2018 14:20:43 +0200 Subject: Fix seeking on auto resolution change --- client/e2e/src/po/video-watch.po.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/e2e/src') diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts index fce8a6c3d..13f4ae945 100644 --- a/client/e2e/src/po/video-watch.po.ts +++ b/client/e2e/src/po/video-watch.po.ts @@ -54,6 +54,12 @@ export class VideoWatchPage { const videojsEl = element(by.css('div.video-js')) await browser.wait(browser.ExpectedConditions.elementToBeClickable(videojsEl)) + // On Android, we need to click twice on "play" (BrowserStack particularity) + if (isMobileDevice) { + await browser.sleep(3000) + await videojsEl.click() + } + await browser.sleep(7000) return videojsEl.click() -- cgit v1.2.3