Skip to content

test(e2e): gate the docs-links badges arrival on content, not networkidle - #422

Merged
fclairamb merged 2 commits into
mainfrom
test/e2e-docs-links-badges-arrival
Sep 22, 2026
Merged

fclairamb merged 2 commits into
mainfrom
test/e2e-docs-links-badges-arrival

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Problem

docs-links.spec.ts's badges case is the last spec still waiting for networkidle after the client-side navigation into the badge builder. That wait never completes in that path: the page is rendered and the network is fully quiet (verified at CDP level), but Playwright's network-idle lifecycle event never fires — deterministic on macOS headless Chromium, intermittent on loaded CI runners. CI run 35663414815 hung exactly there, twice, in the two badges-arrival specs.

badges.spec.ts's equivalent already had its networkidle dropped (landed with #420); this file was missed.

Fix

Wait for the docs link itself, which is what the test asserts anyway.

Verification

  • Local repro (failing 100% before): bunx playwright test e2e/docs-links.spec.ts → all green alongside e2e/badges.spec.ts (31 passed).
  • bunx eslint e2e/docs-links.spec.ts: clean.

…idle

docs-links.spec.ts's badges case is the last spec still waiting for
networkidle after the client-side navigation into the badge builder. That
wait never completes in that path (the badges page is rendered and the
network is quiet, but the lifecycle event never fires — deterministic on
macOS headless Chromium, intermittent on loaded CI runners; it hung CI run
35663414815 twice). Wait for the docs-link itself, which is what the test
asserts anyway — matching the badges.spec.ts remedy already on main.
@fclairamb
fclairamb enabled auto-merge (squash) September 22, 2026 00:50
@fclairamb
fclairamb merged commit 794e565 into main Sep 22, 2026
19 checks passed
@fclairamb
fclairamb deleted the test/e2e-docs-links-badges-arrival branch September 22, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant