Skip to content

Commit

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

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

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

0 comments on commit afbeb7b

Please sign in to comment.