diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 11:05:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 41d1d075011174e73dccb74006181a92a618d7b4 (patch) | |
tree | 4dc1af0e266977f062cf9716837d04de1cdd628d /server/tests/api/moderation/video-blacklist.ts | |
parent | 6c5065a011b099618681a37bd77eaa7bd3db752e (diff) | |
download | PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.gz PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.tar.zst PeerTube-41d1d075011174e73dccb74006181a92a618d7b4.zip |
Introduce login command
Diffstat (limited to 'server/tests/api/moderation/video-blacklist.ts')
-rw-r--r-- | server/tests/api/moderation/video-blacklist.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/moderation/video-blacklist.ts b/server/tests/api/moderation/video-blacklist.ts index 8b4723a2b..b61effc57 100644 --- a/server/tests/api/moderation/video-blacklist.ts +++ b/server/tests/api/moderation/video-blacklist.ts | |||
@@ -19,7 +19,6 @@ import { | |||
19 | setAccessTokensToServers, | 19 | setAccessTokensToServers, |
20 | updateVideo, | 20 | updateVideo, |
21 | uploadVideo, | 21 | uploadVideo, |
22 | userLogin, | ||
23 | waitJobs | 22 | waitJobs |
24 | } from '@shared/extra-utils' | 23 | } from '@shared/extra-utils' |
25 | import { User, UserAdminFlag, UserRole, VideoBlacklist, VideoBlacklistType } from '@shared/models' | 24 | import { User, UserAdminFlag, UserRole, VideoBlacklist, VideoBlacklistType } from '@shared/models' |
@@ -366,7 +365,7 @@ describe('Test video blacklist', function () { | |||
366 | role: UserRole.USER | 365 | role: UserRole.USER |
367 | }) | 366 | }) |
368 | 367 | ||
369 | userWithoutFlag = await userLogin(servers[0], user) | 368 | userWithoutFlag = await servers[0].loginCommand.getAccessToken(user) |
370 | 369 | ||
371 | const res = await getMyUserInformation(servers[0].url, userWithoutFlag) | 370 | const res = await getMyUserInformation(servers[0].url, userWithoutFlag) |
372 | const body: User = res.body | 371 | const body: User = res.body |
@@ -384,7 +383,7 @@ describe('Test video blacklist', function () { | |||
384 | role: UserRole.USER | 383 | role: UserRole.USER |
385 | }) | 384 | }) |
386 | 385 | ||
387 | userWithFlag = await userLogin(servers[0], user) | 386 | userWithFlag = await servers[0].loginCommand.getAccessToken(user) |
388 | } | 387 | } |
389 | 388 | ||
390 | await waitJobs(servers) | 389 | await waitJobs(servers) |