Skip to content

Commit fef25f4

Browse files
committed
fix: copilot feedback
1 parent 0832e09 commit fef25f4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/donations.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ test("Donations", {
5858
* Go to "My Account" page – it's now available as the reader account has been created.
5959
*/
6060
await page.getByRole("link", { name: "My Account" }).click();
61+
await page.waitForURL(/my-account/);
6162
await expect(page.locator("#newspack_account_email")).toHaveValue(
6263
emailAddress
6364
);

tests/reader-registration.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ test("Register on the site", {
5959
* Now the user is authenticated via the magic link, they can update their name.
6060
*/
6161
await page.getByRole("link", { name: "My Account" }).click();
62+
await page.waitForURL(/my-account/);
6263
await page.getByPlaceholder("Your First Name").click();
6364
await page.getByPlaceholder("Your First Name").fill("John");
6465
await page.getByPlaceholder("Your Last Name").click();

0 commit comments

Comments
 (0)