21 lines
834 B
TypeScript
21 lines
834 B
TypeScript
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");
|
|
});
|
|
});
|