InspectorControls: Try prop to bypass BaseControl margin #115831
Annotations
2 errors and 1 warning
Running the tests:
packages/components/src/alignment-matrix-control/test/index.tsx#L115
Error: expect(element).toHaveFocus()
Expected element with focus:
<span class="css-17mjk8t-Cell e1r95csn1" id="alignment-matrix-control-12-center-left" role="gridcell" tabindex="-1"><div class="components-visually-hidden css-161q9d5-PolymorphicDiv e19lxcc00" data-wp-c16t="true" data-wp-component="VisuallyHidden" style="border: 0px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset( 50% ); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; word-wrap: normal;">center left</div><span class="css-1jz015p-Point e1r95csn0" role="presentation" /></span>
Received element with focus:
<span aria-describedby="tooltip-108" class="css-17mjk8t-Cell e1r95csn1" data-active-item="true" data-focus-visible="true" id="alignment-matrix-control-12-top-left" role="gridcell" tabindex="0"><div class="components-visually-hidden css-161q9d5-PolymorphicDiv e19lxcc00" data-wp-c16t="true" data-wp-component="VisuallyHidden" style="border: 0px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset( 50% ); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; word-wrap: normal;">top left</div><span class="css-1jz015p-Point e1r95csn0" role="presentation" /></span>
at toHaveFocus (/home/runner/work/gutenberg/gutenberg/packages/components/src/alignment-matrix-control/test/index.tsx:115:35)
|
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