23 lines
1.0 KiB
TypeScript
23 lines
1.0 KiB
TypeScript
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 });
|
|
});
|
|
});
|