From 81ed8f8fcd7a92fa432ab16fb569009c1da61c7e Mon Sep 17 00:00:00 2001 From: leemour Date: Sun, 4 Oct 2026 14:04:28 +0200 Subject: [PATCH] test: wait for the docs route before browser tests start On the dev server the first docs request compiles the route, and that compile counted against the first doc-hints test's 30 s timeout. It failed on main (63ef023) and on cli-docs#41. Playwright now waits for /en/docs/installation to answer before running tests. Co-Authored-By: Claude Opus 5.5 (1M context) --- playwright.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 7e9952d..444b985 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -4,7 +4,8 @@ export default defineConfig({ use: { baseURL: "http://localhost:4319", trace: "retain-on-failure" }, webServer: { command: process.env.PLAYWRIGHT_EXPORT === "1" ? "node scripts/serve-export.mjs out 4319" : "pnpm dev --port 4319", - url: "http://localhost:4319", + // The first docs request compiles the docs route on the dev server; waiting here keeps that out of test timeouts. + url: "http://localhost:4319/en/docs/installation", reuseExistingServer: false, timeout: 60000, },