+ it('Should search through account videos', async function () {
+ this.timeout(10_000)
+
+ const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: 'Kami no chikara' })
+
+ await waitJobs(servers)
+
+ for (const server of servers) {
+ const res = await getAccountVideos(server.url, server.accessToken, 'user1@localhost:' + servers[0].port, 0, 5, undefined, {
+ search: 'Kami'
+ })
+
+ expect(res.body.total).to.equal(1)
+ expect(res.body.data).to.be.an('array')
+ expect(res.body.data).to.have.lengthOf(1)
+ expect(res.body.data[0].uuid).to.equal(resVideo.body.video.uuid)
+ }
+ })
+