Skip to content

Commit bbab6fb

Browse files
VIA-245 AS/MD Update auth helper to waitUntil domcontentloaded event
1 parent 08ece9d commit bbab6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const login = async (browser: Browser, nhsLoginUsername: string): Promise
5959
await page.getByRole("textbox", { name: "Security code" }).fill(user.nhsLoginOTP);
6060
await page.getByRole("button", { name: "Continue" }).click();
6161

62-
await page.waitForURL(user.vaccinationsHubUrl, { timeout: 60000 });
62+
await page.waitForURL(user.vaccinationsHubUrl, { timeout: 60000, waitUntil: "domcontentloaded" });
6363

6464
return page;
6565
};

0 commit comments

Comments
 (0)