mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Warning : I was not able to run the tests on my machine. It uses a different approach to handle databse connexion and didn't find where to configure it... - create a migration file to add a boolean column in user table - add autoPlayVideo attribute everywhere it is needed (both on client and server side) - add tests - add a way to configure this attribute in account-settings - use the attribute in video-watch component to actually autoplay or not the video
This commit is contained in:
parent
228077efd7
commit
7efe153b0b
18 changed files with 105 additions and 12 deletions
|
@ -415,6 +415,15 @@ describe('Test users', function () {
|
|||
.a('number')
|
||||
})
|
||||
|
||||
it('Should be able to change the autoPlayVideo attribute', async function () {
|
||||
await updateMyUser(server.url, accessTokenUser, undefined, undefined, undefined, false)
|
||||
|
||||
const res = await getMyUserInformation(server.url, accessTokenUser)
|
||||
const user = res.body
|
||||
|
||||
expect(user.autoPlayVideo).to.be.false
|
||||
})
|
||||
|
||||
it('Should be able to change the email display attribute', async function () {
|
||||
await updateMyUser(server.url, accessTokenUser, undefined, undefined, 'updated@example.com')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue