Skip to content

test: wait for the docs route before browser tests start - #43

Merged
leemour merged 1 commit into
mainfrom
fix/doc-hints-cold-start
Oct 4, 2026
Merged

leemour merged 1 commit into
mainfrom
fix/doc-hints-cold-start

Conversation

@leemour

@leemour leemour commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Task

The first doc-hints browser test times out intermittently in CI.

Why

CI runs Playwright against pnpm dev, which compiles a route on its first request. Playwright waited only for /, so compiling the docs route counted against the first docs test's 30 s timeout. It failed on main at 63ef023 and on #41, while ru/es (same test, warm route) passed.

What

playwright.config.ts: webServer.url is /en/docs/installation, so the docs route is compiled before any test starts. Works the same with PLAYWRIGHT_EXPORT=1.

Testing

heading-fonts, search-playground, doc-hints from a cold dev server: 32 passed (1.9 min).

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@leemour
leemour merged commit 078f81a into main Oct 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant