Skip to content

Commit 3088195

Browse files
authored
fix: wait for network idle in e2e (#255)
1 parent 997dc9a commit 3088195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const BASE_URL = "http://127.0.0.1:8787";
2121

2222
// Check if the path is reachable
2323
async function checkPath(page, path) {
24-
const res = await page.goto(`${BASE_URL}${path}`, { timeout: 60_000 });
24+
const res = await page.goto(`${BASE_URL}${path}`, { timeout: 60_000, waitUntil: "networkidle" });
2525
check(res, { [`GET ${path} → 200`]: (r) => r && r.status() === 200 });
2626
}
2727

0 commit comments

Comments
 (0)