Refresh HiveGrid Cloud reference snapshot
No files matched your search
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 41 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 143 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 150 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 97 KiB |
@@ -0,0 +1,29 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { TelephonyInterimVisualFixture as VisualFixture } from "../../apps/web/app/components/screens/telephony/telephony-interim.visual-fixture";
|
||||
|
||||
const VISUAL_SCREENS = ["settings", "calls", "call-detail", "click-to-call"] as const;
|
||||
|
||||
test.describe("AK-P15a telephony interim UI pixel baseline", () => {
|
||||
for (const screen of VISUAL_SCREENS) {
|
||||
test(`${screen} stays visually stable in light mode`, async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid={`ak-p15a-${screen}`} style={{ width: "1280px", minHeight: "720px" }}>
|
||||
<VisualFixture screen={screen} />
|
||||
</div>,
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
if (screen === "click-to-call") {
|
||||
await expect(page.locator("[data-ui-id='ui.telephony.clickToCall.dialog']")).toHaveCount(1);
|
||||
await expect(page).toHaveScreenshot("ak-p15a-telephony-click-to-call.png");
|
||||
} else {
|
||||
await expect(component.locator("[data-ui-id$='.page']")).toHaveCount(1);
|
||||
await expect(component).toHaveScreenshot(`ak-p15a-telephony-${screen}.png`);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,50 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
import AxeBuilder from "@axe-core/playwright";
|
||||
|
||||
import { ChatInterimVisualFixture as VisualFixture } from "../../apps/web/app/components/screens/chat/chat-interim.visual-fixture";
|
||||
|
||||
const VISUAL_SCREENS = ["index", "detail"] as const;
|
||||
|
||||
test.describe("AK-P15b team chat interim UI pixel baseline", () => {
|
||||
for (const screen of VISUAL_SCREENS) {
|
||||
test(`${screen} stays visually stable in light mode`, async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid={`ak-p15b-${screen}`} style={{ width: "1280px", minHeight: "720px" }}>
|
||||
<VisualFixture screen={screen} />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator(`[data-ui-id='ui.chat.channel${screen === "index" ? "List" : "Detail"}']`)).toHaveCount(1);
|
||||
if (screen === "index") {
|
||||
await expect(component.locator("[data-channel-id]").first()).toHaveCSS("width", "1232px");
|
||||
}
|
||||
await expect(component).toHaveScreenshot(`ak-p15b-chat-${screen}.png`);
|
||||
});
|
||||
}
|
||||
|
||||
test("index keeps mobile navigation accessible with 44px touch targets", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const component = await mount(
|
||||
<div style={{ width: "390px", minHeight: "844px" }}>
|
||||
<VisualFixture screen="index" enableNavigation />
|
||||
</div>
|
||||
);
|
||||
|
||||
const mobileNavigation = component.locator("[data-ui-id='ui.chat.mobileNavigation']");
|
||||
await expect(mobileNavigation).toBeVisible();
|
||||
const targets = component.locator("button:not([disabled])");
|
||||
for (let index = 0; index < (await targets.count()); index += 1) {
|
||||
const box = await targets.nth(index).boundingBox();
|
||||
expect(box, `touch target ${index} must be rendered`).not.toBeNull();
|
||||
expect(box!.height, `touch target ${index} height`).toBeGreaterThanOrEqual(44);
|
||||
expect(box!.width, `touch target ${index} width`).toBeGreaterThanOrEqual(44);
|
||||
}
|
||||
|
||||
const results = await new AxeBuilder({ page }).include("[data-ui-id='ui.chat.channelList']").withTags(["wcag2a", "wcag2aa"]).analyze();
|
||||
expect(results.violations).toEqual([]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,26 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { AkP20InterimVisualFixture as VisualFixture } from "../../apps/web/app/components/screens/ak-p20-interim.visual-fixture";
|
||||
|
||||
// Keep this component-only import separate from test data: Playwright CT turns
|
||||
// imported JSX components into browser registry references during compilation.
|
||||
const VISUAL_SCREENS = ["subscription", "usage", "billing", "demo-data", "first-steps"] as const;
|
||||
|
||||
test.describe("AK-P20 interim UI pixel baseline", () => {
|
||||
for (const screen of VISUAL_SCREENS) {
|
||||
test(`${screen} stays visually stable in light mode`, async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid={`ak-p20-${screen}`} style={{ width: "1280px" }}>
|
||||
<VisualFixture screen={screen} />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator("[data-ui-id$='.page']")).toHaveCount(1);
|
||||
await expect(component).toHaveScreenshot(`ak-p20-${screen}.png`);
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,145 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { RegisterScreenVisualFixture as VisualFixture } from "../../apps/web/app/modules/users/components/RegisterScreen.visual-fixture";
|
||||
|
||||
test.describe("BILL-18 registration plan advisor visual baseline", () => {
|
||||
test("desktop separates team sizing from the recommended plan", async ({ mount, page }) => {
|
||||
await prepareCaptchaFixture(page);
|
||||
const component = await mount(<VisualFixture />);
|
||||
await openTeamStep(component);
|
||||
|
||||
await expect(component).toHaveScreenshot("bill-22-registration-team-desktop.png", { animations: "disabled" });
|
||||
|
||||
await component.locator('[name="selectedOfficeSeatQuantity"]').fill("5");
|
||||
await component.locator('[name="selectedFieldSeatQuantity"]').fill("15");
|
||||
await expect(component.locator('[name="selectedSubscriptionPriceId"]')).toHaveValue("price_pro");
|
||||
await component.locator('[data-ui-id="ui.auth.register.toPlanStep"]').click();
|
||||
await expect(component.locator('[data-ui-id="ui.auth.register.planSelection"]')).toContainText("Core");
|
||||
|
||||
await expect(component).toHaveScreenshot("bill-22-registration-plan-desktop.png", { animations: "disabled" });
|
||||
});
|
||||
|
||||
test("mobile stacks team and plan steps without horizontal overflow", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await prepareCaptchaFixture(page);
|
||||
const component = await mount(<VisualFixture />);
|
||||
await openTeamStep(component);
|
||||
|
||||
await expect(component).toHaveCSS("width", "390px");
|
||||
await expect(page.locator("body")).toHaveJSProperty("scrollWidth", 390);
|
||||
await expect(component).toHaveScreenshot("bill-22-registration-team-mobile.png", { animations: "disabled" });
|
||||
|
||||
await component.locator('[data-ui-id="ui.auth.register.toPlanStep"]').click();
|
||||
await expect(component.locator('[data-ui-id="ui.auth.register.planSelection"]')).toBeVisible();
|
||||
await expect(component).toHaveScreenshot("bill-22-registration-plan-mobile.png", { animations: "disabled" });
|
||||
});
|
||||
});
|
||||
|
||||
async function openTeamStep(component: import("@playwright/experimental-ct-react").Locator) {
|
||||
await component.locator('[name="email"]').fill("ada@example.test");
|
||||
await component.locator('[name="first-name"]').fill("Ada");
|
||||
await component.locator('[name="last-name"]').fill("Lovelace");
|
||||
await component.locator('[name="company"]').fill("Analytical Engines GmbH");
|
||||
await component.locator('[data-ui-id="ui.auth.register.toTeamStep"]').click();
|
||||
await expect(component.locator('[data-ui-id="ui.auth.register.planStep"]')).toBeVisible();
|
||||
await expect(component.locator('[data-ui-id="ui.auth.register.teamStep"]')).toBeVisible();
|
||||
}
|
||||
|
||||
async function prepareCaptchaFixture(page: import("@playwright/test").Page) {
|
||||
await page.evaluate(() => {
|
||||
if (customElements.get("cap-widget")) return;
|
||||
customElements.define(
|
||||
"cap-widget",
|
||||
class extends HTMLElement {
|
||||
connectedCallback() {
|
||||
this.innerHTML =
|
||||
'<div style="display:flex;align-items:center;gap:12px;font:500 14px Inter,sans-serif"><span style="width:22px;height:22px;border:1px solid #a3a3a3;border-radius:6px"></span><span>Ich bin ein Mensch</span></div>';
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
await page.route("**/auth/registration-plan-advice**", async (route) => {
|
||||
const requestUrl = new URL(route.request().url());
|
||||
const officeSeatQuantity = Number(requestUrl.searchParams.get("office"));
|
||||
const fieldSeatQuantity = Number(requestUrl.searchParams.get("field"));
|
||||
const recommendsSwarm = officeSeatQuantity === 5 && fieldSeatQuantity === 15;
|
||||
await route.fulfill({
|
||||
contentType: "application/json",
|
||||
body: JSON.stringify({
|
||||
plans: recommendsSwarm ? swarmSizedPlans : plans,
|
||||
selectedPriceId: recommendsSwarm ? "price_pro" : "price_starter",
|
||||
recommendedPriceId: recommendsSwarm ? "price_pro" : "price_starter",
|
||||
officeSeatQuantity,
|
||||
fieldSeatQuantity,
|
||||
}),
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
const plans = [
|
||||
{
|
||||
planId: "product_starter",
|
||||
planCode: "starter",
|
||||
titleKey: "Core",
|
||||
descriptionKey: "Core",
|
||||
priceId: "price_starter",
|
||||
amountCents: 19_900,
|
||||
baseAmountCents: 19_900,
|
||||
currency: "EUR",
|
||||
billingPeriod: 3,
|
||||
includedOfficeSeatQuantity: 2,
|
||||
includedFieldSeatQuantity: 5,
|
||||
includedStorageGb: 100,
|
||||
extraOfficeSeatQuantity: 0,
|
||||
extraFieldSeatQuantity: 0,
|
||||
recommended: true,
|
||||
},
|
||||
{
|
||||
planId: "product_pro",
|
||||
planCode: "pro",
|
||||
titleKey: "Swarm",
|
||||
descriptionKey: "Swarm",
|
||||
priceId: "price_pro",
|
||||
amountCents: 49_900,
|
||||
baseAmountCents: 49_900,
|
||||
currency: "EUR",
|
||||
billingPeriod: 3,
|
||||
includedOfficeSeatQuantity: 5,
|
||||
includedFieldSeatQuantity: 15,
|
||||
includedStorageGb: 250,
|
||||
extraOfficeSeatQuantity: 0,
|
||||
extraFieldSeatQuantity: 0,
|
||||
recommended: false,
|
||||
},
|
||||
{
|
||||
planId: "product_business",
|
||||
planCode: "business",
|
||||
titleKey: "Colony",
|
||||
descriptionKey: "Colony",
|
||||
priceId: "price_business",
|
||||
amountCents: 99_900,
|
||||
baseAmountCents: 99_900,
|
||||
currency: "EUR",
|
||||
billingPeriod: 3,
|
||||
includedOfficeSeatQuantity: 10,
|
||||
includedFieldSeatQuantity: 30,
|
||||
includedStorageGb: 500,
|
||||
extraOfficeSeatQuantity: 0,
|
||||
extraFieldSeatQuantity: 0,
|
||||
recommended: false,
|
||||
},
|
||||
] as const;
|
||||
|
||||
const swarmSizedPlans = plans.map((plan) =>
|
||||
plan.planCode === "starter"
|
||||
? {
|
||||
...plan,
|
||||
amountCents: 62_600,
|
||||
extraOfficeSeatQuantity: 3,
|
||||
extraFieldSeatQuantity: 10,
|
||||
recommended: false,
|
||||
}
|
||||
: plan.planCode === "pro"
|
||||
? { ...plan, recommended: true }
|
||||
: plan
|
||||
);
|
||||
@@ -0,0 +1,117 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { VaP24aInterimVisualFixture as VisualFixture } from "../../apps/web/app/components/screens/billing/va-p24a-interim.visual-fixture";
|
||||
import { RegisterScreenVisualFixture } from "../../apps/web/app/modules/users/components/RegisterScreen.visual-fixture";
|
||||
|
||||
test.describe("BILL-19 registration activation checkout visual baseline", () => {
|
||||
test("password policy stays in the account step and explains the correction inline", async ({ mount, page }) => {
|
||||
await page.route("**/auth/registration-plan-advice**", async (route) => route.fulfill({ status: 503 }));
|
||||
const component = await mount(<RegisterScreenVisualFixture requireEmailVerification={false} />);
|
||||
|
||||
await component.locator('[name="email"]').fill("ada@example.test");
|
||||
await component.locator('[name="password"]').fill("TooShort1!");
|
||||
await component.locator('[name="first-name"]').fill("Ada");
|
||||
await component.locator('[name="last-name"]').fill("Lovelace");
|
||||
await component.locator('[name="company"]').fill("Analytical Engines GmbH");
|
||||
await component.locator('[data-ui-id="ui.auth.register.toTeamStep"]').click();
|
||||
|
||||
await expect(component.locator('[data-ui-id="ui.auth.register.accountStep"]')).toBeVisible();
|
||||
await expect(component.locator('[data-ui-id="ui.auth.register.passwordPolicyError"]')).toBeVisible();
|
||||
await expect(component.locator('[name="password"]')).toBeFocused();
|
||||
await expect(component).toHaveScreenshot("bill-19-registration-password-validation.png", {
|
||||
animations: "disabled",
|
||||
maxDiffPixelRatio: 0,
|
||||
});
|
||||
});
|
||||
|
||||
test("desktop walks through team, plan, storage, email and payment", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div style={{ width: "1200px" }}>
|
||||
<VisualFixture activationMode activationTrialDays={0} />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => document.fonts.ready);
|
||||
await expect(component.locator('[data-ui-id="ui.billing.activation.page"]')).toHaveCount(1);
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.usage"]')).toHaveCount(0);
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.emailMarketing"]')).toHaveCount(0);
|
||||
await expect(component.locator('[data-ui-id="ui.billing.activation.team"]')).toBeVisible();
|
||||
await expect(component).toHaveScreenshot("bill-22-activation-team-desktop.png", {
|
||||
animations: "disabled",
|
||||
maxDiffPixelRatio: 0,
|
||||
});
|
||||
|
||||
await goToNextActivationStep(component, "ui.billing.activation.plan");
|
||||
await expect(component).toHaveScreenshot("bill-22-activation-plan-desktop.png", { animations: "disabled", maxDiffPixelRatio: 0 });
|
||||
|
||||
await goToNextActivationStep(component, "ui.billing.activation.storage");
|
||||
await expect(component).toHaveScreenshot("bill-22-activation-storage-desktop.png", { animations: "disabled", maxDiffPixelRatio: 0 });
|
||||
|
||||
await goToNextActivationStep(component, "ui.billing.activation.emailMarketing");
|
||||
await component.getByRole("radio", { name: /Ja, Pakete ansehen/u }).click();
|
||||
await component.getByRole("radio", { name: /E-Mail-Marketing S/u }).click();
|
||||
await expect(component).toHaveScreenshot("bill-22-activation-email-desktop.png", { animations: "disabled", maxDiffPixelRatio: 0 });
|
||||
|
||||
await goToNextActivationStep(component, "ui.billing.activation.payment");
|
||||
await expect(component).toContainText("Kreditkarte");
|
||||
await expect(component).toContainText("Monatlicher Zahlbetrag");
|
||||
await expect(component).toHaveScreenshot("bill-22-activation-payment-desktop.png", { animations: "disabled", maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("mobile preserves the activation hierarchy without horizontal overflow", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const component = await mount(<VisualFixture activationMode activationTrialDays={0} />);
|
||||
|
||||
await page.evaluate(async () => document.fonts.ready);
|
||||
await expect(component).toHaveCSS("width", "390px");
|
||||
await expect(page.locator("body")).toHaveJSProperty("scrollWidth", 390);
|
||||
await expect(component).toHaveScreenshot("bill-22-activation-team-mobile.png", {
|
||||
animations: "disabled",
|
||||
maxDiffPixelRatio: 0,
|
||||
});
|
||||
|
||||
await goToNextActivationStep(component, "ui.billing.activation.plan");
|
||||
await goToNextActivationStep(component, "ui.billing.activation.storage");
|
||||
await goToNextActivationStep(component, "ui.billing.activation.emailMarketing");
|
||||
await component.getByRole("radio", { name: /Nein, später entscheiden/u }).click();
|
||||
await goToNextActivationStep(component, "ui.billing.activation.payment");
|
||||
await expect(page.locator("body")).toHaveJSProperty("scrollWidth", 390);
|
||||
await expect(component).toHaveScreenshot("bill-22-activation-payment-mobile.png", { animations: "disabled", maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("payment step exposes totals and the hosted Mollie handoff before redirect", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 1366, height: 1200 });
|
||||
const component = await mount(
|
||||
<div style={{ width: "1200px" }}>
|
||||
<VisualFixture activationMode activationTrialDays={0} />
|
||||
</div>
|
||||
);
|
||||
|
||||
await goToNextActivationStep(component, "ui.billing.activation.plan");
|
||||
await goToNextActivationStep(component, "ui.billing.activation.storage");
|
||||
await goToNextActivationStep(component, "ui.billing.activation.emailMarketing");
|
||||
await component.getByRole("radio", { name: /Nein, später entscheiden/u }).click();
|
||||
await goToNextActivationStep(component, "ui.billing.activation.payment");
|
||||
|
||||
const payment = component.locator('[data-ui-id="ui.billing.activation.payment"]');
|
||||
await expect(payment).toContainText("Monatlicher Nettobetrag");
|
||||
await expect(payment).toContainText("Monatlicher Zahlbetrag");
|
||||
await expect(payment).toContainText("Sicherer Hosted Checkout");
|
||||
await expect(payment).toHaveScreenshot("bill-22-activation-payment-detail.png", {
|
||||
animations: "disabled",
|
||||
maxDiffPixelRatio: 0,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
async function goToNextActivationStep(component: import("@playwright/experimental-ct-react").Locator, targetUiId: string): Promise<void> {
|
||||
const next = component.locator('[data-ui-id="ui.billing.activation.next"]');
|
||||
await expect(next).toBeEnabled();
|
||||
await next.click();
|
||||
await expect(component.locator(`[data-ui-id="${targetUiId}"]`)).toBeVisible();
|
||||
if (targetUiId === "ui.billing.activation.plan" || targetUiId === "ui.billing.activation.storage") {
|
||||
const livePrice = component.locator('[data-ui-id="ui.billing.activation.livePrice"]');
|
||||
await expect(livePrice).toContainText("Monatlicher Zahlbetrag");
|
||||
await expect(next).toBeEnabled();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { Bill20BillingHubVisualFixture as BillingFixture } from "../../apps/web/app/components/screens/billing/bill-20-billing-hub.visual-fixture";
|
||||
import {
|
||||
Bill20CheckoutSuccessVisualFixture as CheckoutSuccessFixture,
|
||||
Bill20TrialSuccessVisualFixture as TrialSuccessFixture,
|
||||
Bill20WelcomeSetupVisualFixture as WelcomeSetupFixture,
|
||||
} from "../../apps/web/app/components/screens/onboarding/bill-20-welcome.visual-fixture";
|
||||
|
||||
test.describe("BILL-20 welcome and billing journey visual baseline", () => {
|
||||
test("confirmed payment hands off to workspace setup", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div style={{ width: "1200px" }}>
|
||||
<CheckoutSuccessFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await waitForSettledFonts(page);
|
||||
await expect(component.locator('[data-ui-id="ui.subscription.checkout.success.page"]')).toHaveCount(1);
|
||||
await expect(component).toHaveScreenshot("bill-20-checkout-success-desktop.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("a catalog trial never presents itself as an immediate charge", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div style={{ width: "1200px" }}>
|
||||
<TrialSuccessFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await waitForSettledFonts(page);
|
||||
await expect(component.getByRole("heading", { name: "Deine Testphase läuft" })).toBeVisible();
|
||||
await expect(component).toContainText("Vor dem angezeigten Ende der Testphase wird nichts berechnet.");
|
||||
await expect(component).toHaveScreenshot("bill-20-checkout-trial-desktop.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("payment handoff remains clear on mobile", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const component = await mount(<CheckoutSuccessFixture />);
|
||||
|
||||
await waitForSettledFonts(page);
|
||||
await expect(page.locator("body")).toHaveJSProperty("scrollWidth", 390);
|
||||
await expect(component).toHaveScreenshot("bill-20-checkout-success-mobile.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("desktop welcome prioritizes automatic setup and team invitation", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div style={{ width: "1200px" }}>
|
||||
<WelcomeSetupFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await waitForSettledFonts(page);
|
||||
await expect(component.locator('[data-ui-id="ui.onboarding.welcome.checklist"]')).toContainText("Team einladen");
|
||||
await expect(component).toHaveScreenshot("bill-20-welcome-setup-desktop.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("mobile welcome remains a deliberate setup path without horizontal overflow", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const component = await mount(<WelcomeSetupFixture />);
|
||||
|
||||
await waitForSettledFonts(page);
|
||||
await expect(component).toHaveCSS("width", "390px");
|
||||
await expect(page.locator("body")).toHaveJSProperty("scrollWidth", 390);
|
||||
await expect(component).toHaveScreenshot("bill-20-welcome-setup-mobile.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("active billing opens with status and usage instead of a purchase wall", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div style={{ width: "1200px" }}>
|
||||
<BillingFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await waitForSettledFonts(page);
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.current"]')).toBeVisible();
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.builder"]')).toHaveCount(0);
|
||||
await expect(component).toHaveScreenshot("bill-20-billing-overview-desktop.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("billing overview remains scannable on mobile", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const component = await mount(<BillingFixture />);
|
||||
|
||||
await waitForSettledFonts(page);
|
||||
await expect(page.locator("body")).toHaveJSProperty("scrollWidth", 390);
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.managementActions"]')).toBeVisible();
|
||||
await expect(component).toHaveScreenshot("bill-20-billing-overview-mobile.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("plan and seat management has its own focused surface", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div style={{ width: "1200px" }}>
|
||||
<BillingFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await component.getByRole("button", { name: "Tarif und Plätze verwalten" }).click();
|
||||
await waitForSettledFonts(page);
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.builder"]')).toBeVisible();
|
||||
await expect(component).toContainText("5 Büro + 15 Baustelle inklusive · 500 GB Speicher");
|
||||
await expect(component).toContainText("10 Büro + 30 Baustelle inklusive · 2 TB Speicher");
|
||||
await expect(component).toHaveScreenshot("bill-20-billing-plan-desktop.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
|
||||
test("commercial add-ons are separated from the base plan", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div style={{ width: "1200px" }}>
|
||||
<BillingFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await component.getByRole("button", { name: "Zusatzmodule ansehen" }).click();
|
||||
await waitForSettledFonts(page);
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.storageAddOns"]')).toBeVisible();
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.emailMarketing"]')).toBeVisible();
|
||||
await expect(component.locator('[data-ui-id="ui.billing.selfServiceSubscription.customerPortal"]')).toBeVisible();
|
||||
await expect(component).toHaveScreenshot("bill-20-billing-addons-desktop.png", { maxDiffPixelRatio: 0 });
|
||||
});
|
||||
});
|
||||
|
||||
async function waitForSettledFonts(page: import("@playwright/test").Page): Promise<void> {
|
||||
await page.evaluate(async () => document.fonts.ready);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { PlatformLeadsInterimVisualFixture as VisualFixture } from "../../apps/web/app/components/screens/admin/leads/platform-leads-interim.visual-fixture";
|
||||
|
||||
test.describe("R-LEADS interim UI pixel baseline", () => {
|
||||
test("platform lead inbox stays visually stable in light mode", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="r-leads-platform-lead-inbox" style={{ width: "1280px", minHeight: "760px" }}>
|
||||
<VisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator('[data-ui-id="ui.admin.platformLeads.list"]')).toHaveCount(1);
|
||||
await expect(component).toHaveScreenshot("r-leads-platform-lead-inbox.png");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,46 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { SpotlightSearchVisualFixture as VisualFixture } from "../../apps/web/app/components/ui/commandPalettes/spotlight-search.visual-fixture";
|
||||
|
||||
const DIALOG_ID = "ui.surface.commandPalette.portal";
|
||||
const SEARCH_ID = "ui.surface.commandPalette.search";
|
||||
const RESULT_ID = "ui.surface.commandPalette.result.project.project1";
|
||||
|
||||
test.describe("R-P11a Spotlight interim UI pixel baseline", () => {
|
||||
test("desktop modal stays visually stable", async ({ mount, page }) => {
|
||||
await mount(<VisualFixture />);
|
||||
await prepareReadyResults(page);
|
||||
|
||||
const dialog = page.locator(`[data-ui-id="${DIALOG_ID}"]`);
|
||||
await expect(dialog).toBeVisible();
|
||||
const viewport = page.viewportSize();
|
||||
const box = await dialog.boundingBox();
|
||||
expect(viewport).not.toBeNull();
|
||||
expect(box).not.toBeNull();
|
||||
expect(Math.abs(box!.x - (viewport!.width - box!.width) / 2)).toBeLessThan(1);
|
||||
expect(box!.x).toBeGreaterThanOrEqual(0);
|
||||
expect(box!.y).toBeGreaterThanOrEqual(0);
|
||||
await expect(dialog).toHaveScreenshot("r-p11a-spotlight-desktop.png");
|
||||
});
|
||||
|
||||
test("mobile viewport overlay stays visually stable", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await mount(<VisualFixture />);
|
||||
await prepareReadyResults(page);
|
||||
|
||||
const dialog = page.locator(`[data-ui-id="${DIALOG_ID}"]`);
|
||||
await expect(dialog).toBeVisible();
|
||||
await expect(dialog).toHaveCSS("height", "844px");
|
||||
await expect(dialog).toHaveCSS("width", "390px");
|
||||
expect(await dialog.boundingBox()).toEqual({ x: 0, y: 0, width: 390, height: 844 });
|
||||
await expect(dialog).toHaveScreenshot("r-p11a-spotlight-mobile.png");
|
||||
});
|
||||
});
|
||||
|
||||
async function prepareReadyResults(page: import("@playwright/test").Page) {
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
await page.locator(`[data-ui-id="${SEARCH_ID}"]`).fill("solar");
|
||||
await expect(page.locator(`[data-ui-id="${RESULT_ID}"]`)).toBeVisible();
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
import AxeBuilder from "@axe-core/playwright";
|
||||
|
||||
import {
|
||||
CustomerPortalInterimVisualFixture as VisualFixture,
|
||||
CustomerPortalProjectDetailInterimVisualFixture as ProjectDetailFixture,
|
||||
} from "../../apps/web/app/components/screens/customer-portal/customer-portal-interim.visual-fixture";
|
||||
|
||||
test.describe("VA-P26a customer portal interim UI", () => {
|
||||
test("access-scoped dashboard stays visually stable in light mode", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="va-p26a-customer-portal-dashboard" style={{ width: "1280px", minHeight: "720px" }}>
|
||||
<VisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator('[data-ui-id="ui.customerPortal.portalShell"]')).toHaveCount(1);
|
||||
await expect(component.locator('[data-ui-id="ui.customerPortal.projectCard"]')).toHaveCount(1);
|
||||
await expect(component).toContainText("Montagefreigabe.pdf");
|
||||
await expect(component).toHaveScreenshot("va-p26a-customer-portal-dashboard.png");
|
||||
});
|
||||
|
||||
test("ready project detail meets WCAG 2 A/AA", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="va-p26a-customer-portal-project-detail" style={{ width: "1280px", minHeight: "720px" }}>
|
||||
<ProjectDetailFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator('[data-ui-id="ui.customerPortal.portalShell"]')).toHaveCount(1);
|
||||
await expect(component.getByRole("progressbar")).toHaveCount(1);
|
||||
|
||||
const results = await new AxeBuilder({ page })
|
||||
.include('[data-ui-id="ui.customerPortal.portalShell"]')
|
||||
.withTags(["wcag2a", "wcag2aa"])
|
||||
.analyze();
|
||||
expect(results.violations).toEqual([]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,111 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
import AxeBuilder from "@axe-core/playwright";
|
||||
|
||||
import {
|
||||
P26bInteractionsInterimVisualFixture,
|
||||
P26bInterimVisualFixture as VisualFixture,
|
||||
type P26bInterimVisualScreen,
|
||||
} from "../../apps/web/app/components/screens/customer-portal/p26b-interim.visual-fixture";
|
||||
|
||||
const VISUAL_SCREENS = ["interactions", "lifecycle", "admin", "service-inbox"] as const satisfies readonly P26bInterimVisualScreen[];
|
||||
const ADMIN_AREAS = [
|
||||
{ tab: "Nutzer", screenshot: "va-p26b-customer-portal-admin-users.png" },
|
||||
{ tab: "Freigaben", screenshot: "va-p26b-customer-portal-admin-releases.png" },
|
||||
{ tab: "Domain & Mail", screenshot: "va-p26b-customer-portal-admin-domain-mail.png" },
|
||||
] as const;
|
||||
|
||||
test.describe("VA-P26b customer portal interim UI pixel baselines", () => {
|
||||
for (const screen of VISUAL_SCREENS) {
|
||||
test(`${screen} stays visually stable in light mode`, async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid={`va-p26b-${screen}`} style={{ width: "1280px", minHeight: "720px" }}>
|
||||
<VisualFixture screen={screen} />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator(`[data-ui-id="${screenUiId(screen)}"]`)).toHaveCount(1);
|
||||
if (screen === "interactions") {
|
||||
await expect(component).toContainText("baustelle.jpg");
|
||||
await expect(component).toContainText("Reklamation melden");
|
||||
}
|
||||
if (screen === "admin") await expect(component).toContainText("Einrichtung auf einen Blick");
|
||||
await expect(component).toHaveScreenshot(`va-p26b-customer-portal-${screen}.png`);
|
||||
});
|
||||
}
|
||||
|
||||
for (const area of ADMIN_AREAS) {
|
||||
test(`admin ${area.tab} area stays visually stable in light mode`, async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="va-p26b-admin-area" style={{ width: "1280px", minHeight: "720px" }}>
|
||||
<VisualFixture screen="admin" />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
await component.getByRole("tab", { name: area.tab }).click();
|
||||
|
||||
await expect(component.getByRole("tabpanel")).toBeVisible();
|
||||
await expect(component).toHaveScreenshot(area.screenshot);
|
||||
});
|
||||
}
|
||||
|
||||
test("expanded admin basic settings stay visually stable in light mode", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="va-p26b-admin-basic-settings" style={{ width: "1280px", minHeight: "720px" }}>
|
||||
<VisualFixture screen="admin" />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
await component.getByRole("button", { name: "Grundeinstellungen bearbeiten" }).click();
|
||||
|
||||
await expect(component.getByText("Grundeinstellungen", { exact: true })).toBeVisible();
|
||||
await expect(component).toHaveScreenshot("va-p26b-customer-portal-admin-basic-settings.png");
|
||||
});
|
||||
|
||||
test("admin areas remain usable without horizontal overflow on mobile", async ({ mount, page }) => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
const component = await mount(
|
||||
<div style={{ width: "390px", minHeight: "844px" }}>
|
||||
<VisualFixture screen="admin" />
|
||||
</div>
|
||||
);
|
||||
|
||||
for (const name of ["Übersicht", "Nutzer", "Freigaben", "Domain & Mail"]) {
|
||||
await component.getByRole("tab", { name }).click();
|
||||
expect(await component.evaluate((element) => element.scrollWidth - element.clientWidth)).toBeLessThanOrEqual(1);
|
||||
}
|
||||
});
|
||||
|
||||
test("complaint action stays named during the post-submit loading state", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div style={{ width: "1280px", minHeight: "720px" }}>
|
||||
<P26bInteractionsInterimVisualFixture busy />
|
||||
</div>
|
||||
);
|
||||
|
||||
const interactions = component.locator('[data-ui-id="ui.customerPortal.projectInteractions"]');
|
||||
const complaintButton = interactions.getByRole("button", { name: "Reklamation senden" });
|
||||
await expect(interactions.getByText("Deine Reklamation wurde gespeichert und das Projektteam informiert.")).toBeVisible();
|
||||
await expect(complaintButton).toBeDisabled();
|
||||
await expect(complaintButton).toHaveAttribute("aria-label", "Reklamation senden");
|
||||
|
||||
const results = await new AxeBuilder({ page }).include('[data-ui-id="ui.customerPortal.projectInteractions"]').withRules(["button-name"]).analyze();
|
||||
expect(results.violations).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
function screenUiId(screen: (typeof VISUAL_SCREENS)[number]): string {
|
||||
if (screen === "interactions") return "ui.customerPortal.projectInteractions";
|
||||
if (screen === "lifecycle") return "ui.customerPortal.lifecycle";
|
||||
if (screen === "admin") return "ui.customerPortal.admin";
|
||||
return "ui.customerPortal.serviceInbox";
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { P26cDomainPendingSwitchVisualFixture } from "../../apps/web/app/components/screens/customer-portal/p26c-domain-interim.visual-fixture";
|
||||
|
||||
test.describe("VA-P26c customer portal domain-admin interim UI pixel baseline", () => {
|
||||
test("pending verified domain switch stays visually stable in light mode", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="va-p26c-domain-admin" style={{ width: "1280px", minHeight: "900px" }}>
|
||||
<P26cDomainPendingSwitchVisualFixture />
|
||||
</div>,
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator('[data-ui-id="ui.customerPortal.domainAdmin"]')).toHaveCount(1);
|
||||
await expect(component).toContainText("portal.acme.de");
|
||||
await expect(component).toContainText("hivegrid-verification-proof-once");
|
||||
await expect(component).toHaveScreenshot("va-p26c-customer-portal-domain-admin.png", { fullPage: true });
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,37 @@
|
||||
import AxeBuilder from "@axe-core/playwright";
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { AdminFeatureFlagBulkVisualFixture as VisualFixture } from "../../apps/web/app/components/screens/admin/sales/feature-flags/admin-feature-flag-bulk.visual-fixture";
|
||||
|
||||
test.describe("VA-P28b feature-flag rollout interim UI", () => {
|
||||
test("shows deterministic rollout sources and stays visually stable", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="va-p28b-feature-flag-rollout" style={{ width: "1280px", minHeight: "760px" }}>
|
||||
<VisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator('[data-ui-id="ui.admin.sales.featureFlags.bulkPage"]')).toHaveCount(1);
|
||||
await expect(component.getByText("Muster SHK GmbH")).toBeVisible();
|
||||
await expect(component).toHaveScreenshot("va-p28b-feature-flag-rollout.png");
|
||||
});
|
||||
|
||||
test("meets WCAG 2 A/AA", async ({ mount, page }) => {
|
||||
await mount(
|
||||
<div style={{ width: "1280px", minHeight: "760px" }}>
|
||||
<VisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
const results = await new AxeBuilder({ page })
|
||||
.include('[data-ui-id="ui.admin.sales.featureFlags.bulkPage"]')
|
||||
.withTags(["wcag2a", "wcag2aa"])
|
||||
.analyze();
|
||||
|
||||
expect(results.violations).toEqual([]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,41 @@
|
||||
// Interim pixel baseline for the VD-MCP connect dialog (AD-28, DoD D.21).
|
||||
// The PNG baselines are not committed: this suite is not part of CI, and the
|
||||
// Playwright browser download was not available on the authoring machine. Run
|
||||
// `npx playwright install chromium` once, then
|
||||
// `npx playwright test --config=playwright-ct.config.ts vd-mcp-connect-interim --update-snapshots`
|
||||
// to write them.
|
||||
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import { McpConnectEmptyVisualFixture, McpConnectVisualFixture } from "../../apps/web/app/components/mcp/mcp-connect.visual-fixture";
|
||||
|
||||
const DIALOG_ID = "ui.mcp.connect.dialog";
|
||||
const CONNECTOR_ID = "ui.mcp.connect.connectorUrl";
|
||||
|
||||
test.describe("VD-MCP connect dialog interim UI pixel baseline", () => {
|
||||
test("desktop dialog stays visually stable", async ({ mount, page }) => {
|
||||
await mount(<McpConnectVisualFixture />);
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
const dialog = page.locator(`[data-ui-id="${DIALOG_ID}"]`);
|
||||
await expect(dialog).toBeVisible();
|
||||
// The connector URL is the one value a user must copy correctly; if it ever
|
||||
// renders truncated or empty the screenshot alone would not say so.
|
||||
await expect(page.locator(`[data-ui-id="${CONNECTOR_ID}"]`)).toContainText("https://mcp.hivegrid.example");
|
||||
await expect(dialog).toHaveScreenshot("vd-mcp-connect-desktop.png");
|
||||
});
|
||||
|
||||
test("empty connection list stays visually stable", async ({ mount, page }) => {
|
||||
await mount(<McpConnectEmptyVisualFixture />);
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
const dialog = page.locator(`[data-ui-id="${DIALOG_ID}"]`);
|
||||
await expect(dialog).toBeVisible();
|
||||
await expect(page.locator('[data-ui-id="ui.mcp.connect.connections.empty"]')).toBeVisible();
|
||||
await expect(dialog).toHaveScreenshot("vd-mcp-connect-empty.png");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,104 @@
|
||||
import AxeBuilder from "@axe-core/playwright";
|
||||
import { expect, test } from "@playwright/experimental-ct-react";
|
||||
|
||||
import {
|
||||
AdminRolesInterimVisualFixture as RolesVisualFixture,
|
||||
AdminSecurityInterimVisualFixture as VisualFixture,
|
||||
} from "../../apps/web/app/components/screens/admin/sales/security/admin-security-interim.visual-fixture";
|
||||
import { AdminPersonalizedDashboardVisualFixture as DashboardVisualFixture } from "../../apps/web/app/components/screens/admin/admin-personalized-dashboard.visual-fixture";
|
||||
|
||||
test.describe("VR-P28a admin identity interim UI", () => {
|
||||
test("admin identity list stays visually stable in light mode", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="vr-p28a-admin-security" style={{ width: "1280px", minHeight: "760px" }}>
|
||||
<VisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.locator('[data-ui-id="ui.admin.sales.security.adminUsersPage"]')).toHaveCount(1);
|
||||
await expect(component).toHaveScreenshot("vr-p28a-admin-security.png");
|
||||
});
|
||||
|
||||
test("admin identity list meets WCAG 2 A/AA", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="vr-p28a-admin-security-a11y" style={{ width: "1280px", minHeight: "760px" }}>
|
||||
<VisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
const results = await new AxeBuilder({ page })
|
||||
.include('[data-ui-id="ui.admin.sales.security.adminUsersPage"]')
|
||||
.withTags(["wcag2a", "wcag2aa"])
|
||||
.analyze();
|
||||
|
||||
expect(results.violations).toEqual([]);
|
||||
await expect(component.getByRole("heading", { name: "Plattform-Admins" })).toHaveCount(1);
|
||||
});
|
||||
|
||||
test("role editor groups permissions and summarizes visible areas", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="vr-p28a-admin-roles" style={{ width: "1280px", minHeight: "1400px" }}>
|
||||
<RolesVisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.getByText("Tatsächlich sichtbare Admin-Bereiche")).toHaveCount(1);
|
||||
await expect(component).toHaveScreenshot("vr-p28a-admin-roles.png", { fullPage: true });
|
||||
});
|
||||
|
||||
test("grouped role editor meets WCAG 2 A/AA", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="vr-p28a-admin-roles-a11y" style={{ width: "1280px", minHeight: "1400px" }}>
|
||||
<RolesVisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
const results = await new AxeBuilder({ page })
|
||||
.include('[data-ui-id="ui.admin.sales.security.adminRolesPage"]')
|
||||
.withTags(["wcag2a", "wcag2aa"])
|
||||
.analyze();
|
||||
|
||||
expect(results.violations).toEqual([]);
|
||||
await expect(component.getByRole("heading", { name: "Admin-Rollen" })).toHaveCount(1);
|
||||
});
|
||||
|
||||
test("combined-role dashboard stays visually stable", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="vr-p28a-admin-dashboard" style={{ width: "1280px", minHeight: "760px", padding: "24px" }}>
|
||||
<DashboardVisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await document.fonts.ready;
|
||||
});
|
||||
|
||||
await expect(component.getByText("Vertrieb")).toHaveCount(1);
|
||||
await expect(component.getByText("Engineering")).toHaveCount(1);
|
||||
await expect(component).toHaveScreenshot("vr-p28a-admin-dashboard.png");
|
||||
});
|
||||
|
||||
test("combined-role dashboard meets WCAG 2 A/AA", async ({ mount, page }) => {
|
||||
const component = await mount(
|
||||
<div data-testid="vr-p28a-admin-dashboard-a11y" style={{ width: "1280px", minHeight: "760px", padding: "24px" }}>
|
||||
<DashboardVisualFixture />
|
||||
</div>
|
||||
);
|
||||
|
||||
const results = await new AxeBuilder({ page })
|
||||
.include('[data-ui-id="ui.admin.personalizedDashboard"]')
|
||||
.withTags(["wcag2a", "wcag2aa"])
|
||||
.analyze();
|
||||
|
||||
expect(results.violations).toEqual([]);
|
||||
await expect(component.getByRole("heading", { name: "Dein Arbeitsbereich" })).toHaveCount(1);
|
||||
});
|
||||
});
|
||||