mirror of https://github.com/Chocobozzz/PeerTube
Save
parent
be59656c82
commit
5ab7fd9da9
|
@ -1,4 +1,4 @@
|
||||||
import { by, element } from 'protractor'
|
import { by, element, browser } from 'protractor'
|
||||||
|
|
||||||
export class MyAccountPage {
|
export class MyAccountPage {
|
||||||
|
|
||||||
|
@ -52,6 +52,14 @@ export class MyAccountPage {
|
||||||
return element(by.css('.playlist-info .miniature-thumbnail')).click()
|
return element(by.css('.playlist-info .miniature-thumbnail')).click()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async goOnAssociatedPlaylistEmbed () {
|
||||||
|
let url = await browser.getCurrentUrl()
|
||||||
|
url = url.replace('/videos/watch/playlist/', '/video-playlists/embed/')
|
||||||
|
url = url.replace(':3333', ':9001')
|
||||||
|
|
||||||
|
return browser.get(url)
|
||||||
|
}
|
||||||
|
|
||||||
// My account Videos
|
// My account Videos
|
||||||
|
|
||||||
private getVideoElement (name: string) {
|
private getVideoElement (name: string) {
|
||||||
|
|
|
@ -181,6 +181,20 @@ describe('Videos workflow', () => {
|
||||||
await videoWatchPage.waitUntilVideoName(video2Name, 20000 * 1000)
|
await videoWatchPage.waitUntilVideoName(video2Name, 20000 * 1000)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('Should watch the webtorrent playlist in the embed', async () => {
|
||||||
|
if (await skipIfUploadNotSupported()) return
|
||||||
|
|
||||||
|
await browser.waitForAngularEnabled(false)
|
||||||
|
|
||||||
|
await myAccountPage.goOnAssociatedPlaylistEmbed()
|
||||||
|
|
||||||
|
await videoWatchPage.playAndPauseVideo(false)
|
||||||
|
|
||||||
|
await videoWatchPage.waitUntilVideoName(video2Name, 20000 * 1000)
|
||||||
|
|
||||||
|
await browser.waitForAngularEnabled(true)
|
||||||
|
})
|
||||||
|
|
||||||
it('Should delete the video 2', async () => {
|
it('Should delete the video 2', async () => {
|
||||||
if (await skipIfUploadNotSupported()) return
|
if (await skipIfUploadNotSupported()) return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue