evOo-local/apps/web/e2e/session-unavailable.spec.ts
Cursor Agent a5ef5dc5ce
feat(web): Phase 2 production readiness — locale, mobile, E2E matrix
Localize onboarding focus facts by profile locale (DE assertion).
Add mobile overflow/touch audits, deep-link matrix, extended console
checks, and E2E for empty project, session unavailable, and teaching
composer. Safe-area and Heute header layout on 390px viewports.

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
2026-10-07 09:31:52 +00:00

18 lines
736 B
TypeScript

import { expect, test } from "@playwright/test";
import { completeOnboarding, signup } from "./helpers";
test("shows SessionUnavailable when auth session cannot be loaded", async ({ page }) => {
const stamp = Date.now();
await signup(page, `session-down-${stamp}@rakazo.test`, "password12", "Session Down");
await completeOnboarding(page);
await page.route("**/api/auth/get-session", (route) => route.abort("failed"));
await page.goto("/app/heute", { waitUntil: "domcontentloaded" });
await expect(page.getByText(/Can't reach the server|Server nicht erreichbar/i)).toBeVisible({
timeout: 30_000,
});
await expect(
page.getByRole("button", { name: /Retry now|Jetzt erneut versuchen/i }),
).toBeVisible();
});