Skip to content

Commit

Permalink
Attempt to fix failing e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Feb 10, 2022
1 parent d923aaa commit 70b8cdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/e2e-tests/specs/editor/blocks/navigation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ async function selectClassicMenu( optionText ) {
`//*[contains(@class, 'components-menu-item__item')][ text()="${ optionText }" ]`
);
await theOption.click();

const blockSelector = `[aria-label="Editor content"][role="region"] [aria-label="Block: Custom Link"]`;

// Wait for the Link block to appear...
await page.waitForSelector( blockSelector );
}

const PLACEHOLDER_ACTIONS_CLASS = 'wp-block-navigation-placeholder__actions';
Expand Down

0 comments on commit 70b8cdb

Please sign in to comment.