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
|
@ -14,7 +14,6 @@ import {
|
|||
updateUser,
|
||||
updateVideo,
|
||||
uploadVideo,
|
||||
userLogin,
|
||||
viewVideo
|
||||
} from '../../../shared/extra-utils'
|
||||
import {
|
||||
|
@ -138,7 +137,7 @@ describe('Test plugin action hooks', function () {
|
|||
})
|
||||
|
||||
it('Should run action:api.user.oauth2-got-token', async function () {
|
||||
await userLogin(servers[0], { username: 'created_user', password: 'super_password' })
|
||||
await servers[0].loginCommand.getAccessToken('created_user', 'super_password')
|
||||
|
||||
await checkHook('action:api.user.oauth2-got-token')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue