fix(portal): redirect unauthenticated users to login — never show portal chrome (GRO-309) #191

Merged
groombook-engineer[bot] merged 15 commits from fix/gro-309-landing-page-redirect into main 2026-04-01 03:50:40 +00:00
Showing only changes of commit 6f3e6b9bd9 - Show all commits
+7
View File
@@ -31,6 +31,13 @@ test.describe("ImpersonationBanner", () => {
await page.route("**/api/impersonation/sessions/session-1/audit-log", (route) =>
route.fulfill({ json: { logs: [] } })
);
// Portal session endpoints needed when CustomerPortal fetches client profile after session is established
await page.route("POST **/api/portal/dev-session", (route) =>
route.fulfill({ json: { id: "session-1", client: { id: "client-1", name: "Carol Client" } } })
);
await page.route("GET **/api/portal/me", (route) =>
route.fulfill({ json: { id: "client-1", name: "Carol Client", email: "carol@test.com" } })
);
});
test("banner displays when session is active", async ({ page }) => {