Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix local e2e tests

Chocobozzzf74832ce1750
diff --git a/client/e2e/local-protractor.conf.js b/client/e2e/local-protractor.conf.js
index 6120dab8c8..5080f2528c 100644
--- a/client/e2e/local-protractor.conf.js
+++ b/client/e2e/local-protractor.conf.js
@@ -38,7 +38,7 @@ exports.config = {
}
],
- // maxSessions: 1,
+ maxSessions: 1,
baseUrl: 'http://localhost:3000/',
framework: 'jasmine',
jasmineNodeOpts: {
diff --git a/client/e2e/src/po/app.po.ts b/client/e2e/src/po/app.po.ts
index 4954880eff..3ed65399eb 100644
--- a/client/e2e/src/po/app.po.ts
+++ b/client/e2e/src/po/app.po.ts
@@ -9,6 +9,8 @@ export class AppPage {
await element(by.css('.configure-instance-button')).click()
+ await browser.sleep(5000)
+
await browser.switchTo().window(firstHandle)
}
}
diff --git a/client/e2e/src/po/player.po.ts b/client/e2e/src/po/player.po.ts
index 48e61dfea0..cb148a0033 100644
--- a/client/e2e/src/po/player.po.ts
+++ b/client/e2e/src/po/player.po.ts
@@ -3,11 +3,10 @@ import { browserSleep, isIOS, isMobileDevice, isSafari } from '../utils'
export class PlayerPage {
- getWatchVideoPlayerCurrentTime () {
- return element(by.css('.video-js .vjs-current-time-display'))
- .getText()
- .then((t: string) => t.split(':')[1])
- .then(seconds => parseInt(seconds, 10))
+ async getWatchVideoPlayerCurrentTime () {
+ const elem = element(by.css('video'))
+
+ return elem.getAttribute('currentTime')
}
waitUntilPlaylistInfo (text: string) {
diff --git a/client/e2e/src/videos.e2e-spec.ts b/client/e2e/src/videos.e2e-spec.ts
index 4fccdf1b67..cb79262583 100644
--- a/client/e2e/src/videos.e2e-spec.ts
+++ b/client/e2e/src/videos.e2e-spec.ts
@@ -158,6 +158,7 @@ describe('Videos workflow', () => {
await videoWatchPage.createPlaylist(playlistName)
await videoWatchPage.saveToPlaylist(playlistName)
+ await browser.sleep(5000)
await videoUploadPage.navigateTo()