Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed May 17, 2021
1 parent bac2925 commit b928438
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ describe( 'Inserting blocks', () => {
inserterMenuInputSelector
);
inserterMenuSearchInput.type( 'cover' );
// Wait for the search results to load after typing the full search
// term. Previously this test would sometimes accidentally tab to the
// button for a code block.
await page.evaluate( () => new Promise( window.requestIdleCallback ) );
// Wait for the search results to load (Cover block).
await page.waitForSelector(
'.block-editor-block-types-list__item.editor-block-list-item-cover'
);
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Enter' );
Expand Down

0 comments on commit b928438

Please sign in to comment.