Commit 4f34856
e2e: fix navigation + resources playwright specs (admin-bypass unneeded)
Three failures on master forcing every dashboard PR to merge with
gh pr merge --admin. Root causes:
1. navigation.spec.ts asserted /Stacks/ and /Team/ sidebar links —
Stacks retired in b13b8ee (duplicate of Deployments), Team has no
sidebar entry. Spec dropped to chrome reality.
2. fixtures.ts mocked GET /api/v1/resources with the glob
`**/api/v1/resources`, which does not match the env-query variant
`/api/v1/resources?env=production` that ResourcesPage emits. Glob
replaced with a regex anchored on path + optional query string.
3. App.tsx <Navigate to="/app/resources/:id"> sent the literal string
":id" instead of the captured route param — Navigate is dumb and
doesn't interpolate. Wrapped both /resources/:id and
/deployments/:id in tiny components that read useParams() and
construct the real target. This is a real product bug (legacy
deep-links to resource/deploy detail pages 404'd into an empty
skeleton); the spec just happened to catch it.
Also dropped the dangling `/stacks → /app/stacks` redirect — target was
deleted with the route.
Playwright chromium: 10/10 pass. Vitest unit: 365 pass, 3 skipped
(unchanged).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9d6609a commit 4f34856
3 files changed
Lines changed: 32 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
17 | | - | |
18 | 22 | | |
19 | | - | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
118 | 131 | | |
119 | 132 | | |
120 | 133 | | |
| |||
209 | 222 | | |
210 | 223 | | |
211 | 224 | | |
212 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
213 | 229 | | |
214 | | - | |
| 230 | + | |
215 | 231 | | |
216 | | - | |
217 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
218 | 235 | | |
219 | 236 | | |
220 | 237 | | |
| |||
0 commit comments