Skip to content

Commit

Permalink
Puppeteer tests: Try to fix failing tests related to notices in core (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong authored Sep 14, 2023
1 parent 21b6a37 commit 999b49c
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/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function trashAllPosts( postType = 'post', postStatus ) {
// Submit the form to send all draft/scheduled/published posts to the trash.
await page.click( '#doaction' );
await page.waitForXPath(
'//*[contains(@class, "updated notice")]/p[contains(text(), "moved to the Trash.")]'
'//*[contains(@class, "notice")]/p[contains(text(), "moved to the Trash.")]'
);
await switchUserToTest();
}
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/src/trash-all-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function trashAllComments() {
// Submit the form to send all mine/pendings/approved/spam comments to the trash.
await page.click( '#doaction' );
await page.waitForXPath(
'//*[contains(@class, "updated notice")]/p[contains(text(), "moved to the Trash.")]'
'//*[contains(@class, "notice")]/p[contains(text(), "moved to the Trash.")]'
);
await switchUserToTest();
}

0 comments on commit 999b49c

Please sign in to comment.