Skip to content

Commit c927b38

Browse files
committed
chore: add missing a11y tests
1 parent a99a65e commit c927b38

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ import {
7474
CompareFacetCard,
7575
CompareFacetRow,
7676
CompareFacetSelector,
77+
CompareLineChart,
7778
ComparePackageSelector,
7879
DateTime,
7980
DependencyPathPopup,
@@ -1447,6 +1448,24 @@ describe('component accessibility audits', () => {
14471448
})
14481449
})
14491450

1451+
describe('CompareLineChart', () => {
1452+
it('should have no accessibility violations with no packages', async () => {
1453+
const component = await mountSuspended(CompareLineChart, {
1454+
props: { packages: [] },
1455+
})
1456+
const results = await runAxe(component)
1457+
expect(results.violations).toEqual([])
1458+
})
1459+
1460+
it('should have no accessibility violations with packages selected', async () => {
1461+
const component = await mountSuspended(CompareLineChart, {
1462+
props: { packages: ['vue', 'react'] },
1463+
})
1464+
const results = await runAxe(component)
1465+
expect(results.violations).toEqual([])
1466+
})
1467+
})
1468+
14501469
describe('ComparePackageSelector', () => {
14511470
it('should have no accessibility violations with no packages', async () => {
14521471
const component = await mountSuspended(ComparePackageSelector, {

0 commit comments

Comments
 (0)