Commit 6700e61
test(website): fix the e2e main broke, and drop the obsolete next-env wrapper (#870)
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>1 parent 3bda04a commit 6700e61
3 files changed
Lines changed: 3 additions & 55 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
| |||
This file was deleted.
0 commit comments