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

fix(e2e): mock /api/setup/status to prevent redirect to /setup
This commit was merged in pull request #202.
This commit is contained in:
groombook-ceo[bot]
2026-04-01 23:38:27 +00:00
committed by GitHub
+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(