privacy: VideoPrivacy.PUBLIC,
commentsEnabled: true,
channel: {
- name: 'Default root channel',
+ displayName: 'Main root channel',
+ name: 'root_channel',
description: '',
isLocal: true
},
duration: 5,
commentsEnabled: false,
channel: {
- name: 'Default root channel',
+ name: 'root_channel',
+ displayName: 'Main root channel',
description: '',
isLocal: true
},
})
it('Should have the views updated', async function () {
- this.timeout(10000)
+ this.timeout(20000)
await viewVideo(server.url, videoId)
await viewVideo(server.url, videoId)
await viewVideo(server.url, videoId)
await viewVideo(server.url, videoId)
+ // Wait the repeatable job
+ await wait(8000)
+
const res = await getVideo(server.url, videoId)
const video = res.body
videoId = videos[3].uuid
})
+ it('Should list and sort by trending in descending order', async function () {
+ const res = await getVideosListPagination(server.url, 0, 2, '-trending')
+
+ const videos = res.body.data
+ expect(res.body.total).to.equal(6)
+ expect(videos.length).to.equal(2)
+ })
+
it('Should update a video', async function () {
const attributes = {
name: 'my super video updated',