aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-07 08:47:10 +0200
committerChocobozzz <me@florianbigard.com>2020-08-07 09:14:25 +0200
commit5ab7fd9da92463ade6b31d49bdc0f559174b4c57 (patch)
tree215b4c7bc1f7640f0c45ece1ec93c4301d243b82 /client/e2e/src
parentbe59656c82d641118cd6d468cd11be1e057428d1 (diff)
downloadPeerTube-5ab7fd9da92463ade6b31d49bdc0f559174b4c57.tar.gz
PeerTube-5ab7fd9da92463ade6b31d49bdc0f559174b4c57.tar.zst
PeerTube-5ab7fd9da92463ade6b31d49bdc0f559174b4c57.zip
Save
Diffstat (limited to 'client/e2e/src')
-rw-r--r--client/e2e/src/po/my-account.ts10
-rw-r--r--client/e2e/src/videos.e2e-spec.ts14
2 files changed, 23 insertions, 1 deletions
diff --git a/client/e2e/src/po/my-account.ts b/client/e2e/src/po/my-account.ts
index 49db789fb..6d0d8d61e 100644
--- a/client/e2e/src/po/my-account.ts
+++ b/client/e2e/src/po/my-account.ts
@@ -1,4 +1,4 @@
1import { by, element } from 'protractor' 1import { by, element, browser } from 'protractor'
2 2
3export class MyAccountPage { 3export class MyAccountPage {
4 4
@@ -52,6 +52,14 @@ export class MyAccountPage {
52 return element(by.css('.playlist-info .miniature-thumbnail')).click() 52 return element(by.css('.playlist-info .miniature-thumbnail')).click()
53 } 53 }
54 54
55 async goOnAssociatedPlaylistEmbed () {
56 let url = await browser.getCurrentUrl()
57 url = url.replace('/videos/watch/playlist/', '/video-playlists/embed/')
58 url = url.replace(':3333', ':9001')
59
60 return browser.get(url)
61 }
62
55 // My account Videos 63 // My account Videos
56 64
57 private getVideoElement (name: string) { 65 private getVideoElement (name: string) {
diff --git a/client/e2e/src/videos.e2e-spec.ts b/client/e2e/src/videos.e2e-spec.ts
index bbc5f7da3..75fa89e28 100644
--- a/client/e2e/src/videos.e2e-spec.ts
+++ b/client/e2e/src/videos.e2e-spec.ts
@@ -181,6 +181,20 @@ describe('Videos workflow', () => {
181 await videoWatchPage.waitUntilVideoName(video2Name, 20000 * 1000) 181 await videoWatchPage.waitUntilVideoName(video2Name, 20000 * 1000)
182 }) 182 })
183 183
184 it('Should watch the webtorrent playlist in the embed', async () => {
185 if (await skipIfUploadNotSupported()) return
186
187 await browser.waitForAngularEnabled(false)
188
189 await myAccountPage.goOnAssociatedPlaylistEmbed()
190
191 await videoWatchPage.playAndPauseVideo(false)
192
193 await videoWatchPage.waitUntilVideoName(video2Name, 20000 * 1000)
194
195 await browser.waitForAngularEnabled(true)
196 })
197
184 it('Should delete the video 2', async () => { 198 it('Should delete the video 2', async () => {
185 if (await skipIfUploadNotSupported()) return 199 if (await skipIfUploadNotSupported()) return
186 200