Skip to content

Make BlockPopover component public #103959

Make BlockPopover component public

Make BlockPopover component public #103959

Triggered via pull request May 10, 2024 08:49
Status Failure
Total duration 8m 16s
Artifacts 1

unit-test.yml

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

Annotations

4 errors and 10 warnings
JavaScript (Node.js 21) 1/4: packages/block-library/src/cover/test/edit.js#L158
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: ["Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s%s", "· Check the render method of `BlockToolbarPopover`.", " at clientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-popover/index.js:158:2) at clientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-tools/block-toolbar-popover.js:21:2) at div at children (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-tools/index.js:61:2) at shouldIframe (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-canvas/index.js:20:2) at children (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/provider/block-refs-provider.js:9:38) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx:99:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/provider.tsx:120:37) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/index.tsx:59:2) at children (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/provider/index.js:22:11) at useSubRegistry (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/provider/with-registry-provider.js:21:8) at WithRegistryProvider(Component) at children (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/provider/index.js:61:12) at testBlocks (/home/runner/work/gutenberg/gutenberg/test/integration/helpers/integration-test-editor.js:59:27)"] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40) 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 _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at runNextTicks (node:internal/process/task_queues:60:5) at processTimers (node:internal/timers:511:9) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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 _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 21) 1/4
Process completed with exit code 1.
JavaScript (Node.js 20) 1/4: packages/block-library/src/cover/test/edit.js#L158
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: ["Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s%s", "· Check the render method of `BlockToolbarPopover`.", " at clientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-popover/index.js:158:2) at clientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-tools/block-toolbar-popover.js:21:2) at div at children (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-tools/index.js:61:2) at shouldIframe (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-canvas/index.js:20:2) at children (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/provider/block-refs-provider.js:9:38) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx:99:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/provider.tsx:120:37) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/index.tsx:59:2) at children (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/provider/index.js:22:11) at useSubRegistry (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/provider/with-registry-provider.js:21:8) at WithRegistryProvider(Component) at children (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/provider/index.js:61:12) at testBlocks (/home/runner/work/gutenberg/gutenberg/test/integration/helpers/integration-test-editor.js:59:27)"] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40) 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 _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at runNextTicks (node:internal/process/task_queues:60:5) at processTimers (node:internal/timers:511:9) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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 _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) 1/4
Process completed with exit code 1.
JavaScript Date Tests (Node.js 21)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript Date Tests (Node.js 20)
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 21) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 2/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

Artifacts

Produced during runtime
Name Size
build-assets Expired
9.56 MB