Repository navigation
test(e2e): gate the docs-links badges arrival on content, not networkidle - #422
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
September 22, 2026 00:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
docs-links.spec.ts's badges case is the last spec still waiting fornetworkidleafter 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 itsnetworkidledropped (landed with #420); this file was missed.Fix
Wait for the docs link itself, which is what the test asserts anyway.
Verification
bunx playwright test e2e/docs-links.spec.ts→ all green alongsidee2e/badges.spec.ts(31 passed).bunx eslint e2e/docs-links.spec.ts: clean.