diff --git a/packages/block-editor/src/components/text-indent-control/index.tsx b/packages/block-editor/src/components/text-indent-control/index.tsx index 70134670749385..a33b92eebabe17 100644 --- a/packages/block-editor/src/components/text-indent-control/index.tsx +++ b/packages/block-editor/src/components/text-indent-control/index.tsx @@ -86,6 +86,7 @@ export default function TextIndentControl( { { + it.each( [ false, true ] )( + 'should forward UnitControl props to the input when withSlider is %s', + ( withSlider ) => { + render( + {} } + withSlider={ withSlider } + disabled + /> + ); + + expect( + screen.getByRole( 'spinbutton', { name: 'Line indent' } ) + ).toBeDisabled(); + } + ); +} );