Skip to content

Feature: Added InnerBlock Support for Download Button & Add Support for download attribute #123523

Feature: Added InnerBlock Support for Download Button & Add Support for download attribute

Feature: Added InnerBlock Support for Download Button & Add Support for download attribute #123523

Triggered via pull request January 6, 2025 19:16
Status Failure
Total duration 8m 23s
Artifacts 1

unit-test.yml

on: pull_request
Compute previous WordPress version
0s
Compute previous WordPress version
Build JavaScript assets for PHP unit tests
4m 53s
Build JavaScript assets for PHP unit tests
PHP coding standards
27s
PHP coding standards
Matrix: unit-js-date
Matrix: unit-js
Matrix: test-php
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 32 warnings
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveInformed(expected) Expected mock function not to be called but it was called with: ["Block successfully updated for `%s` (%o).· New content generated by `save` function:· %s· Content retrieved from post body:· %s", "core/file", {"__experimentalLabel": [Function anonymous], "apiVersion": 3, "attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "backgroundColor": {"type": "string"}, "blob": {"role": "local", "type": "string"}, "borderColor": {"type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"role": "content", "selector": "a:not([download])", "source": "rich-text", "type": "rich-text"}, "gradient": {"type": "string"}, "href": {"role": "content", "type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "style": {"type": "object"}, "textColor": {"type": "string"}, "textLinkHref": {"attribute": "href", "role": "content", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "blockHooks": {}, "category": "media", "deprecated": [{"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileName": {"selector": "a:not([download])",
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L220
Error: File 'core__file__new-window__deprecated-1.serialized.html' does not match expected value (however, the block re-serializes identically so you may need to run 'npm run fixtures:regenerate'): expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 <!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} --> - <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button wp-element-button" download>Download</a></div> + <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><div class="wp-block-file__button_wrapper"></div></div> <!-- /wp:file --> ↵ at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:220:12) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveInformed(expected) Expected mock function not to be called but it was called with: ["Block successfully updated for `%s` (%o).· New content generated by `save` function:· %s· Content retrieved from post body:· %s", "core/file", {"__experimentalLabel": [Function anonymous], "apiVersion": 3, "attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "backgroundColor": {"type": "string"}, "blob": {"role": "local", "type": "string"}, "borderColor": {"type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"role": "content", "selector": "a:not([download])", "source": "rich-text", "type": "rich-text"}, "gradient": {"type": "string"}, "href": {"role": "content", "type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "style": {"type": "object"}, "textColor": {"type": "string"}, "textLinkHref": {"attribute": "href", "role": "content", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "blockHooks": {}, "category": "media", "deprecated": [{"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileName": {"selector": "a:not([download])",
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L184
Error: File 'core__file__no-download-button.json' does not match expected value: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 0 @@ -1,9 +1,8 @@ Array [ Object { "attributes": Object { - "downloadButtonText": "", "fileId": "wp-block-file--media-_clientId_0", "fileName": "lkjfijwef", "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js", "previewHeight": 600, "showDownloadButton": false, at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:184:11) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L184
Error: File 'core__file__no-download-button__deprecated-1.json' does not match expected value: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 0 @@ -1,9 +1,8 @@ Array [ Object { "attributes": Object { - "downloadButtonText": "", "fileName": "lkjfijwef", "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js", "previewHeight": 600, "showDownloadButton": false, "textLinkHref": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js", at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:184:11) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L220
Error: File 'core__file__no-text-link.serialized.html' does not match expected value (however, the block re-serializes identically so you may need to run 'npm run fixtures:regenerate'): expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 <!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} --> - <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button wp-element-button" download>Download</a></div> + <div class="wp-block-file"><div class="wp-block-file__button_wrapper"></div></div> <!-- /wp:file --> ↵ at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:220:12) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveInformed(expected) Expected mock function not to be called but it was called with: ["Block successfully updated for `%s` (%o).· New content generated by `save` function:· %s· Content retrieved from post body:· %s", "core/file", {"__experimentalLabel": [Function anonymous], "apiVersion": 3, "attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "backgroundColor": {"type": "string"}, "blob": {"role": "local", "type": "string"}, "borderColor": {"type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"role": "content", "selector": "a:not([download])", "source": "rich-text", "type": "rich-text"}, "gradient": {"type": "string"}, "href": {"role": "content", "type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "style": {"type": "object"}, "textColor": {"type": "string"}, "textLinkHref": {"attribute": "href", "role": "content", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "blockHooks": {}, "category": "media", "deprecated": [{"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileName": {"selector": "a:not([download])",
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L220
Error: File 'core__file__no-text-link__deprecated-1.serialized.html' does not match expected value (however, the block re-serializes identically so you may need to run 'npm run fixtures:regenerate'): expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 <!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} --> - <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button wp-element-button" download>Download</a></div> + <div class="wp-block-file"><div class="wp-block-file__button_wrapper"></div></div> <!-- /wp:file --> ↵ at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:220:12) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveInformed(expected) Expected mock function not to be called but it was called with: ["Block successfully updated for `%s` (%o).· New content generated by `save` function:· %s· Content retrieved from post body:· %s", "core/file", {"__experimentalLabel": [Function anonymous], "apiVersion": 3, "attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "backgroundColor": {"type": "string"}, "blob": {"role": "local", "type": "string"}, "borderColor": {"type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"role": "content", "selector": "a:not([download])", "source": "rich-text", "type": "rich-text"}, "gradient": {"type": "string"}, "href": {"role": "content", "type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "style": {"type": "object"}, "textColor": {"type": "string"}, "textLinkHref": {"attribute": "href", "role": "content", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "blockHooks": {}, "category": "media", "deprecated": [{"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileName": {"selector": "a:not([download])",
JavaScript (Node.js 22) 3/4: test/integration/full-content/full-content.test.js#L184
Error: File 'core__file__pdf-preview.json' does not match expected value: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 1 Array [ Object { "attributes": Object { "displayPreview": true, - "downloadButtonText": "Download", "fileId": "wp-block-file--media-_clientId_0", "fileName": "yolo", "href": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", "previewHeight": 370, "showDownloadButton": true, "textLinkHref": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", }, "innerBlocks": Array [], - "isValid": true, + "isValid": false, "name": "core/file", }, ] at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:184:11) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveInformed(expected) Expected mock function not to be called but it was called with: ["Block successfully updated for `%s` (%o).· New content generated by `save` function:· %s· Content retrieved from post body:· %s", "core/file", {"__experimentalLabel": [Function anonymous], "apiVersion": 3, "attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "backgroundColor": {"type": "string"}, "blob": {"role": "local", "type": "string"}, "borderColor": {"type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"role": "content", "selector": "a:not([download])", "source": "rich-text", "type": "rich-text"}, "gradient": {"type": "string"}, "href": {"role": "content", "type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "style": {"type": "object"}, "textColor": {"type": "string"}, "textLinkHref": {"attribute": "href", "role": "content", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "blockHooks": {}, "category": "media", "deprecated": [{"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileName": {"selector": "a:not([download])",
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L220
Error: File 'core__file__new-window__deprecated-1.serialized.html' does not match expected value (however, the block re-serializes identically so you may need to run 'npm run fixtures:regenerate'): expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 <!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} --> - <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button wp-element-button" download>Download</a></div> + <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" target="_blank" rel="noreferrer noopener">6546</a><div class="wp-block-file__button_wrapper"></div></div> <!-- /wp:file --> ↵ at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:220:12) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveInformed(expected) Expected mock function not to be called but it was called with: ["Block successfully updated for `%s` (%o).· New content generated by `save` function:· %s· Content retrieved from post body:· %s", "core/file", {"__experimentalLabel": [Function anonymous], "apiVersion": 3, "attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "backgroundColor": {"type": "string"}, "blob": {"role": "local", "type": "string"}, "borderColor": {"type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"role": "content", "selector": "a:not([download])", "source": "rich-text", "type": "rich-text"}, "gradient": {"type": "string"}, "href": {"role": "content", "type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "style": {"type": "object"}, "textColor": {"type": "string"}, "textLinkHref": {"attribute": "href", "role": "content", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "blockHooks": {}, "category": "media", "deprecated": [{"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileName": {"selector": "a:not([download])",
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L184
Error: File 'core__file__no-download-button.json' does not match expected value: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 0 @@ -1,9 +1,8 @@ Array [ Object { "attributes": Object { - "downloadButtonText": "", "fileId": "wp-block-file--media-_clientId_0", "fileName": "lkjfijwef", "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js", "previewHeight": 600, "showDownloadButton": false, at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:184:11) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L184
Error: File 'core__file__no-download-button__deprecated-1.json' does not match expected value: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 0 @@ -1,9 +1,8 @@ Array [ Object { "attributes": Object { - "downloadButtonText": "", "fileName": "lkjfijwef", "href": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js", "previewHeight": 600, "showDownloadButton": false, "textLinkHref": "http://localhost:8888/wp-content/uploads/2018/05/keycodes.js", at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:184:11) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L220
Error: File 'core__file__no-text-link.serialized.html' does not match expected value (however, the block re-serializes identically so you may need to run 'npm run fixtures:regenerate'): expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 <!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} --> - <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button wp-element-button" download>Download</a></div> + <div class="wp-block-file"><div class="wp-block-file__button_wrapper"></div></div> <!-- /wp:file --> ↵ at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:220:12) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveInformed(expected) Expected mock function not to be called but it was called with: ["Block successfully updated for `%s` (%o).· New content generated by `save` function:· %s· Content retrieved from post body:· %s", "core/file", {"__experimentalLabel": [Function anonymous], "apiVersion": 3, "attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "backgroundColor": {"type": "string"}, "blob": {"role": "local", "type": "string"}, "borderColor": {"type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"role": "content", "selector": "a:not([download])", "source": "rich-text", "type": "rich-text"}, "gradient": {"type": "string"}, "href": {"role": "content", "type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "style": {"type": "object"}, "textColor": {"type": "string"}, "textLinkHref": {"attribute": "href", "role": "content", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "blockHooks": {}, "category": "media", "deprecated": [{"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileName": {"selector": "a:not([download])",
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L220
Error: File 'core__file__no-text-link__deprecated-1.serialized.html' does not match expected value (however, the block re-serializes identically so you may need to run 'npm run fixtures:regenerate'): expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 <!-- wp:file {"href":"http://localhost:8888/wp-content/uploads/2018/05/keycodes.js"} --> - <div class="wp-block-file"><a href="http://localhost:8888/wp-content/uploads/2018/05/keycodes.js" class="wp-block-file__button wp-element-button" download>Download</a></div> + <div class="wp-block-file"><div class="wp-block-file__button_wrapper"></div></div> <!-- /wp:file --> ↵ at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:220:12) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveInformed(expected) Expected mock function not to be called but it was called with: ["Block successfully updated for `%s` (%o).· New content generated by `save` function:· %s· Content retrieved from post body:· %s", "core/file", {"__experimentalLabel": [Function anonymous], "apiVersion": 3, "attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "backgroundColor": {"type": "string"}, "blob": {"role": "local", "type": "string"}, "borderColor": {"type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"role": "content", "selector": "a:not([download])", "source": "rich-text", "type": "rich-text"}, "gradient": {"type": "string"}, "href": {"role": "content", "type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "style": {"type": "object"}, "textColor": {"type": "string"}, "textLinkHref": {"attribute": "href", "role": "content", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "blockHooks": {}, "category": "media", "deprecated": [{"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileId": {"attribute": "id", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "fileName": {"selector": "a:not([download])", "source": "html", "type": "string"}, "href": {"type": "string"}, "id": {"type": "number"}, "lock": {"type": "object"}, "metadata": {"type": "object"}, "previewHeight": {"default": 600, "type": "number"}, "showDownloadButton": {"default": true, "type": "boolean"}, "textLinkHref": {"attribute": "href", "selector": "a:not([download])", "source": "attribute", "type": "string"}, "textLinkTarget": {"attribute": "target", "selector": "a:not([download])", "source": "attribute", "type": "string"}}, "save": [Function save], "supports": {"align": true, "anchor": true}}, {"attributes": {"align": {"enum": ["left", "center", "right", "wide", "full", ""], "type": "string"}, "anchor": {"attribute": "id", "selector": "*", "source": "attribute", "type": "string"}, "className": {"type": "string"}, "displayPreview": {"type": "boolean"}, "downloadButtonText": {"selector": "a[download]", "source": "html", "type": "string"}, "fileName": {"selector": "a:not([download])",
JavaScript (Node.js 20) 3/4: test/integration/full-content/full-content.test.js#L184
Error: File 'core__file__pdf-preview.json' does not match expected value: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 1 Array [ Object { "attributes": Object { "displayPreview": true, - "downloadButtonText": "Download", "fileId": "wp-block-file--media-_clientId_0", "fileName": "yolo", "href": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", "previewHeight": 370, "showDownloadButton": true, "textLinkHref": "http://localhost:8889/wp-content/uploads/2021/04/yolo.pdf", }, "innerBlocks": Array [], - "isValid": true, + "isValid": false, "name": "core/file", }, ] at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:184:11) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
Mobile
Process completed with exit code 1.
Compute previous WordPress version
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP coding standards
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
JavaScript Date Tests (Node.js 20)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript Date Tests (Node.js 22)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
Mobile
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build JavaScript assets for PHP unit tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3 (WP previous major version) on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.4 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.3 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.2 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.0 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.2 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.2 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.1 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.2 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.1 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.4 (WP previous major version) on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.2 (WP previous major version) on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.4 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.3 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.0 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
build-assets
14.1 MB