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/videos/videos-history.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/videos/videos-history.ts')
-rw-r--r-- | server/tests/api/videos/videos-history.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/videos/videos-history.ts b/server/tests/api/videos/videos-history.ts index 9a7635c35..256271bd0 100644 --- a/server/tests/api/videos/videos-history.ts +++ b/server/tests/api/videos/videos-history.ts | |||
@@ -16,7 +16,6 @@ import { | |||
16 | setAccessTokensToServers, | 16 | setAccessTokensToServers, |
17 | updateMyUser, | 17 | updateMyUser, |
18 | uploadVideo, | 18 | uploadVideo, |
19 | userLogin, | ||
20 | wait | 19 | wait |
21 | } from '@shared/extra-utils' | 20 | } from '@shared/extra-utils' |
22 | import { Video, VideoDetails } from '@shared/models' | 21 | import { Video, VideoDetails } from '@shared/models' |
@@ -61,7 +60,7 @@ describe('Test videos history', function () { | |||
61 | password: 'super password' | 60 | password: 'super password' |
62 | } | 61 | } |
63 | await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) | 62 | await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) |
64 | userAccessToken = await userLogin(server, user) | 63 | userAccessToken = await server.loginCommand.getAccessToken(user) |
65 | }) | 64 | }) |
66 | 65 | ||
67 | it('Should get videos, without watching history', async function () { | 66 | it('Should get videos, without watching history', async function () { |