Fixes a race in the 404 hydration test #15

Merged
Sluijsens merged 1 commits from fix/404-hydration-h1 into master 2026-11-03 21:31:15 +01:00
1 Commits
Author SHA1 Message Date
SluijsensandClaude Opus 5.5 c4348ecd3a Counts only visible headings in the 404 hydration test
Continuous Integration / check (pull_request) Successful in 1m44s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 8m45s
Continuous Integration / deploy-production (pull_request) Skipped
On the catch-all 404 page the router shows its pending copy for 500 ms while
the server copy stays hidden with display:none. The test counted h1 elements in
that window and found the hidden one on the faster PC runner. It now counts what
a visitor or screen reader gets, then checks that the hidden copy is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 19:49:22 +01:00