import { test, expect } from "@playwright/test";

test.describe("Error Pages", () => {
  test("404 page should show 'Seite nicht gefunden'", async ({ page }) => {
    const response = await page.goto("/nicht-existent");
    expect(response?.status()).toBe(404);
    await expect(page.locator("body")).toContainText("Seite nicht gefunden");
    await expect(page.getByRole("link", { name: /Startseite/ })).toBeVisible();
  });
});
