Merge remote-tracking branch 'origin/main' into feat/e2e-journey-tests

This commit is contained in:
Barcode Betty
2026-03-31 17:49:40 +00:00
5 changed files with 41 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
import { test as base, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";
export const test = base.extend<{ axeCheck: void }>({
axeCheck: [async ({ page }, use) => {
await use();
const results = await new AxeBuilder({ page }).analyze();
expect(results.violations).toEqual([]);
}, { auto: true }],
});
export { expect } from "@playwright/test";
+3 -3
View File
@@ -1,6 +1,6 @@
import { test, expect } from '@playwright/test';
import { test, expect } from "./fixtures";
test('app loads', async ({ page }) => {
await page.goto('/');
test("app loads", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveTitle(/CartSnitch/);
});