aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-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