17 lines
666 B
TypeScript
17 lines
666 B
TypeScript
|
|
import { test, expect } from "@playwright/test";
|
||
|
|
|
||
|
|
test.describe("Visual Regression - Admin Pages", () => {
|
||
|
|
test("company management page should match baseline", async ({ page }) => {
|
||
|
|
await page.goto("/admin/company");
|
||
|
|
// Wait for table to load
|
||
|
|
await expect(page.locator("table")).toBeVisible({ timeout: 10000 });
|
||
|
|
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.1 });
|
||
|
|
});
|
||
|
|
|
||
|
|
test("jobs management page should match baseline", async ({ page }) => {
|
||
|
|
await page.goto("/admin/jobs");
|
||
|
|
await expect(page.locator("table")).toBeVisible({ timeout: 10000 });
|
||
|
|
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.1 });
|
||
|
|
});
|
||
|
|
});
|