fix(e2e): mock /api/setup/status to prevent redirect to /setup #202

Merged
groombook-engineer[bot] merged 4 commits from fix/gro-374-e2e-setup-status-mock into main 2026-04-01 23:38:27 +00:00
+4
View File
@@ -43,6 +43,10 @@ export const test = base.extend({
},
})
);
// Mock the setup status endpoint so the app does not redirect to /setup
await page.route("**/api/setup/status", (route) =>
route.fulfill({ json: { needsSetup: false } })
);
// Seed localStorage as a fallback in case the mock is bypassed
await page.addInitScript(() => {
localStorage.setItem(