Skip to content

Commit

Permalink
Try fixing flaky navigation test (#35380)
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines authored Oct 6, 2021
1 parent c290244 commit 24f231f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ describe( 'Navigation', () => {
// Now try inserting another Link block via the quick inserter.
await page.click( '.wp-block-navigation .block-list-appender' );

const [ linkButton ] = await page.$x(
"//*[contains(@class, 'block-editor-inserter__quick-inserter')]//*[text()='Custom Link']"
const linkButton = await page.waitForSelector(
'.block-editor-inserter__quick-inserter .editor-block-list-item-navigation-link'
);
await linkButton.click();

Expand Down

0 comments on commit 24f231f

Please sign in to comment.