diff --git a/packages/e2e-test-utils/src/posts.js b/packages/e2e-test-utils/src/posts.js index 722dd77f9939ad..751a6d13fcf9d5 100644 --- a/packages/e2e-test-utils/src/posts.js +++ b/packages/e2e-test-utils/src/posts.js @@ -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(); } diff --git a/packages/e2e-test-utils/src/trash-all-comments.js b/packages/e2e-test-utils/src/trash-all-comments.js index 97169e994d3ed7..44c44b740be875 100644 --- a/packages/e2e-test-utils/src/trash-all-comments.js +++ b/packages/e2e-test-utils/src/trash-all-comments.js @@ -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(); }