Skip to content

Commit

Permalink
Fix duplicate locator issue in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Dec 20, 2024
1 parent 7ad1633 commit 9bd8fd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/specs/editor/blocks/search.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ test.describe( 'Search', () => {
} );
await navBlockInserter.click();

await page.getByRole( 'button', { name: 'Add block' } ).click();
// Move to and activate the "Add Block" button.
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Enter' );

// Click on the Search block option.
await page.getByRole( 'option', { name: 'Search' } ).click();
Expand Down

0 comments on commit 9bd8fd3

Please sign in to comment.