nxtgauge-frontend-solid/tests/e2e/visual/pages.spec.ts

16 lines
590 B
TypeScript
Raw Normal View History

import { test, expect } from "@playwright/test";
test.describe("Visual Regression - Public Pages", () => {
test("homepage should match baseline", async ({ page }) => {
await page.goto("/");
await expect(page.locator("main")).toBeVisible({ timeout: 10000 });
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.1 });
});
test("jobs page should match baseline", async ({ page }) => {
await page.goto("/jobs");
await expect(page.locator("main")).toBeVisible({ timeout: 10000 });
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.1 });
});
});