Selaa lähdekoodia

enhance: add basic a11y test

Konstantinos Kaloutas 3 vuotta sitten
vanhempi
sitoutus
54e43c71dd
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      e2e-tests/accessibility.spec.ts

+ 10 - 0
e2e-tests/accessibility.spec.ts

@@ -0,0 +1,10 @@
+import { injectAxe, checkA11y, getViolations, reportViolations } from 'axe-playwright'
+import { test } from './fixtures'
+import { createRandomPage } from './utils'
+
+
+test('check a11y for the whole page', async ({ page }) => {
+    await injectAxe(page)
+    await createRandomPage(page)
+    await checkA11y(page)
+})