Skip to content

Commit 9de03b5

Browse files
committed
Update initial HTML native test snippet
1 parent 4ad2cc2 commit 9de03b5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/block-library/src/buttons/test/edit.native.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ import { getBlockTypes, unregisterBlockType } from '@wordpress/blocks';
2121
import { registerCoreBlocks } from '@wordpress/block-library';
2222

2323
const 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

2729
beforeAll( () => {
@@ -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
/Buttons Block\. Row 1/

0 commit comments

Comments
 (0)