Stabilize the Experimental block supports property #119625
Annotations
8 errors and 1 warning
Running the tests:
test/integration/full-content/full-content.test.js#L228
Error: File 'core__button__border_radius__deprecated-2.serialized.html' does not match expected value:
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
<!-- wp:button {"className":"is-style-outline","style":{"border":{"radius":"10px"},"color":{"text":"#1b9b6c"}}} -->
- <div class="wp-block-button is-style-outline"><a class="wp-block-button__link has-text-color wp-element-button" style="border-radius:10px;color:#1b9b6c">Where We Are</a></div>
+ <div class="wp-block-button is-style-outline has-text-color"><a class="wp-block-button__link has-text-color wp-element-button" style="border-radius:10px;color:#1b9b6c">Where We Are</a></div>
<!-- /wp:button -->
↵
at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/test/integration/full-content/full-content.test.js:228: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)
|
Running the tests:
test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Block validation failed for `core/button` ({
name: 'core/button',
icon: {
src: {
'$$typeof': Symbol(react.element),
type: {
'$$typeof': Symbol(react.forward_ref),
render: [Function (anonymous)] {
[length]: 2,
[name]: '',
displayName: 'SVG'
},
[displayName]: [Getter/Setter]
},
key: null,
ref: null,
props: {
viewBox: '0 0 24 24',
xmlns: 'http://www.w3.org/2000/svg',
children: {
'$$typeof': Symbol(react.element),
type: [Function],
key: null,
ref: null,
props: [Object],
_owner: null,
_store: [Object],
[_self]: undefined,
[_source]: undefined
}
},
_owner: null,
_store: { [validated]: false },
[_self]: undefined,
[_source]: undefined
}
},
keywords: [ 'link', [length]: 1 ],
attributes: {
tagName: {
type: 'string',
enum: [ 'a', 'button', [length]: 2 ],
default: 'a'
},
type: { type: 'string', default: 'button' },
textAlign: { type: 'string' },
url: {
type: 'string',
source: 'attribute',
selector: 'a',
attribute: 'href',
role: 'content'
},
title: {
type: 'string',
source: 'attribute',
selector: 'a,button',
attribute: 'title',
role: 'content'
},
text: {
type: 'rich-text',
source: 'rich-text',
selector: 'a,button',
role: 'content'
},
linkTarget: {
type: 'string',
source: 'attribute',
selector: 'a',
attribute: 'target',
role: 'content'
},
rel: {
type: 'string',
source: 'attribute',
selector: 'a',
attribute: 'rel',
role: 'content'
},
placeholder: { type: 'string' },
backgroundColor: { type: 'string' },
textColor: { type: 'string' },
gradient: { type: 'string' },
width: { type: 'number' },
borderColor: { type: 'string' },
lock: { type: 'object' },
anchor: {
type: 'string',
source: 'attribute',
attribute: 'id',
selector: '*'
},
className: { type: 'string' },
fontFamily: { type: 'string' },
fontSize: { type: 'string' },
style: { type: 'object' },
metadata: { type: 'object' }
},
providesContext: {},
usesContext: [ [length]: 0 ],
selectors: {},
supports: {
anchor: true,
splitting: true,
align: false,
alignWide: false,
color: {
__experimentalSkipSerialization: true,
gradients: true,
__experimentalDefaultControls: { background: true, text: true }
},
typography: {
fontSize: true,
lineHeight: true,
fontFamily: true,
fontWeight: true,
fontStyle: true,
textTransform: true,
textDecoration: true,
letterSpacing: true,
__experimentalWritingMode: true,
__experimentalDefaultControls: { fontSize: true }
},
reusable: false,
shadow: { __experimentalSkipSerialization: true },
spacing: {
__experimentalSkipSerialization: true,
padding: [ 'horizontal', 'vertical', [length]: 2 ],
__experimentalDefaultControls: { padding: true }
},
__experimentalBorder: {
color: true,
radius: true,
style: true,
width: true,
__experimentalSkipSerialization: true,
__experimentalDefaultControls: { color: true, radius: true, style: true, width: true }
},
__experimentalSelector: '.wp-block-button .wp-block-button__link',
interactivity: { clientNavigation: true }
},
styles: [
{ name: 'fill', label: 'Fill', isDefault: true },
{ name: 'outline', label: 'Outline' },
[length]: 2
],
blockHooks: {},
save: <ref *1> [Function: save] {
[length]: 1,
[name]: 'save',
[prototype]: { [constructor]: [Circular *1] }
},
schema: 'https://schemas.wp.org/trunk/block.json',
apiVersion: 3,
|
Running the tests:
test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
["Expected attribute `class` of value `wp-block-button is-style-outline has-text-color`, saw `wp-block-button is-style-outline`."]
console.warn() 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 processTicksAndRejections (node:internal/process/task_queues:95:5)
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 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:
test/integration/full-content/full-content.test.js#L184
Error: File 'core__button__squared.json' does not match expected value:
expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
@@ -13,9 +13,9 @@
"tagName": "a",
"text": "My button",
"type": "button",
},
"innerBlocks": Array [],
- "isValid": true,
+ "isValid": false,
"name": "core/button",
},
]
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)
|
Running the tests:
test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Block validation failed for `core/button` ({
name: 'core/button',
icon: {
src: {
'$$typeof': Symbol(react.element),
type: {
'$$typeof': Symbol(react.forward_ref),
render: [Function (anonymous)] {
[length]: 2,
[name]: '',
displayName: 'SVG'
},
[displayName]: [Getter/Setter]
},
key: null,
ref: null,
props: {
viewBox: '0 0 24 24',
xmlns: 'http://www.w3.org/2000/svg',
children: {
'$$typeof': Symbol(react.element),
type: [Function],
key: null,
ref: null,
props: [Object],
_owner: null,
_store: [Object],
[_self]: undefined,
[_source]: undefined
}
},
_owner: null,
_store: { [validated]: false },
[_self]: undefined,
[_source]: undefined
}
},
keywords: [ 'link', [length]: 1 ],
attributes: {
tagName: {
type: 'string',
enum: [ 'a', 'button', [length]: 2 ],
default: 'a'
},
type: { type: 'string', default: 'button' },
textAlign: { type: 'string' },
url: {
type: 'string',
source: 'attribute',
selector: 'a',
attribute: 'href',
role: 'content'
},
title: {
type: 'string',
source: 'attribute',
selector: 'a,button',
attribute: 'title',
role: 'content'
},
text: {
type: 'rich-text',
source: 'rich-text',
selector: 'a,button',
role: 'content'
},
linkTarget: {
type: 'string',
source: 'attribute',
selector: 'a',
attribute: 'target',
role: 'content'
},
rel: {
type: 'string',
source: 'attribute',
selector: 'a',
attribute: 'rel',
role: 'content'
},
placeholder: { type: 'string' },
backgroundColor: { type: 'string' },
textColor: { type: 'string' },
gradient: { type: 'string' },
width: { type: 'number' },
borderColor: { type: 'string' },
lock: { type: 'object' },
anchor: {
type: 'string',
source: 'attribute',
attribute: 'id',
selector: '*'
},
className: { type: 'string' },
fontFamily: { type: 'string' },
fontSize: { type: 'string' },
style: { type: 'object' },
metadata: { type: 'object' }
},
providesContext: {},
usesContext: [ [length]: 0 ],
selectors: {},
supports: {
anchor: true,
splitting: true,
align: false,
alignWide: false,
color: {
__experimentalSkipSerialization: true,
gradients: true,
__experimentalDefaultControls: { background: true, text: true }
},
typography: {
fontSize: true,
lineHeight: true,
fontFamily: true,
fontWeight: true,
fontStyle: true,
textTransform: true,
textDecoration: true,
letterSpacing: true,
__experimentalWritingMode: true,
__experimentalDefaultControls: { fontSize: true }
},
reusable: false,
shadow: { __experimentalSkipSerialization: true },
spacing: {
__experimentalSkipSerialization: true,
padding: [ 'horizontal', 'vertical', [length]: 2 ],
__experimentalDefaultControls: { padding: true }
},
__experimentalBorder: {
color: true,
radius: true,
style: true,
width: true,
__experimentalSkipSerialization: true,
__experimentalDefaultControls: { color: true, radius: true, style: true, width: true }
},
__experimentalSelector: '.wp-block-button .wp-block-button__link',
interactivity: { clientNavigation: true }
},
styles: [
{ name: 'fill', label: 'Fill', isDefault: true },
{ name: 'outline', label: 'Outline' },
[length]: 2
],
blockHooks: {},
save: <ref *1> [Function: save] {
[length]: 1,
[name]: 'save',
[prototype]: { [constructor]: [Circular *1] }
},
schema: 'https://schemas.wp.org/trunk/block.json',
apiVersion: 3,
|
Running the tests:
test/integration/full-content/full-content.test.js#L32
Error: expect(jest.fn()).not.toHaveWarned(expected)
Expected mock function not to be called but it was called with:
["Expected attribute `class` of value `wp-block-button has-text-color has-background`, saw `wp-block-button`."]
console.warn() 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 processTicksAndRejections (node:internal/process/task_queues:95:5)
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 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:
test/integration/full-content/full-content.test.js#L184
Error: File 'core__table__deprecated-1.json' does not match expected value:
expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
@@ -116,11 +116,11 @@
],
},
],
"caption": "Table Caption",
"foot": Array [],
- "hasFixedLayout": false,
+ "hasFixedLayout": true,
"head": Array [
Object {
"cells": Array [
Object {
"content": "Version",
@@ -137,9 +137,9 @@
],
},
],
},
"innerBlocks": Array [],
- "isValid": true,
+ "isValid": false,
"name": "core/table",
},
]
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)
|
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