Skip to content

Commit

Permalink
Update xpath to evaluate notices in WP admin
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Nov 28, 2023
1 parent 5a84223 commit 23601b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/utils/amp-settings-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function cleanUpValidatedUrls() {

await page.click('#doaction');
await page.waitForXPath(
'//*[contains(@class, "updated notice")]/p[contains(text(), "forgotten")]'
'//*[contains(@class, "notice") and contains(@class, "updated")]/p[contains(text(), "forgotten")]'
);
await switchUserToTest();
}

0 comments on commit 23601b3

Please sign in to comment.