Skip to content

fix(www): stabilize homepage Read the docs e2e click - #1956

Merged
yamcodes merged 2 commits into
v1from
cursor/fix-e2e-docs-click-flake-6f74
Sep 22, 2026
Merged

yamcodes merged 2 commits into
v1from
cursor/fix-e2e-docs-click-flake-6f74

Conversation

@yamcodes

@yamcodes yamcodes commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

test-e2e on 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 /docs request left the browser. That matches a ScrollReveal race: mousedown focuses a transforming link, mouseup misses, default navigation never runs.

Fix

  • Homepage CSS: pointer-events: none on .reveal-hidden so Playwright waits until the reveal is hit-testable (cannot focus mid-transition)
  • Test: scope to .home-aurora__outro, assert href, then click + URL match

(Dropped a no-op use.reducedMotion after review — Playwright 1.59 ignores that top-level option.)

Test plan

  • Homepage suite (chromium) ×5 with only the CSS/test fix → 20/20 passed
  • Manual click script: outro CTA → /docs

A 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.

Open in Web Open in Cursor 

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]>
@changeset-bot

changeset-bot Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3120128

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added www Improvements or additions to arkenv.js.org tests This issue or PR is about adding, removing or changing tests labels Sep 22, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 — adds use.reducedMotion: "reduce" to stop the ScrollReveal / smooth-scroll click race.
  • aurora.css — adds pointer-events: none to .home-aurora [data-reveal].reveal-hidden so a hidden reveal cannot absorb a mid-transition click.
  • homepage.test.ts — scopes the link to .home-aurora__outro, asserts href="/docs", and replaces the waitForURL/click pair with click() + 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using 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]>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.reducedMotion from apps/playwright-www/playwright.config.ts, restoring that file to its base state. The de-flake now rests solely on the CSS pointer-events guard and the scoped, href-asserting test rewrite — both unchanged and already verified sound.

This closes the sole outstanding finding from the prior review.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@yamcodes
yamcodes merged commit 228e028 into v1 Sep 22, 2026
17 checks passed
@yamcodes
yamcodes deleted the cursor/fix-e2e-docs-click-flake-6f74 branch September 22, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests This issue or PR is about adding, removing or changing tests www Improvements or additions to arkenv.js.org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants