diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-02 17:54:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-02 17:54:23 +0100 |
commit | b8598d40f650a31fe09a4a5426dcdc2c5c0d566c (patch) | |
tree | ee41176817ef13525aadc4f0b37fc9391364d5c9 /client/e2e | |
parent | 190ac9df7c95cdae5294596764afae7ce78d108d (diff) | |
parent | bd09dfaf8dcb0ca4cd5dac9f13e3117486f3bcce (diff) | |
download | PeerTube-b8598d40f650a31fe09a4a5426dcdc2c5c0d566c.tar.gz PeerTube-b8598d40f650a31fe09a4a5426dcdc2c5c0d566c.tar.zst PeerTube-b8598d40f650a31fe09a4a5426dcdc2c5c0d566c.zip |
Merge branch 'release/5.0.0' into develop
Diffstat (limited to 'client/e2e')
-rw-r--r-- | client/e2e/src/suites-all/private-videos.e2e-spec.ts | 15 | ||||
-rw-r--r-- | client/e2e/src/utils/urls.ts | 4 |
2 files changed, 19 insertions, 0 deletions
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 db3554659..a25208bb3 100644 --- a/client/e2e/src/suites-all/private-videos.e2e-spec.ts +++ b/client/e2e/src/suites-all/private-videos.e2e-spec.ts | |||
@@ -15,6 +15,7 @@ describe('Private videos all workflow', () => { | |||
15 | let playerPage: PlayerPage | 15 | let playerPage: PlayerPage |
16 | 16 | ||
17 | const internalVideoName = 'Internal E2E test' | 17 | const internalVideoName = 'Internal E2E test' |
18 | const internalHLSOnlyVideoName = 'Internal E2E test - HLS only' | ||
18 | 19 | ||
19 | beforeEach(async () => { | 20 | beforeEach(async () => { |
20 | videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari()) | 21 | videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari()) |
@@ -44,6 +45,13 @@ describe('Private videos all workflow', () => { | |||
44 | await checkCorrectlyPlay(playerPage) | 45 | await checkCorrectlyPlay(playerPage) |
45 | }) | 46 | }) |
46 | 47 | ||
48 | it('Should play an internal HLS only video', async () => { | ||
49 | await go(FIXTURE_URLS.INTERNAL_HLS_ONLY_VIDEO) | ||
50 | |||
51 | await videoWatchPage.waitWatchVideoName(internalHLSOnlyVideoName) | ||
52 | await checkCorrectlyPlay(playerPage) | ||
53 | }) | ||
54 | |||
47 | it('Should play an internal WebTorrent video in embed', async () => { | 55 | it('Should play an internal WebTorrent video in embed', async () => { |
48 | await go(FIXTURE_URLS.INTERNAL_EMBED_WEBTORRENT_VIDEO) | 56 | await go(FIXTURE_URLS.INTERNAL_EMBED_WEBTORRENT_VIDEO) |
49 | 57 | ||
@@ -57,4 +65,11 @@ describe('Private videos all workflow', () => { | |||
57 | await videoWatchPage.waitEmbedForDisplayed() | 65 | await videoWatchPage.waitEmbedForDisplayed() |
58 | await checkCorrectlyPlay(playerPage) | 66 | await checkCorrectlyPlay(playerPage) |
59 | }) | 67 | }) |
68 | |||
69 | it('Should play an internal HLS only video in embed', async () => { | ||
70 | await go(FIXTURE_URLS.INTERNAL_EMBED_HLS_ONLY_VIDEO) | ||
71 | |||
72 | await videoWatchPage.waitEmbedForDisplayed() | ||
73 | await checkCorrectlyPlay(playerPage) | ||
74 | }) | ||
60 | }) | 75 | }) |
diff --git a/client/e2e/src/utils/urls.ts b/client/e2e/src/utils/urls.ts index f91d9a048..cc0bdfbff 100644 --- a/client/e2e/src/utils/urls.ts +++ b/client/e2e/src/utils/urls.ts | |||
@@ -1,9 +1,13 @@ | |||
1 | const FIXTURE_URLS = { | 1 | const FIXTURE_URLS = { |
2 | INTERNAL_WEBTORRENT_VIDEO: 'https://peertube2.cpy.re/w/pwfz7NizSdPD4mJcbbmNwa?mode=webtorrent&start=0', | 2 | INTERNAL_WEBTORRENT_VIDEO: 'https://peertube2.cpy.re/w/pwfz7NizSdPD4mJcbbmNwa?mode=webtorrent&start=0', |
3 | INTERNAL_HLS_VIDEO: 'https://peertube2.cpy.re/w/pwfz7NizSdPD4mJcbbmNwa?start=0', | 3 | INTERNAL_HLS_VIDEO: 'https://peertube2.cpy.re/w/pwfz7NizSdPD4mJcbbmNwa?start=0', |
4 | |||
4 | INTERNAL_EMBED_WEBTORRENT_VIDEO: 'https://peertube2.cpy.re/videos/embed/pwfz7NizSdPD4mJcbbmNwa?mode=webtorrent&start=0', | 5 | INTERNAL_EMBED_WEBTORRENT_VIDEO: 'https://peertube2.cpy.re/videos/embed/pwfz7NizSdPD4mJcbbmNwa?mode=webtorrent&start=0', |
5 | INTERNAL_EMBED_HLS_VIDEO: 'https://peertube2.cpy.re/videos/embed/pwfz7NizSdPD4mJcbbmNwa?start=0', | 6 | INTERNAL_EMBED_HLS_VIDEO: 'https://peertube2.cpy.re/videos/embed/pwfz7NizSdPD4mJcbbmNwa?start=0', |
6 | 7 | ||
8 | INTERNAL_HLS_ONLY_VIDEO: 'https://peertube2.cpy.re/w/tKQmHcqdYZRdCszLUiWM3V?start=0', | ||
9 | INTERNAL_EMBED_HLS_ONLY_VIDEO: 'https://peertube2.cpy.re/videos/embed/tKQmHcqdYZRdCszLUiWM3V?start=0', | ||
10 | |||
7 | WEBTORRENT_VIDEO: 'https://peertube2.cpy.re/w/122d093a-1ede-43bd-bd34-59d2931ffc5e', | 11 | WEBTORRENT_VIDEO: 'https://peertube2.cpy.re/w/122d093a-1ede-43bd-bd34-59d2931ffc5e', |
8 | 12 | ||
9 | HLS_EMBED: 'https://peertube2.cpy.re/videos/embed/969bf103-7818-43b5-94a0-de159e13de50', | 13 | HLS_EMBED: 'https://peertube2.cpy.re/videos/embed/969bf103-7818-43b5-94a0-de159e13de50', |