Skip to content

Commit 203b838

Browse files
VIA-598 AJ Try to fix E2E tests failing on SafariIphone
- Fetch API cannot load /vaccines/rsv due to access control checks - raised from /_next/static/chunks/255-6080d22baa93e028.js:1:29579
1 parent 52ac9a5 commit 203b838

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

e2e/helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const getEnv = (name: string) => {
1717
};
1818

1919
export const clickLinkAndExpectPageTitle = async (page: Page, linkText: string, expectedPageTitle: string) => {
20+
await page.waitForLoadState("networkidle", { timeout: 30000 });
2021
await page.getByRole("link", { name: linkText, exact: true }).click();
2122
await page.waitForLoadState("networkidle", { timeout: 30000 });
2223
await expect(page).toHaveTitle(expectedPageTitle);

0 commit comments

Comments
 (0)