test: add portal end-to-end quality gates
This commit is contained in:
1 parent
f7481d4cde
commit
9c0d43b1ec
10 files changed
+609
-123
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user