Skip to content

Commit

Permalink
test: add a11y test
Browse files Browse the repository at this point in the history
  • Loading branch information
aojunhao123 committed Jan 27, 2025
1 parent 1244443 commit 0eb8c36
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/progress/__tests__/a11y.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import accessibilityDemoTest from '../../../tests/shared/accessibilityTest';

accessibilityDemoTest('progress', {
// we can set aria attribute to fix it
disabledRules: ['aria-progressbar-name'],
// we can set aria attribute to fix it
skip: ['circle-steps.tsx'],
});
6 changes: 6 additions & 0 deletions components/statistic/__tests__/a11y.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import accessibilityDemoTest from '../../../tests/shared/accessibilityTest';

accessibilityDemoTest('statistic', {
// wait for skeleton fix
skip: ['basic.tsx'],
});
6 changes: 6 additions & 0 deletions components/steps/__tests__/a11y.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import accessibilityDemoTest from '../../../tests/shared/accessibilityTest';

accessibilityDemoTest('steps', {
// we can set aria attribute to fix it
skip: ['inline.tsx', 'label-placement.tsx', 'progress.tsx'],
});

0 comments on commit 0eb8c36

Please sign in to comment.