import { test, expect } from "@playwright/test"; test.describe("Mietanfrage Page", () => { test("should render mietanfrage page with heading", async ({ page }) => { await page.goto("/mietanfrage"); await expect(page.locator("h1")).toContainText("Mietanfrage"); }); test("should show empty cart state when no items in cart", async ({ page }) => { await page.goto("/mietanfrage"); await expect(page.getByTestId("mietanfrage-empty-cart")).toBeVisible(); }); test("should have link to mietkatalog from empty cart state", async ({ page }) => { await page.goto("/mietanfrage"); const cta = page.getByTestId("mietanfrage-empty-cta"); await expect(cta).toBeVisible(); await expect(cta).toHaveAttribute("href", "/mietkatalog"); }); test("should have breadcrumb with warenkorb link", async ({ page }) => { await page.goto("/mietanfrage"); const breadcrumb = page.locator('nav[aria-label="Breadcrumb"]'); await expect(breadcrumb).toBeVisible(); await expect(breadcrumb.locator('a[href="/warenkorb"]')).toBeVisible(); }); });