Skip to content

Commit 45e2528

Browse files
committed
test added
1 parent 302952a commit 45e2528

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ import {
233233
PackageSelectionView,
234234
PackageSelectionCheckbox,
235235
PackageExternalLinks,
236+
LicenseChangeWarning,
236237
} from '#components'
237238

238239
// Server variant components must be imported directly to test the server-side render
@@ -333,6 +334,22 @@ describe('component accessibility audits', () => {
333334
})
334335
})
335336

337+
describe('LicenseChangeWarning', () => {
338+
it('should have no accessibility violations', async () => {
339+
const component = await mountSuspended(LicenseChangeWarning, {
340+
props: {
341+
packageName: 'vue',
342+
resolvedVersion: '3.4.0',
343+
},
344+
global: {
345+
mocks: { $t: (key: string) => key },
346+
stubs: { 'i18n-t': { template: '<span><slot name="license_change" /></span>' } },
347+
},
348+
})
349+
const results = await runAxe(component)
350+
expect(results.violations).toEqual([])
351+
})
352+
})
336353
describe('AppLogo', () => {
337354
it('should have no accessibility violations', async () => {
338355
const component = await mountSuspended(AppLogo)

0 commit comments

Comments
 (0)