aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-23 14:23:19 +0100
committerChocobozzz <me@florianbigard.com>2020-01-23 14:59:44 +0100
commit44d4ee4fcb7cf8beebac73f85693c09919b91e66 (patch)
tree24b9867f2e0a5480cda3653ba00702779913fc88 /shared
parent89566f77fd938cf8b0a617d5d2df4ca718242372 (diff)
downloadPeerTube-44d4ee4fcb7cf8beebac73f85693c09919b91e66.tar.gz
PeerTube-44d4ee4fcb7cf8beebac73f85693c09919b91e66.tar.zst
PeerTube-44d4ee4fcb7cf8beebac73f85693c09919b91e66.zip
Fix e2e tests
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/videos/videos.ts14
1 files changed, 6 insertions, 8 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index 9dec12703..d1ac48292 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -587,19 +587,17 @@ async function completeVideoCheck (
587 'File size for resolution ' + file.resolution.label + ' outside confidence interval (' + minSize + '> size <' + maxSize + ')') 587 'File size for resolution ' + file.resolution.label + ' outside confidence interval (' + minSize + '> size <' + maxSize + ')')
588 .to.be.above(minSize).and.below(maxSize) 588 .to.be.above(minSize).and.below(maxSize)
589 589
590 {
591 await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath)
592 }
593
594 if (attributes.previewfile) {
595 await testImage(url, attributes.previewfile, videoDetails.previewPath)
596 }
597
598 const torrent = await webtorrentAdd(file.magnetUri, true) 590 const torrent = await webtorrentAdd(file.magnetUri, true)
599 expect(torrent.files).to.be.an('array') 591 expect(torrent.files).to.be.an('array')
600 expect(torrent.files.length).to.equal(1) 592 expect(torrent.files.length).to.equal(1)
601 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 593 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
602 } 594 }
595
596 await testImage(url, attributes.thumbnailfile || attributes.fixture, videoDetails.thumbnailPath)
597
598 if (attributes.previewfile) {
599 await testImage(url, attributes.previewfile, videoDetails.previewPath)
600 }
603} 601}
604 602
605async function videoUUIDToId (url: string, id: number | string) { 603async function videoUUIDToId (url: string, id: number | string) {