nxtgauge-frontend-solid/tests/e2e/visual/pages.spec.ts
Ashwin Kumar f990b9a9e0 feat: comprehensive testing infrastructure (without workflow pending token scope)
- Add vitest, Playwright, ESLint, Prettier configs
- Add unit tests and e2e accessibility/visual tests
- Add MSW mocks and test setup
- Update scripts and .gitignore
- Install required dev dependencies

Note: GitHub Actions workflow will be added after token scope is granted.
2026-04-08 02:43:29 +02:00

15 lines
590 B
TypeScript

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 });
});
});