+
+ it('Should update the video', async () => {
+ if (await skipIfUploadNotSupported()) return
+
+ await browser.get(videoWatchUrl)
+
+ await videoWatchPage.clickOnUpdate()
+
+ videoName += ' updated'
+ await videoUpdatePage.updateName(videoName)
+
+ await videoUpdatePage.validUpdate()
+
+ const name = await videoWatchPage.getVideoName()
+ expect(name).toEqual(videoName)
+ })
+
+ it('Should add the video in my playlist', async () => {
+ if (await skipIfUploadNotSupported()) return
+
+ await videoWatchPage.clickOnSave()
+
+ await videoWatchPage.createPlaylist(playlistName)
+
+ await videoWatchPage.saveToPlaylist(playlistName)
+
+ await videoUploadPage.navigateTo()
+
+ await videoUploadPage.uploadVideo()
+ await videoUploadPage.validSecondUploadStep(video2Name)
+
+ await videoWatchPage.clickOnSave()
+ await videoWatchPage.saveToPlaylist(playlistName)
+ })
+
+ it('Should have the playlist in my account', async () => {
+ if (await skipIfUploadNotSupported()) return
+
+ await myAccountPage.navigateToMyPlaylists()
+
+ const videosNumberText = await myAccountPage.getPlaylistVideosText(playlistName)
+ expect(videosNumberText).toEqual('2 videos')
+
+ await myAccountPage.clickOnPlaylist(playlistName)
+
+ const count = await myAccountPage.countTotalPlaylistElements()
+ expect(count).toEqual(2)
+ })
+
+ it('Should watch the playlist', async () => {
+ if (await skipIfUploadNotSupported()) return
+
+ await myAccountPage.playPlaylist()
+
+ await videoWatchPage.waitUntilVideoName(video2Name, 20000 * 1000)
+ })
+
+ it('Should delete the video 2', async () => {
+ if (await skipIfUploadNotSupported()) return
+
+ await myAccountPage.navigateToMyVideos()
+
+ await myAccountPage.removeVideo(video2Name)
+ await myAccountPage.validRemove()
+
+ const count = await myAccountPage.countVideos([ videoName, video2Name ])
+ expect(count).toEqual(1)
+ })
+
+ it('Should delete the first video', async () => {
+ if (await skipIfUploadNotSupported()) return
+
+ await myAccountPage.removeVideo(videoName)
+ await myAccountPage.validRemove()
+ })