Skip to content

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

Fix E2E tests

Chocobozzz75af5ca692f4
diff --git a/client/e2e/src/po/my-account.po.ts b/client/e2e/src/po/my-account.po.ts
index 76b0f8ecdb..4f4b30e3e8 100644
--- a/client/e2e/src/po/my-account.po.ts
+++ b/client/e2e/src/po/my-account.po.ts
@@ -112,7 +112,7 @@ export class MyAccountPage {
}
async updatePlaylistPrivacy (playlistUUID: string, privacy: 'Public' | 'Private' | 'Unlisted') {
- go('/my-library/video-playlists/update/' + playlistUUID)
+ await go('/my-library/video-playlists/update/' + playlistUUID)
await $('a[href*="/my-library/video-playlists/update/"]').waitForDisplayed()
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts
index 3d670d99a1..30bf207fb3 100644
--- a/client/e2e/src/po/video-watch.po.ts
+++ b/client/e2e/src/po/video-watch.po.ts
@@ -176,7 +176,7 @@ export class VideoWatchPage {
await displayName().waitForDisplayed()
await displayName().setValue(name)
- return $('.new-playlist-block input[type=submit]').click()
+ return $('my-playlist-create-block input[type=submit]').click()
}
async saveToPlaylist (name: string) {
diff --git a/client/e2e/src/suites-local/publish.e2e-spec.ts b/client/e2e/src/suites-local/publish.e2e-spec.ts
index b9d479f5a2..04c5c7121b 100644
--- a/client/e2e/src/suites-local/publish.e2e-spec.ts
+++ b/client/e2e/src/suites-local/publish.e2e-spec.ts
@@ -30,7 +30,6 @@ describe('Publish video', () => {
await videoWatchPage.waitWatchVideoName('video')
expect(await videoWatchPage.getPrivacy()).toBe('Public')
- expect(await videoWatchPage.getLicence()).toBe('Unknown')
expect(await videoWatchPage.isDownloadEnabled()).toBeTruthy()
expect(await videoWatchPage.areCommentsEnabled()).toBeTruthy()
})