Skip to content
Prev Previous commit
Next Next commit
Wait for the custom link block
  • Loading branch information
getdave committed Feb 11, 2022
commit a086afe39a63ce52e5e538a088f5de7c6821ec94
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 navLinkBlockSelector =
'[aria-label="Editor content"][role="region"] [aria-label="Block: Custom Link"]';

await page.waitForSelector( navLinkBlockSelector );
}

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