소스 검색

enhance: add basic a11y test

Konstantinos Kaloutas 3 년 전
부모
커밋
54e43c71dd
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  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)
+})