mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Introduce login command
This commit is contained in:
parent
6c5065a011
commit
41d1d07501
63 changed files with 409 additions and 443 deletions
|
@ -13,8 +13,7 @@ import {
|
|||
makePostBodyRequest,
|
||||
makePutBodyRequest,
|
||||
ServerInfo,
|
||||
setAccessTokensToServers,
|
||||
userLogin
|
||||
setAccessTokensToServers
|
||||
} from '@shared/extra-utils'
|
||||
import { PeerTubePlugin, PluginType } from '@shared/models'
|
||||
|
||||
|
@ -45,7 +44,7 @@ describe('Test server plugins API validators', function () {
|
|||
}
|
||||
|
||||
await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password })
|
||||
userAccessToken = await userLogin(server, user)
|
||||
userAccessToken = await server.loginCommand.getAccessToken(user)
|
||||
|
||||
{
|
||||
const res = await server.pluginsCommand.install({ npmName: npmPlugin })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue