The suite could not pass on the test database: global setup now seeds the shared dev/Test123 login with a superuser Roles doc and the dashboard rank, and points its own Payload connection at the test database. Playwright runs one worker with generous test and expect timeouts because first navigation to a route triggers a cold webpack compile, and gains E2E_BROWSER_PATH to swap the browser binary when the installed Vivaldi crashes under automation. The landing page gains the missing h1 the guest specs assert, login flows wait for the redirect to land, strict-mode locator collisions get exact or level-scoped matches, the session banner test re-signs the login claims with a short expiry using the runtime secret, and the reservation dialog click forces the dispatch and verifies the dialog opened (the trigger goes aria-hidden behind the modal mid-click, which stranded the retry loop).
23 lines
935 B
TypeScript
23 lines
935 B
TypeScript
import { Button } from "@/components/ui/button";
|
|
import AppLogo from "@/components/graphics/AppLogo";
|
|
import { LoginLink } from "@/components/frontend/auth/LoginLink";
|
|
|
|
export function LandingPage() {
|
|
return (
|
|
<div className="min-h-screen flex flex-col items-center justify-center p-5 gap-6 bg-background">
|
|
<div className="flex flex-col items-center gap-3 text-center max-w-md">
|
|
<h1 className="sr-only">Polaris Task Force</h1>
|
|
<div className="w-[260px] pb-2 [&_img]:w-full [&_img]:h-auto">
|
|
<AppLogo />
|
|
</div>
|
|
<p className="text-sm text-muted-foreground">
|
|
Classified operations portal for Polaris Task Force, an Arma 3 unit. Log in to access the
|
|
operations dashboard, intelligence, and logistics.
|
|
</p>
|
|
<Button asChild className="mt-2">
|
|
<LoginLink>Log in to access the portal</LoginLink>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|