aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/video-playlists.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts
index 90189721a..069450453 100644
--- a/server/tests/api/videos/video-playlists.ts
+++ b/server/tests/api/videos/video-playlists.ts
@@ -6,7 +6,6 @@ import { HttpStatusCode } from '@shared/core-utils'
6import { 6import {
7 addVideoChannel, 7 addVideoChannel,
8 addVideoInPlaylist, 8 addVideoInPlaylist,
9 addVideoToBlacklist,
10 checkPlaylistFilesWereRemoved, 9 checkPlaylistFilesWereRemoved,
11 cleanupTests, 10 cleanupTests,
12 createUser, 11 createUser,
@@ -28,7 +27,6 @@ import {
28 getVideoPlaylistsList, 27 getVideoPlaylistsList,
29 getVideoPlaylistWithToken, 28 getVideoPlaylistWithToken,
30 removeUser, 29 removeUser,
31 removeVideoFromBlacklist,
32 removeVideoFromPlaylist, 30 removeVideoFromPlaylist,
33 reorderVideosPlaylist, 31 reorderVideosPlaylist,
34 ServerInfo, 32 ServerInfo,
@@ -728,7 +726,7 @@ describe('Test video playlists', function () {
728 const position = 1 726 const position = 1
729 727
730 { 728 {
731 await addVideoToBlacklist(servers[0].url, servers[0].accessToken, video1, 'reason', true) 729 await servers[0].blacklistCommand.add({ videoId: video1, reason: 'reason', unfederate: true })
732 await waitJobs(servers) 730 await waitJobs(servers)
733 731
734 await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) 732 await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3)
@@ -738,7 +736,7 @@ describe('Test video playlists', function () {
738 } 736 }
739 737
740 { 738 {
741 await removeVideoFromBlacklist(servers[0].url, servers[0].accessToken, video1) 739 await servers[0].blacklistCommand.remove({ videoId: video1 })
742 await waitJobs(servers) 740 await waitJobs(servers)
743 741
744 await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3) 742 await checkPlaylistElementType(groupUser1, playlistServer1UUID2, VideoPlaylistElementType.REGULAR, position, name, 3)