Skip to content

Commit

Permalink
queryByRole -> getByRole
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Sep 2, 2022
1 parent f423379 commit 24b8733
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe( 'MetaBoxesSection', () => {
] }
/>
);
expect( screen.queryByRole( 'group' ) ).toMatchSnapshot();
expect( screen.getByRole( 'group' ) ).toMatchSnapshot();
} );

it( 'renders meta box options', () => {
Expand All @@ -46,7 +46,7 @@ describe( 'MetaBoxesSection', () => {
] }
/>
);
expect( screen.queryByRole( 'group' ) ).toMatchSnapshot();
expect( screen.getByRole( 'group' ) ).toMatchSnapshot();
} );

it( 'renders a Custom Fields option and meta box options', () => {
Expand All @@ -61,6 +61,6 @@ describe( 'MetaBoxesSection', () => {
] }
/>
);
expect( screen.queryByRole( 'group' ) ).toMatchSnapshot();
expect( screen.getByRole( 'group' ) ).toMatchSnapshot();
} );
} );

0 comments on commit 24b8733

Please sign in to comment.