File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/block-library/src/buttons/test Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ import { getBlockTypes, unregisterBlockType } from '@wordpress/blocks';
2121import { registerCoreBlocks } from '@wordpress/block-library' ;
2222
2323const BUTTONS_HTML = `<!-- wp:buttons -->
24- <div class="wp-block-buttons"><!-- wp:button /--></div>
24+ <div class="wp-block-buttons"><!-- wp:button -->
25+ <div class="wp-block-button"><a class="wp-block-button__link wp-element-button"></a></div>
26+ <!-- /wp:button --></div>
2527<!-- /wp:buttons -->` ;
2628
2729beforeAll ( ( ) => {
@@ -248,10 +250,9 @@ describe( 'Buttons block', () => {
248250 'Justify items right' ,
249251 ] . forEach ( ( justificationOption ) =>
250252 it ( `sets ${ justificationOption } option` , async ( ) => {
251- const initialHtml = `<!-- wp:buttons -->
252- <div class="wp-block-buttons"><!-- wp:button /--></div>
253- <!-- /wp:buttons -->` ;
254- const screen = await initializeEditor ( { initialHtml } ) ;
253+ const screen = await initializeEditor ( {
254+ initialHtml : BUTTONS_HTML ,
255+ } ) ;
255256
256257 const [ block ] = await screen . findAllByLabelText (
257258 / B u t t o n s B l o c k \. R o w 1 /
You can’t perform that action at this time.
0 commit comments