import { test, expect } from "./fixtures"; test.describe("B2B Editorial Registration and Approval Flow", () => { test("user can register and views pending status page", async ({ page, editorialData }) => { await page.goto("/registrieren"); await page.getByLabel("Organisation / Redaktion").fill(editorialData.organizationName); await page.getByLabel("Ansprechpartner / Name").fill(editorialData.name); await page.getByLabel("E-Mail-Adresse").fill(editorialData.email); await page.getByLabel("Passwort", { exact: true }).fill(editorialData.password); await page.getByLabel("Passwort wiederholen").fill(editorialData.password); await page.getByLabel("Straße und Hausnummer").fill(editorialData.street); await page.getByLabel("Postleitzahl").fill(editorialData.postalCode); await page.getByLabel("Ort / Stadt").fill(editorialData.city); await page.getByRole("button", { name: /Konto erstellen/i }).click(); await expect(page).toHaveURL(/\/registrieren\/bestaetigt/); await expect(page.getByText(/Freischaltung ausstehend|ausstehend/i)).toBeVisible(); }); });