diff --git a/apps/web/src/pages/LoginPage.tsx b/apps/web/src/pages/LoginPage.tsx index 98de627..cbd3d66 100644 --- a/apps/web/src/pages/LoginPage.tsx +++ b/apps/web/src/pages/LoginPage.tsx @@ -24,7 +24,7 @@ export function LoginPage({ onSessionChange }: { onSessionChange: () => Promise< setEmail((current) => current || nextStatus.initialAdminEmail); }) .catch(() => { - if (alive) setError("Statut d'authentification indisponible."); + // Auth status only enriches the unauthenticated screen; login must remain usable without it. }); return () => { alive = false; diff --git a/apps/web/src/pages/LoginPageAuthStatusUnavailable.test.ts b/apps/web/src/pages/LoginPageAuthStatusUnavailable.test.ts new file mode 100644 index 0000000..492c5b3 --- /dev/null +++ b/apps/web/src/pages/LoginPageAuthStatusUnavailable.test.ts @@ -0,0 +1,14 @@ +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; + +describe("login page when auth status is unavailable", () => { + it("keeps the unauthenticated login screen usable without a blocking auth status error", () => { + const source = readFileSync(new URL("./LoginPage.tsx", import.meta.url), "utf8"); + + expect(source).toContain("