Skip to content

Commit

Permalink
Another attempt to fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Jul 6, 2023
1 parent b7eb2b1 commit 95ab87f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/src/create-reusable-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const createReusableBlock = async ( content, title ) => {

// Wait for creation to finish
await page.waitForXPath(
'//*[contains(@class, "components-snackbar")]/*[contains(text()="Pattern created:")]'
'//*[contains(@class, "components-snackbar")]/*[contains(text(),"Pattern created:")]'
);

// Check that we have a reusable block on the page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe( 'Reusable blocks', () => {

// Wait for creation to finish.
await page.waitForXPath(
'//*[contains(@class, "components-snackbar")]/*[contains(text()="Pattern created:")]'
'//*[contains(@class, "components-snackbar")]/*[contains(text(),"Pattern created:")]'
);

await clearAllBlocks();
Expand Down

0 comments on commit 95ab87f

Please sign in to comment.