+ it('Should run a transcoding job on video 1 with resolution', async function () {
+ this.timeout(60000)
+
+ const env = getEnvCli(servers[0])
+ await execCLI(`${env} npm run create-transcoding-job -- -v ${video1UUID} -r 480`)
+
+ await waitJobs(servers)
+
+ for (const server of servers) {
+ const res = await getVideosList(server.url)
+ const videos = res.body.data
+ expect(videos).to.have.lengthOf(2)
+
+ const res2 = await getVideo(server.url, video1UUID)
+ const videoDetail: VideoDetails = res2.body
+
+ expect(videoDetail.files).to.have.lengthOf(2)
+
+ expect(videoDetail.files[0].resolution.id).to.equal(720)
+
+ expect(videoDetail.files[1].resolution.id).to.equal(480)
+ }
+ })
+