diff --git a/test/e2e/specs/editor/blocks/search.spec.js b/test/e2e/specs/editor/blocks/search.spec.js index 3a72f99b7cf0b3..e14b07dae3cad5 100644 --- a/test/e2e/specs/editor/blocks/search.spec.js +++ b/test/e2e/specs/editor/blocks/search.spec.js @@ -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();