From cd4d7a2ca868209fb1e2dbd790c1e5d6cca77e86 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 18 May 2018 11:02:40 +0200 Subject: Fix peertube with google bot --- client/e2e/src/videos.e2e-spec.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client/e2e/src/videos.e2e-spec.ts') diff --git a/client/e2e/src/videos.e2e-spec.ts b/client/e2e/src/videos.e2e-spec.ts index 4205fd7a4..82cea72b1 100644 --- a/client/e2e/src/videos.e2e-spec.ts +++ b/client/e2e/src/videos.e2e-spec.ts @@ -34,15 +34,13 @@ describe('Videos workflow', () => { }) it('Should go on video watch page', async () => { - await videoWatchPage.clickOnFirstVideoOfList() + await videoWatchPage.clickOnVideo(videoName) return videoWatchPage.waitWatchVideoName(videoName) }) it('Should play the video', async () => { - await browser.sleep(4000) - - await videoWatchPage.pauseVideo() + await videoWatchPage.pauseVideo(2500) expect(videoWatchPage.getWatchVideoPlayerCurrentTime()).toBeGreaterThanOrEqual(2) }) }) -- cgit v1.2.3