Skip to content

Commit

Permalink
Wait on the success message before proceeding (#39637)
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored Mar 23, 2022
1 parent a028f4d commit dc9e9d2
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 @@ -485,6 +485,11 @@ describe( 'Navigation', () => {
);
await startEmptyButton.click();

// Wait for Navigation creation to complete.
await page.waitForXPath(
'//*[contains(@class, "components-snackbar")]/*[text()="Navigation Menu successfully created."]'
);

// Wait for block to resolve
let navBlock = await waitForBlock( 'Navigation' );

Expand Down

0 comments on commit dc9e9d2

Please sign in to comment.