Skip to content

Commit 527cdd4

Browse files
committed
test: add a11y test to CommandBar.vue
1 parent 0c69097 commit 527cdd4

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

test/nuxt/a11y.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ import {
117117
SearchSuggestionCard,
118118
VersionSelector,
119119
ViewModeToggle,
120+
CommandBar,
120121
} from '#components'
121122

122123
// Server variant components must be imported directly to test the server-side render
@@ -1806,4 +1807,12 @@ describe('component accessibility audits', () => {
18061807
expect(results.violations).toEqual([])
18071808
})
18081809
})
1810+
1811+
describe('CommandBar', () => {
1812+
it('should have no accessibility violations', async () => {
1813+
const component = await mountSuspended(CommandBar)
1814+
const results = await runAxe(component)
1815+
expect(results.violations).toEqual([])
1816+
})
1817+
})
18091818
})

test/unit/a11y-component-coverage.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const SKIPPED_COMPONENTS: Record<string, string> = {
4141
'Package/WeeklyDownloadStats.vue':
4242
'Uses vue-data-ui VueUiSparkline - has DOM measurement issues in test environment',
4343
'UserCombobox.vue': 'Unused component - intended for future admin features',
44-
'CommandBar.vue': 'Requires full app context to collect and render commands',
4544
}
4645

4746
/**

0 commit comments

Comments
 (0)