console: the perf walk covers the billing page, continue and done (plans 6b, main merge)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+10
−0
internal/console/perfwalk_test.go+10 −0
diff --git a/internal/console/perfwalk_test.go b/internal/console/perfwalk_test.go| index 7efec4070..2395d7007 100644 |
| --- a/internal/console/perfwalk_test.go |
| +++ b/internal/console/perfwalk_test.go |
| @@ -460,6 +460,16 @@ func perfTargets(fx *consoleFixture) map[string][]perfTarget { |
| "GET /a/{sqid}/apps/{app}/instances/{host}": ok(app + "/instances/kass.carlosapp.dev"), |
| "GET /a/{sqid}/plan/keep": ok("/a/" + seeds.lapsed + "/plan/keep"), |
| } |
| + // The walk runs with billing off (no Config.Billing), so the billing |
| + // page, its two Checkout returns and the upgrade entry answer the gate's |
| + // 404 on their first line, before any account or provider read |
| + // (billingpage.go, billingcheckout.go). That is their real answer in |
| + // this configuration. |
| + for _, p := range []string{"billing", "billing/continue", "billing/done"} { |
| + m["GET /a/{sqid}/"+p] = []perfTarget{{Path: fx.path("/" + p), Expect: http.StatusNotFound}} |
| + } |
| + // GET /upgrade has no parameter but is gated the same way (billingpage.go). |
| + m["GET /upgrade"] = []perfTarget{{Path: "/upgrade", Expect: http.StatusNotFound}} |
| for _, tab := range []string{"account-review", "activity", "analytics", "availability", "errors", |
| "instances", "logs", "logs/data", "settings"} { |
| m["GET /a/{sqid}/apps/{app}/"+tab] = ok(app + "/" + tab) |