Improve labeling and descriptions of Content and Wide widths. #116256
Annotations
3 errors and 1 warning
Running the tests:
packages/block-editor/src/components/block-alignment-control/test/index.js#L19
Error: expect(jest.fn()).not.toHaveErrored(expected)
Expected mock function not to be called but it was called with:
["Warning: React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.%s", "widthTitle", "widthtitle", "
at button
at /home/runner/work/gutenberg/gutenberg/packages/components/node_modules/@ariakit/react-core/cjs/__chunks/M5IWBORB.cjs:19:49
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/tooltip/index.tsx:49:3)
at useDeprecatedProps (/home/runner/work/gutenberg/gutenberg/packages/components/src/button/index.tsx:116:6)
at div
at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/toolbar/toolbar-button/toolbar-button-container.tsx:7:2)
at useDeprecatedProps (/home/runner/work/gutenberg/gutenberg/packages/components/src/toolbar/toolbar-button/index.tsx:48:6)
at div
at className (/home/runner/work/gutenberg/gutenberg/packages/components/src/toolbar/toolbar-group/toolbar-group-container.tsx:8:2)
at controls (/home/runner/work/gutenberg/gutenberg/packages/components/src/toolbar/toolbar-group/index.tsx:55:2)
at value (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-alignment-control/ui.js:24:2)"]
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 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:
packages/block-editor/src/components/block-alignment-control/test/index.js#L42
Error: expect(received).toMatchSnapshot()
Snapshot name: `BlockAlignmentUI should match snapshot when controls are visible 1`
- Snapshot - 0
+ Received + 1
@@ -9,10 +9,11 @@
aria-label="None"
aria-pressed="false"
class="components-button components-toolbar__control has-icon"
data-toolbar-item="true"
type="button"
+ widthtitle="Default width"
>
<svg
aria-hidden="true"
focusable="false"
height="24"
at Object.toMatchSnapshot (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-alignment-control/test/index.js:42:23)
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