Manage controlled inner blocks in content only #119207
Annotations
7 errors and 1 warning
Running the tests:
packages/block-editor/src/store/test/selectors.js#L2832
TypeError: Cannot read properties of undefined (reading 'b3247f75-fd94-4fef-97f9-5bfd162cc416')
at areInnerBlocksControlled (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:2832:46)
at areInnerBlocksControlled (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:3153:6)
at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10)
at Object.getBlockEditingMode (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/test/selectors.js:4598:4)
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)
|
Running the tests:
packages/block-editor/src/store/test/selectors.js#L2832
TypeError: Cannot read properties of undefined (reading '9b9c5c3f-2e46-4f02-9e14-9fed515b958s')
at areInnerBlocksControlled (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:2832:46)
at areInnerBlocksControlled (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:3120:6)
at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10)
at Object.getBlockEditingMode (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/test/selectors.js:4676:4)
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)
|
Running the tests:
packages/block-editor/src/hooks/test/align.js#L41
Error: expect(received).toBeUndefined()
Received: {"className": {"type": "string"}, "lock": {"type": "object"}, "metadata": {"type": "object"}}
at Object.toBeUndefined (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/test/align.js:41:34)
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 _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)
|
Running the tests:
packages/block-editor/src/hooks/test/text-align.js#L14
TypeError: Cannot read properties of undefined (reading 'split')
at split (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/utils.js:14:61)
at getBlockSupport (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/selectors.js:640:31)
at getBlockSupport (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/selectors.js:682:12)
at Object.selector [as hasBlockSupport] (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:249:13)
at hasBlockSupport (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/api/registration.js:549:31)
at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/style.js:49:51
at Array.some (<anonymous>)
at some (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/style.js:49:19)
at hasStyleSupport (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/style.js:77:9)
at apply (/home/runner/work/gutenberg/gutenberg/packages/hooks/src/createRunHook.js:69:32)
at runHook (/home/runner/work/gutenberg/gutenberg/packages/hooks/src/createRunHook.js:81:44)
at /home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/process-block-type.js:145:32
at action (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/thunk-middleware.js:4:11)
at next (/home/runner/work/gutenberg/gutenberg/packages/redux-routine/src/index.js:24:12)
at next (/home/runner/work/gutenberg/gutenberg/packages/data/src/promise-middleware.js:20:9)
at Object.next [as dispatch] (/home/runner/work/gutenberg/gutenberg/packages/data/src/resolvers-cache-middleware.js:45:10)
at Object.dispatch [as apply] (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:228:12)
at dispatch (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/private-actions.js:34:30)
at action (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/thunk-middleware.js:4:11)
at next (/home/runner/work/gutenberg/gutenberg/packages/redux-routine/src/index.js:24:12)
at next (/home/runner/work/gutenberg/gutenberg/packages/data/src/promise-middleware.js:20:9)
at Object.next [as dispatch] (/home/runner/work/gutenberg/gutenberg/packages/data/src/resolvers-cache-middleware.js:45:10)
at dispatch (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:208:29)
at addUnprocessedBlockType (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/api/registration.js:255:2)
at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/test/text-align.js:66:21)
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 _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/w
|
Running the tests:
packages/block-editor/src/hooks/test/text-align.js#L14
TypeError: Cannot read properties of undefined (reading 'split')
at split (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/utils.js:14:61)
at getBlockSupport (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/selectors.js:640:31)
at getBlockSupport (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/selectors.js:682:12)
at Object.selector [as hasBlockSupport] (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:249:13)
at hasBlockSupport (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/api/registration.js:549:31)
at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/style.js:49:51
at Array.some (<anonymous>)
at some (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/style.js:49:19)
at hasStyleSupport (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/style.js:77:9)
at apply (/home/runner/work/gutenberg/gutenberg/packages/hooks/src/createRunHook.js:69:32)
at runHook (/home/runner/work/gutenberg/gutenberg/packages/hooks/src/createRunHook.js:81:44)
at /home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/process-block-type.js:145:32
at action (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/thunk-middleware.js:4:11)
at next (/home/runner/work/gutenberg/gutenberg/packages/redux-routine/src/index.js:24:12)
at next (/home/runner/work/gutenberg/gutenberg/packages/data/src/promise-middleware.js:20:9)
at Object.next [as dispatch] (/home/runner/work/gutenberg/gutenberg/packages/data/src/resolvers-cache-middleware.js:45:10)
at Object.dispatch [as apply] (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:228:12)
at dispatch (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/store/private-actions.js:34:30)
at action (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/thunk-middleware.js:4:11)
at next (/home/runner/work/gutenberg/gutenberg/packages/redux-routine/src/index.js:24:12)
at next (/home/runner/work/gutenberg/gutenberg/packages/data/src/promise-middleware.js:20:9)
at Object.next [as dispatch] (/home/runner/work/gutenberg/gutenberg/packages/data/src/resolvers-cache-middleware.js:45:10)
at dispatch (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:208:29)
at addUnprocessedBlockType (/home/runner/work/gutenberg/gutenberg/packages/blocks/src/api/registration.js:255:2)
at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/hooks/test/text-align.js:86:21)
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 _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/w
|
Running the tests:
packages/block-editor/src/components/inner-blocks/test/index.js#L104
Error: expect(received).toMatchSnapshot()
Snapshot name: `InnerBlocks should force serialize for invalid block with inner blocks 1`
- Snapshot - 2
+ Received + 2
"<!-- wp:test-block -->
- <p>Invalid<!-- wp:test-block -->
+ <p class="wp-block-test-block">Invalid<!-- wp:test-block -->
- <p></p>
+ <p class="wp-block-test-block"></p>
<!-- /wp:test-block --></p>
<!-- /wp:test-block -->"
at Object.toMatchSnapshot (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/inner-blocks/test/index.js:104:32)
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)
|
Running the tests
Process completed with exit code 1.
|
Setup Node.js and install dependencies
Both node-version and node-version-file inputs are specified, only node-version will be used
|
Loading