From b5156440d2501a6d0ddf199d85f27375b31eea44 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Fri, 3 Dec 2021 16:35:31 +0100 Subject: [PATCH] Block fixtures: Change port to 8889 to placate KSES (#37100) Unit tests are currently failing on `trunk` (when used with a current snapshot of the WordPress svn or git repo). Specifically: `Block_Fixture_Test::test_kses_doesnt_change_fixtures` fails for datasets #54 and #55. Reading https://github.com/WordPress/wordpress-develop/pull/1998, I believe that the reason might be that our KSES routines are verifying that the specified port matches the one of the local install. And since our tests normally run `localhost:8889`, I'm updating the relevant test fixtures (from previously `8888`) to reflect that. --- .../fixtures/blocks/core__file__pdf-preview.html | 4 ++-- .../fixtures/blocks/core__file__pdf-preview.json | 6 +++--- .../fixtures/blocks/core__file__pdf-preview.parsed.json | 6 +++--- .../fixtures/blocks/core__file__pdf-preview.serialized.html | 4 ++-- .../blocks/core__file__pdf-preview__deprecated-1.html | 4 ++-- .../blocks/core__file__pdf-preview__deprecated-1.json | 6 +++--- .../core__file__pdf-preview__deprecated-1.parsed.json | 6 +++--- .../core__file__pdf-preview__deprecated-1.serialized.html | 4 ++-- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/test/integration/fixtures/blocks/core__file__pdf-preview.html b/test/integration/fixtures/blocks/core__file__pdf-preview.html index 60eabce7385bb1..9b973746c4b716 100644 --- a/test/integration/fixtures/blocks/core__file__pdf-preview.html +++ b/test/integration/fixtures/blocks/core__file__pdf-preview.html @@ -1,3 +1,3 @@ - -
yoloDownload
+ +
yoloDownload
diff --git a/test/integration/fixtures/blocks/core__file__pdf-preview.json b/test/integration/fixtures/blocks/core__file__pdf-preview.json index 0bd1f140d1f04a..d025e66e152e96 100644 --- a/test/integration/fixtures/blocks/core__file__pdf-preview.json +++ b/test/integration/fixtures/blocks/core__file__pdf-preview.json @@ -4,16 +4,16 @@ "name": "core/file", "isValid": true, "attributes": { - "href": "http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf", + "href": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", "fileId": "wp-block-file--media-_clientId_0", "fileName": "yolo", - "textLinkHref": "http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf", + "textLinkHref": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", "showDownloadButton": true, "downloadButtonText": "Download", "displayPreview": true, "previewHeight": 370 }, "innerBlocks": [], - "originalContent": "
yoloDownload
" + "originalContent": "
yoloDownload
" } ] diff --git a/test/integration/fixtures/blocks/core__file__pdf-preview.parsed.json b/test/integration/fixtures/blocks/core__file__pdf-preview.parsed.json index a07fea8f4329a2..9a0169cc41992c 100644 --- a/test/integration/fixtures/blocks/core__file__pdf-preview.parsed.json +++ b/test/integration/fixtures/blocks/core__file__pdf-preview.parsed.json @@ -2,14 +2,14 @@ { "blockName": "core/file", "attrs": { - "href": "http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf", + "href": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", "displayPreview": true, "previewHeight": 370 }, "innerBlocks": [], - "innerHTML": "\n
yoloDownload
\n", + "innerHTML": "\n
yoloDownload
\n", "innerContent": [ - "\n
yoloDownload
\n" + "\n
yoloDownload
\n" ] } ] diff --git a/test/integration/fixtures/blocks/core__file__pdf-preview.serialized.html b/test/integration/fixtures/blocks/core__file__pdf-preview.serialized.html index 60eabce7385bb1..9b973746c4b716 100644 --- a/test/integration/fixtures/blocks/core__file__pdf-preview.serialized.html +++ b/test/integration/fixtures/blocks/core__file__pdf-preview.serialized.html @@ -1,3 +1,3 @@ - -
yoloDownload
+ +
yoloDownload
diff --git a/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.html b/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.html index 3188d9ae405c91..3089bdbdfd11f0 100644 --- a/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.html +++ b/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.html @@ -1,3 +1,3 @@ - -
yoloDownload
+ +
yoloDownload
diff --git a/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.json b/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.json index 343acaabb0f2a7..b0f8a6b971e7fb 100644 --- a/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.json +++ b/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.json @@ -2,9 +2,9 @@ { "clientId": "_clientId_0", "name": "core/file", - "isValid": true, + "isValid": false, "attributes": { - "href": "http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf", + "href": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", "fileName": "yolo", "textLinkHref": "http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf", "showDownloadButton": true, @@ -13,6 +13,6 @@ "previewHeight": 370 }, "innerBlocks": [], - "originalContent": "
yoloDownload
" + "originalContent": "
yoloDownload
" } ] diff --git a/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.parsed.json b/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.parsed.json index 5d42872aa618a7..ae8dce868bad96 100644 --- a/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.parsed.json +++ b/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.parsed.json @@ -2,14 +2,14 @@ { "blockName": "core/file", "attrs": { - "href": "http://localhost:8888/wp-content/uploads/2021/04/yolo.pdf", + "href": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", "displayPreview": true, "previewHeight": 370 }, "innerBlocks": [], - "innerHTML": "\n
yoloDownload
\n", + "innerHTML": "\n
yoloDownload
\n", "innerContent": [ - "\n
yoloDownload
\n" + "\n
yoloDownload
\n" ] } ] diff --git a/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.serialized.html b/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.serialized.html index 3188d9ae405c91..3089bdbdfd11f0 100644 --- a/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.serialized.html +++ b/test/integration/fixtures/blocks/core__file__pdf-preview__deprecated-1.serialized.html @@ -1,3 +1,3 @@ - -
yoloDownload
+ +
yoloDownload