aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-07 13:47:34 +0100
committerChocobozzz <me@florianbigard.com>2021-12-07 13:47:34 +0100
commit636d73c58866ed235c207719e41fdde3c2d6c969 (patch)
tree8a11ab8d36fcb1cca68aa32993d0826d81eb0859 /server/tests
parent51d811751f1a299c61d64e11fbe600edeb6d586d (diff)
parent7e44bd4a6f39373ef1751d4d19cdcf7de65bdcf9 (diff)
downloadPeerTube-636d73c58866ed235c207719e41fdde3c2d6c969.tar.gz
PeerTube-636d73c58866ed235c207719e41fdde3c2d6c969.tar.zst
PeerTube-636d73c58866ed235c207719e41fdde3c2d6c969.zip
Merge branch 'release/4.0.0' into develop
Diffstat (limited to 'server/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