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

test("footer links navigate correctly", async ({ page }) => {
  await page.goto("/");
  await page.getByRole("link", { name: "Privacy", exact: true }).click();
  await expect(page).toHaveURL(/\/privacy/);
  await expect(page.getByRole("heading", { name: "Privacy Policy" })).toBeVisible();
});

test("404 page works", async ({ page }) => {
  await page.goto("/this-page-does-not-exist");
  await expect(page.getByRole("heading", { name: /Page not found/ })).toBeVisible();
});
