15 lines
666 B
TypeScript
15 lines
666 B
TypeScript
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("<form onSubmit={submit} className=\"stack-form\">");
|
|
expect(source).toContain('type="email" required');
|
|
expect(source).toContain('type="password" required');
|
|
expect(source).toContain('type="submit"');
|
|
expect(source).not.toContain("Statut d'authentification indisponible");
|
|
});
|
|
});
|