feat(T07): Warenkorb & Mietanfrage frontend – cart store, drawer, pages, form, tests

This commit is contained in:
Implementation Engineer
2026-07-10 01:32:19 +02:00
parent e220ff7db9
commit a1bba48cd7
19 changed files with 1874 additions and 92 deletions
+27
View File
@@ -0,0 +1,27 @@
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();
});
});