})
it('Should disable webtorrent, enable HLS, and update my quota', async function () {
- this.timeout(60000)
+ this.timeout(160000)
{
const config = await server.config.getCustomConfig()
await server.users.updateMyAvatar({ token: userToken, fixture })
const user = await server.users.getMyInfo({ token: userToken })
- await testImage(server.url, 'avatar-resized', user.account.avatar.path, '.gif')
+ for (const avatar of user.account.avatars) {
+ await testImage(server.url, `avatar-resized-${avatar.width}x${avatar.width}`, avatar.path, '.gif')
+ }
})
it('Should be able to update my avatar with a gif, and then a png', async function () {
await server.users.updateMyAvatar({ token: userToken, fixture })
const user = await server.users.getMyInfo({ token: userToken })
- await testImage(server.url, 'avatar-resized', user.account.avatar.path, extension)
+ for (const avatar of user.account.avatars) {
+ await testImage(server.url, `avatar-resized-${avatar.width}x${avatar.width}`, avatar.path, extension)
+ }
}
})
+ it('Should still have the same amount of videos in my account', async function () {
+ const { total, data } = await server.videos.listMyVideos({ token: userToken })
+
+ expect(total).to.equal(2)
+ expect(data).to.have.lengthOf(2)
+ })
+
it('Should be able to update my display name', async function () {
await server.users.updateMe({ token: userToken, displayName: 'new display name' })