diff --git a/test/e2e/specs/editor/blocks/spacer.spec.js b/test/e2e/specs/editor/blocks/spacer.spec.js index da262c9b4e26d9..4d79abed9913c9 100644 --- a/test/e2e/specs/editor/blocks/spacer.spec.js +++ b/test/e2e/specs/editor/blocks/spacer.spec.js @@ -48,4 +48,21 @@ test.describe( 'Spacer', () => { ) ).toBeFocused(); } ); + + test( 'should work in theme without spacing units support', async ( { + admin, + editor, + requestUtils, + } ) => { + await requestUtils.activateTheme( 'twentytwenty' ); + + await admin.createNewPost(); + await editor.insertBlock( { name: 'core/spacer' } ); + + await expect( + editor.canvas.locator( '.block-editor-warning' ) + ).toHaveCount( 0 ); + + await requestUtils.activateTheme( 'twentytwentyone' ); + } ); } );