Skip to content

Commit ed977dc

Browse files
committed
test: add a11y test for instant-search
1 parent 824e152 commit ed977dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ import {
156156
HeaderAccountMenu,
157157
HeaderConnectorModal,
158158
HeaderSearchBox,
159+
InstantSearch,
159160
InputBase,
160161
LicenseDisplay,
161162
LoadingSpinner,
@@ -2657,6 +2658,14 @@ describe('component accessibility audits', () => {
26572658
})
26582659
})
26592660

2661+
describe('InstantSearch', () => {
2662+
it('should have no accessibility violations', async () => {
2663+
const component = await mountSuspended(InstantSearch)
2664+
const results = await runAxe(component)
2665+
expect(results.violations).toEqual([])
2666+
})
2667+
})
2668+
26602669
describe('SearchProviderToggle', () => {
26612670
it('should have no accessibility violations', async () => {
26622671
const component = await mountSuspended(SearchProviderToggle)

0 commit comments

Comments
 (0)