diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-07 14:03:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-07 14:20:38 +0200 |
commit | 61c299eb24016dc6c76cf0c7a6fc6b05ccb654fc (patch) | |
tree | 7254506ca888a9f90d5d67cf65334f5f62a50728 /client/e2e/src/videos.e2e-spec.ts | |
parent | d5cefc1fa5b961b9c6f0efb60baf876b3f453658 (diff) | |
download | PeerTube-61c299eb24016dc6c76cf0c7a6fc6b05ccb654fc.tar.gz PeerTube-61c299eb24016dc6c76cf0c7a6fc6b05ccb654fc.tar.zst PeerTube-61c299eb24016dc6c76cf0c7a6fc6b05ccb654fc.zip |
Add ipad e2e test
Diffstat (limited to 'client/e2e/src/videos.e2e-spec.ts')
-rw-r--r-- | client/e2e/src/videos.e2e-spec.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/e2e/src/videos.e2e-spec.ts b/client/e2e/src/videos.e2e-spec.ts index 97d1b827c..d8af1885f 100644 --- a/client/e2e/src/videos.e2e-spec.ts +++ b/client/e2e/src/videos.e2e-spec.ts | |||
@@ -93,8 +93,12 @@ describe('Videos workflow', () => { | |||
93 | it('Should go on video watch page', async () => { | 93 | it('Should go on video watch page', async () => { |
94 | let videoNameToExcept = videoName | 94 | let videoNameToExcept = videoName |
95 | 95 | ||
96 | if (await isMobileDevice() || await isSafari()) videoNameToExcept = await videoWatchPage.clickOnFirstVideo() | 96 | if (await isMobileDevice() || await isSafari()) { |
97 | else await videoWatchPage.clickOnVideo(videoName) | 97 | await browser.get('https://peertube2.cpy.re/videos/watch/122d093a-1ede-43bd-bd34-59d2931ffc5e') |
98 | videoNameToExcept = 'E2E tests' | ||
99 | } else { | ||
100 | await videoWatchPage.clickOnVideo(videoName) | ||
101 | } | ||
98 | 102 | ||
99 | return videoWatchPage.waitWatchVideoName(videoNameToExcept, await isMobileDevice(), await isSafari()) | 103 | return videoWatchPage.waitWatchVideoName(videoNameToExcept, await isMobileDevice(), await isSafari()) |
100 | }) | 104 | }) |