diff --git a/e2e/react/package.json b/e2e/react/package.json index 6d125ed561..d8fa61f143 100644 --- a/e2e/react/package.json +++ b/e2e/react/package.json @@ -14,7 +14,7 @@ "web": "vite dev", "dev": "concurrently \"pnpm run web\" \"pnpm run api\" -n \"web,api\" -c \"green,magenta\"", "build": "vite build", - "tests": "playwright test ", + "tests": "playwright test", "test": "npm run tests", "tw": "npx tailwindcss -i ./src/styles.css -o ./public/assets/output.css --watch", "preview": "vite dev" diff --git a/e2e/react/src/utils/testsHelper.ts b/e2e/react/src/utils/testsHelper.ts index 0926c720c5..976cf5840f 100644 --- a/e2e/react/src/utils/testsHelper.ts +++ b/e2e/react/src/utils/testsHelper.ts @@ -165,7 +165,7 @@ export async function locator_click(page: Page, selector: string) { * @returns The response of the page */ export async function goto(page: Page, url: string): Promise { - const res = await page.goto(url) + const res = await page.goto(url, { waitUntil: 'domcontentloaded' }) await expect_n_gql(page, null, 0) return res }