aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-07 13:46:07 +0100
committerChocobozzz <me@florianbigard.com>2021-12-07 13:47:26 +0100
commit7e44bd4a6f39373ef1751d4d19cdcf7de65bdcf9 (patch)
tree6d0d2ea4bc4e1ccf6d9731b6dcfee3ec87b1f391
parent4c6757f2fd2111e51e51e1b0d8f21f3b5e16ff40 (diff)
downloadPeerTube-7e44bd4a6f39373ef1751d4d19cdcf7de65bdcf9.tar.gz
PeerTube-7e44bd4a6f39373ef1751d4d19cdcf7de65bdcf9.tar.zst
PeerTube-7e44bd4a6f39373ef1751d4d19cdcf7de65bdcf9.zip
Fix services tests
-rw-r--r--server/tests/api/server/services.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/server/services.ts b/server/tests/api/server/services.ts
index 3a87df981..823630ae4 100644
--- a/server/tests/api/server/services.ts
+++ b/server/tests/api/server/services.ts
@@ -56,7 +56,7 @@ describe('Test services', function () {
56 const oembedUrl = server.url + basePath + video.uuid + suffix 56 const oembedUrl = server.url + basePath + video.uuid + suffix
57 57
58 const res = await server.services.getOEmbed({ oembedUrl }) 58 const res = await server.services.getOEmbed({ oembedUrl })
59 const expectedHtml = '<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts" ' + 59 const expectedHtml = '<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" ' +
60 `title="${video.name}" src="http://localhost:${server.port}/videos/embed/${video.uuid}" ` + 60 `title="${video.name}" src="http://localhost:${server.port}/videos/embed/${video.uuid}" ` +
61 'frameborder="0" allowfullscreen></iframe>' 61 'frameborder="0" allowfullscreen></iframe>'
62 const expectedThumbnailUrl = 'http://localhost:' + server.port + video.previewPath 62 const expectedThumbnailUrl = 'http://localhost:' + server.port + video.previewPath
@@ -79,7 +79,7 @@ describe('Test services', function () {
79 const oembedUrl = server.url + basePath + playlistUUID + suffix 79 const oembedUrl = server.url + basePath + playlistUUID + suffix
80 80
81 const res = await server.services.getOEmbed({ oembedUrl }) 81 const res = await server.services.getOEmbed({ oembedUrl })
82 const expectedHtml = '<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts" ' + 82 const expectedHtml = '<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts allow-popups" ' +
83 `title="${playlistDisplayName}" src="http://localhost:${server.port}/video-playlists/embed/${playlistUUID}" ` + 83 `title="${playlistDisplayName}" src="http://localhost:${server.port}/video-playlists/embed/${playlistUUID}" ` +
84 'frameborder="0" allowfullscreen></iframe>' 84 'frameborder="0" allowfullscreen></iframe>'
85 85
@@ -103,7 +103,7 @@ describe('Test services', function () {
103 const maxWidth = 50 103 const maxWidth = 50
104 104
105 const res = await server.services.getOEmbed({ oembedUrl, format, maxHeight, maxWidth }) 105 const res = await server.services.getOEmbed({ oembedUrl, format, maxHeight, maxWidth })
106 const expectedHtml = '<iframe width="50" height="50" sandbox="allow-same-origin allow-scripts" ' + 106 const expectedHtml = '<iframe width="50" height="50" sandbox="allow-same-origin allow-scripts allow-popups" ' +
107 `title="${video.name}" src="http://localhost:${server.port}/videos/embed/${video.uuid}" ` + 107 `title="${video.name}" src="http://localhost:${server.port}/videos/embed/${video.uuid}" ` +
108 'frameborder="0" allowfullscreen></iframe>' 108 'frameborder="0" allowfullscreen></iframe>'
109 109