Skip to content

test(website): fix the e2e main broke, and drop the obsolete next-env wrapper - #870

Merged
blove merged 1 commit into
mainfrom
blove/remove-next-env-restore-wrapper
Aug 30, 2026
Merged

test(website): fix the e2e main broke, and drop the obsolete next-env wrapper#870
blove merged 1 commit into
mainfrom
blove/remove-next-env-restore-wrapper

Conversation

@blove

@blove blove commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Started as follow-up cleanup, turned into a main-is-red fix.

1. Main's website e2e is currently red

While verifying the cleanup I found Docs search › matches docs pages when query omits small connector words failing — and failing identically on pristine main (verified before touching anything). Cause: #865's a11y pass gave search results role="option", and an explicit ARIA role overrides the implicit button role, so getByRole('button', …) stopped matching. Since Website — e2e is in the required aggregation, every website-touching PR fails until this lands. The spec now queries role: 'option'; the sibling getByRole('button') uses in other specs are real buttons and untouched.

2. The next-env restore wrapper is obsolete

run-e2e-with-next-env-restore.ts rewrote next-env.d.ts to canonical content after e2e — protection for a then-tracked file against dirty-tree churn (its originating commit was workflow hygiene). #862 untracked the file. I verified the residual concern is empty before deleting: wrote the exact dangling dev-path content the wrapper guards against, with the referenced path absent — lint 0, test 0, build 0 (the website has no typecheck target, and build regenerates the file first).

The e2e target now runs the playwright executor directly; the e2e-playwright indirection is folded away. CI's invocation (npx nx e2e website --skip-nx-cache) is unchanged.

Verification

  • Website e2e 49/49 with the folded target (was 48 passed / 1 failed before the role fix, on both this branch and pristine main).
  • Grepped for remaining references to the wrapper/inner target: none.

🤖 Generated with Claude Code

… wrapper

Two related repairs to the website e2e lane:

1. Docs search spec: #865's a11y pass gave search results role="option",
   and an explicit ARIA role overrides the implicit button role — so
   getByRole('button') stopped matching and main's website e2e has been red
   since. The spec now queries role 'option'. (Verified the failure
   reproduces identically on pristine main before touching anything.)

2. run-e2e-with-next-env-restore.ts existed to rewrite next-env.d.ts to
   canonical content after e2e, protecting a then-tracked file from dirty-
   tree churn. #862 untracked the file, and the dangling dev-path content
   the wrapper guarded against breaks nothing today — verified by writing
   that exact content with the referenced path absent: lint 0, test 0,
   build 0 (website has no typecheck target, and build regenerates the
   file first). The e2e target now runs the playwright executor directly;
   the wrapper and its extra target indirection are gone.

Website e2e: 49/49 with the folded target.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview Aug 30, 2026 2:45pm

Request Review

@blove
blove enabled auto-merge (squash) August 30, 2026 14:43

@github-actions github-actions 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.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@blove
blove merged commit 6700e61 into main Aug 30, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant