diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-13 13:37:10 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-17 11:31:46 +0200 |
commit | 28dd2f14f5bdfd4781e489c42db6eaa7d40d560b (patch) | |
tree | c46a1b3f1df55e1ab80eab9e651784ddb91bde9c /client/e2e/src | |
parent | 930e1b939a8f4bdc6586eb5bc1fc531e6c13bfcd (diff) | |
download | PeerTube-28dd2f14f5bdfd4781e489c42db6eaa7d40d560b.tar.gz PeerTube-28dd2f14f5bdfd4781e489c42db6eaa7d40d560b.tar.zst PeerTube-28dd2f14f5bdfd4781e489c42db6eaa7d40d560b.zip |
Some player fixes on Android, Safari and iOS
Diffstat (limited to 'client/e2e/src')
-rw-r--r-- | client/e2e/src/po/video-watch.po.ts | 5 | ||||
-rw-r--r-- | client/e2e/src/suites-all/private-videos.e2e-spec.ts | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts index 56870511d..76ac58e48 100644 --- a/client/e2e/src/po/video-watch.po.ts +++ b/client/e2e/src/po/video-watch.po.ts | |||
@@ -9,11 +9,12 @@ export class VideoWatchPage { | |||
9 | waitWatchVideoName (videoName: string) { | 9 | waitWatchVideoName (videoName: string) { |
10 | if (this.isSafari) return browserSleep(5000) | 10 | if (this.isSafari) return browserSleep(5000) |
11 | 11 | ||
12 | // On mobile we display the first node, on desktop the second | 12 | // On mobile we display the first node, on desktop the second one |
13 | const index = this.isMobileDevice ? 0 : 1 | 13 | const index = this.isMobileDevice ? 0 : 1 |
14 | 14 | ||
15 | return browser.waitUntil(async () => { | 15 | return browser.waitUntil(async () => { |
16 | return (await $$('.video-info .video-info-name')[index].getText()).includes(videoName) | 16 | return await $('.video-info .video-info-name').isExisting() && |
17 | (await $$('.video-info .video-info-name')[index].getText()).includes(videoName) | ||
17 | }) | 18 | }) |
18 | } | 19 | } |
19 | 20 | ||
diff --git a/client/e2e/src/suites-all/private-videos.e2e-spec.ts b/client/e2e/src/suites-all/private-videos.e2e-spec.ts index 829d76a84..0c3757d0d 100644 --- a/client/e2e/src/suites-all/private-videos.e2e-spec.ts +++ b/client/e2e/src/suites-all/private-videos.e2e-spec.ts | |||
@@ -31,7 +31,7 @@ describe('Private videos all workflow', () => { | |||
31 | return loginPage.loginOnPeerTube2() | 31 | return loginPage.loginOnPeerTube2() |
32 | }) | 32 | }) |
33 | 33 | ||
34 | it('Should play an internal web video video', async () => { | 34 | it('Should play an internal web video', async () => { |
35 | await go(FIXTURE_URLS.INTERNAL_WEB_VIDEO) | 35 | await go(FIXTURE_URLS.INTERNAL_WEB_VIDEO) |
36 | 36 | ||
37 | await videoWatchPage.waitWatchVideoName(internalVideoName) | 37 | await videoWatchPage.waitWatchVideoName(internalVideoName) |