test(input): add missing a11y test (#26307)

This commit is contained in:
Liam DeBeasi
2022-11-16 15:30:55 -05:00
committed by GitHub
parent 51710f4f5f
commit ef0d19c0f7

View File

@ -0,0 +1,17 @@
import AxeBuilder from '@axe-core/playwright';
import { expect } from '@playwright/test';
import { test } from '@utils/test/playwright';
test.describe('input: a11y', () => {
test.beforeEach(async ({ skip }) => {
skip.rtl();
skip.mode('md');
});
test('should not have accessibility violations', async ({ page }) => {
await page.goto(`/src/components/input/test/a11y`);
const results = await new AxeBuilder({ page }).analyze();
expect(results.violations).toEqual([]);
});
});