From 3647a225aaada2ad678df4e4ab6a1399a9574fe8 Mon Sep 17 00:00:00 2001 From: mijinummi Date: Mon, 29 Jun 2026 17:10:52 +0100 Subject: [PATCH] devops: execute automated axe-core accessibility check on PR pipeline (#529) --- tests/accessibility.spec.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/accessibility.spec.ts diff --git a/tests/accessibility.spec.ts b/tests/accessibility.spec.ts new file mode 100644 index 00000000..79b68cca --- /dev/null +++ b/tests/accessibility.spec.ts @@ -0,0 +1,17 @@ +import { test, expect } from '@playwright/test'; +import AxeBuilder from '@axe-core/playwright'; + +test.describe('Accessibility Quality Gate Matrix', () => { + test('should pass standard automated a11y checking algorithms without strict violations', async ({ page }) => { + // Navigate to a critical landing view route + await page.goto('/'); + + // Scan page elements using WCAG 2.1 AA benchmarks + const accessibilityScanResults = await new AxeBuilder({ page }) + .withTags(['wcag2a', 'wcag2aa']) + .analyze(); + + // Task Requirement: Verify zero violations to avoid regression failures + expect(accessibilityScanResults.violations).toEqual([]); + }); +}); \ No newline at end of file