feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
import { test, expect } from "@playwright/test";
|
|
|
|
|
import AxeBuilder from "@axe-core/playwright";
|
|
|
|
|
|
|
|
|
|
test.describe("Accessibility Tests", () => {
|
|
|
|
|
test("login page should have no accessibility violations", async ({ page }) => {
|
2026-04-08 22:12:38 +02:00
|
|
|
await page.goto("/login");
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
const results = await new AxeBuilder({ page }).analyze();
|
2026-04-08 22:12:38 +02:00
|
|
|
const critical = results.violations.filter((v) => v.impact === "critical");
|
|
|
|
|
expect(critical).toEqual([]);
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
});
|
|
|
|
|
|
2026-04-08 22:12:38 +02:00
|
|
|
test("dashboard preview should have no critical accessibility violations", async ({ page }) => {
|
|
|
|
|
await page.goto("/admin?_preview=1");
|
|
|
|
|
await expect(page.getByRole("heading", { name: "Dashboard" })).toBeVisible();
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
const results = await new AxeBuilder({ page }).analyze();
|
2026-04-08 22:12:38 +02:00
|
|
|
const critical = results.violations.filter((v) => v.impact === "critical");
|
|
|
|
|
expect(critical).toEqual([]);
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
});
|
|
|
|
|
});
|