+ await videoWatchPage.waitUntilVideoName(video2Name, 30 * 1000)
+ })
+
+ it('Should watch the webtorrent playlist in the embed', async () => {
+ if (isUploadUnsupported()) return
+
+ const accessToken = await browser.execute(`return window.localStorage.getItem('access_token');`)
+ const refreshToken = await browser.execute(`return window.localStorage.getItem('refresh_token');`)
+
+ await myAccountPage.goOnAssociatedPlaylistEmbed()
+
+ await playerPage.waitUntilPlayerWrapper()
+
+ console.log('Will set %s and %s tokens in local storage.', accessToken, refreshToken)
+
+ await browser.execute(`window.localStorage.setItem('access_token', '${accessToken}');`)
+ await browser.execute(`window.localStorage.setItem('refresh_token', '${refreshToken}');`)
+ await browser.execute(`window.localStorage.setItem('token_type', 'Bearer');`)
+
+ await browser.refresh()
+
+ await playerPage.playVideo()
+
+ await playerPage.waitUntilPlaylistInfo('2/2', 30 * 1000)
+ })
+
+ it('Should watch the HLS playlist in the embed', async () => {
+ await videoWatchPage.goOnP2PMediaLoaderPlaylistEmbed()
+
+ await playerPage.playVideo()
+
+ await playerPage.waitUntilPlaylistInfo('2/2', 30 * 1000)