diff options
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r-- | server/tests/api/check-params/videos-filter.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/tests/api/check-params/videos-filter.ts b/server/tests/api/check-params/videos-filter.ts index cc2f35069..d5557cd07 100644 --- a/server/tests/api/check-params/videos-filter.ts +++ b/server/tests/api/check-params/videos-filter.ts | |||
@@ -9,7 +9,7 @@ import { | |||
9 | makeGetRequest, | 9 | makeGetRequest, |
10 | runServer, | 10 | runServer, |
11 | ServerInfo, | 11 | ServerInfo, |
12 | setAccessTokensToServers, | 12 | setAccessTokensToServers, setDefaultVideoChannel, |
13 | userLogin | 13 | userLogin |
14 | } from '../../../../shared/utils' | 14 | } from '../../../../shared/utils' |
15 | import { UserRole } from '../../../../shared/models/users' | 15 | import { UserRole } from '../../../../shared/models/users' |
@@ -53,6 +53,7 @@ describe('Test videos filters', function () { | |||
53 | server = await runServer(1) | 53 | server = await runServer(1) |
54 | 54 | ||
55 | await setAccessTokensToServers([ server ]) | 55 | await setAccessTokensToServers([ server ]) |
56 | await setDefaultVideoChannel([ server ]) | ||
56 | 57 | ||
57 | const user = { username: 'user1', password: 'my super password' } | 58 | const user = { username: 'user1', password: 'my super password' } |
58 | await createUser(server.url, server.accessToken, user.username, user.password) | 59 | await createUser(server.url, server.accessToken, user.username, user.password) |
@@ -75,7 +76,8 @@ describe('Test videos filters', function () { | |||
75 | token: server.accessToken, | 76 | token: server.accessToken, |
76 | playlistAttrs: { | 77 | playlistAttrs: { |
77 | displayName: 'super playlist', | 78 | displayName: 'super playlist', |
78 | privacy: VideoPlaylistPrivacy.PUBLIC | 79 | privacy: VideoPlaylistPrivacy.PUBLIC, |
80 | videoChannelId: server.videoChannel.id | ||
79 | } | 81 | } |
80 | }) | 82 | }) |
81 | playlistUUID = res.body.videoPlaylist.uuid | 83 | playlistUUID = res.body.videoPlaylist.uuid |