Skip to content

Commit

Permalink
Use getBlock helper in Gallery block tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Jun 14, 2022
1 parent 156fd41 commit 73b35fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-library/src/gallery/test/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
act,
changeTextOfRichText,
fireEvent,
getBlock,
getEditorHtml,
initializeEditor,
openBlockSettings,
Expand Down Expand Up @@ -60,9 +61,9 @@ setupCoreBlocks();

describe( 'Gallery block', () => {
it( 'inserts block', async () => {
const { getByA11yLabel } = await addGalleryBlock();
const screen = await addGalleryBlock();

expect( getByA11yLabel( /Gallery Block\. Row 1/ ) ).toBeVisible();
expect( getBlock( screen, 'Gallery' ) ).toBeVisible();
expect( getEditorHtml() ).toMatchSnapshot();
} );

Expand Down

0 comments on commit 73b35fd

Please sign in to comment.