Isolate anonymous auth page from Blazor

This commit is contained in:
2026-05-02 23:31:49 +02:00
parent d3ba75ce42
commit 2d2ed561cc
6 changed files with 299 additions and 97 deletions

View File

@@ -32,6 +32,18 @@ test("home page loads auth entry points", async ({ page }) => {
await expect(page.getByLabel("Password").nth(1)).toBeVisible();
});
test("home document renders static auth markup without bootstrapping blazor", async ({ request }) => {
const response = await request.get("/");
expect(response.ok()).toBeTruthy();
const html = await response.text();
expect(html).not.toContain("Connecting...");
expect(html).toContain("Register or log in to join a campaign session.");
expect(html).not.toContain("_framework/blazor.web.js");
expect(html).not.toContain("<!--Blazor:");
expect(html).toContain("data-auth-page");
});
test("successful login transitions to play workspace", async ({ page, context }) => {
const username = `login-${Date.now()}`;
const password = "Password123";