feat: Wabenhain Honig-Shop Anwendung
Vollstaendige Next.js/Prisma-E-Commerce-Anwendung fuer eine Imkerei: Shop, Warenkorb, Stripe-Checkout, Kundenkonto mit 2FA, Admin-Bereich (Produkte, Ernten, Chargen, Bestellungen, Gutscheine, admin-editierbare Website-Inhalte), i18n (DE/EN), Rate-Limiting/CSP/Audit-Log-Haertung, PostgreSQL- und MySQL-Unterstuetzung ueber austauschbare Prisma- Treiber-Adapter, Unit-/Komponenten-/E2E-Tests.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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("[email protected]");
|
||||
await expect(emailField).toBeVisible();
|
||||
await emailField.fill("[email protected]");
|
||||
await expect(emailField).toHaveValue("[email protected]");
|
||||
});
|
||||
Reference in New Issue
Block a user