Files
hms-licht-ton/frontend-nuxt-old/tests/e2e/error-pages.spec.ts
T

11 lines
430 B
TypeScript
Raw Normal View History

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();
});
});