Repository navigation
fix(www): stabilize homepage Read the docs e2e click - #1956
Conversation
Chromium was focusing the outro docs link without navigating when ScrollReveal/smooth-scroll raced the Playwright click. Disable reduced motion in e2e, block pointer events on reveal-hidden, and scope the test to the outro CTA. Co-authored-by: Yam Borodetsky <[email protected]>
|
There was a problem hiding this comment.
Important
use.reducedMotion is a no-op: it is not a Playwright test option, so the runner ignores it and the types reject it. The reduced-motion half of this fix does not take effect (details inline).
Reviewed changes
Single commit 9b9e397 attempting to de-flake the homepage "Read the docs" e2e by disabling motion and hardening the click.
playwright.config.ts— addsuse.reducedMotion: "reduce"to stop the ScrollReveal / smooth-scroll click race.aurora.css— addspointer-events: noneto.home-aurora [data-reveal].reveal-hiddenso a hidden reveal cannot absorb a mid-transition click.homepage.test.ts— scopes the link to.home-aurora__outro, assertshref="/docs", and replaces thewaitForURL/clickpair withclick()+toHaveURL(/\/docs\/?$/).
The CSS and test changes look sound; the actual de-flake mechanism is the pointer-events guard (Playwright now waits for the reveal to become hit-testable) rather than reduced motion, which is consistent with CI passing 106/106 while reduced motion is never applied.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Playwright 1.59 ignores top-level use.reducedMotion; the ScrollReveal click flake is already covered by pointer-events: none on reveal-hidden. Co-authored-by: Yam Borodetsky <[email protected]>
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Since the prior pullfrog review, the only delta is the removal of the previously flagged dead config:
- Dropped the no-op
use.reducedMotionfromapps/playwright-www/playwright.config.ts, restoring that file to its base state. The de-flake now rests solely on the CSSpointer-eventsguard and the scoped,href-asserting test rewrite — both unchanged and already verified sound.
This closes the sole outstanding finding from the prior review.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Summary
test-e2eon Version Packages (#1885) failed because Chromium focused the outro Read the docs link without navigating to/docs(initial attempt + 2 retries). Firefox passed; the release PR only bumps versions, so this is unrelated to that diff.Trace evidence: Playwright resolved and clicked
<a href="/docs" class="home-aurora__install-prompt">, the link became active/focused, but no/docsrequest left the browser. That matches a ScrollReveal race: mousedown focuses a transforming link, mouseup misses, default navigation never runs.Fix
pointer-events: noneon.reveal-hiddenso Playwright waits until the reveal is hit-testable (cannot focus mid-transition).home-aurora__outro, asserthref, then click + URL match(Dropped a no-op
use.reducedMotionafter review — Playwright 1.59 ignores that top-level option.)Test plan
/docsA plain rerun of #1885 may still pass (same branch succeeded earlier), but this hardens the flake so it stops blocking RC cuts.
Outro Read the docs before click
Docs after click
To show artifacts inline, enable in settings.