File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments