import { test, expect } from "@playwright/test"; test("homepage shows the hero heading and primary navigation", async ({ page }) => { await page.goto("/"); await expect(page.getByRole("heading", { name: /Honig aus den Westlichen Wäldern/i })).toBeVisible(); await expect(page.getByRole("navigation").getByRole("link", { name: "Shop", exact: true })).toBeVisible(); }); test("homepage newsletter form is present and accepts an email", async ({ page }) => { await page.goto("/"); const emailField = page.getByPlaceholder("deine@email.de"); await expect(emailField).toBeVisible(); await emailField.fill("besucher@example.de"); await expect(emailField).toHaveValue("besucher@example.de"); });