@@ -112,6 +112,7 @@ import {
112112 PackageChartModal ,
113113 PackageClaimPackageModal ,
114114 PackageCompatibility ,
115+ PackageDeprecatePackageModal ,
115116 PackageDependencies ,
116117 PackageDeprecatedTree ,
117118 PackageInstallScripts ,
@@ -951,6 +952,29 @@ describe('component accessibility audits', () => {
951952 } )
952953 } )
953954
955+ describe ( 'PackageDeprecatePackageModal' , ( ) => {
956+ it ( 'should have no accessibility violations when closed' , async ( ) => {
957+ const component = await mountSuspended ( PackageDeprecatePackageModal , {
958+ props : {
959+ packageName : 'test-package' ,
960+ } ,
961+ } )
962+ const results = await runAxe ( component )
963+ expect ( results . violations ) . toEqual ( [ ] )
964+ } )
965+
966+ it ( 'should have no accessibility violations when closed with version' , async ( ) => {
967+ const component = await mountSuspended ( PackageDeprecatePackageModal , {
968+ props : {
969+ packageName : 'test-package' ,
970+ version : '1.0.0' ,
971+ } ,
972+ } )
973+ const results = await runAxe ( component )
974+ expect ( results . violations ) . toEqual ( [ ] )
975+ } )
976+ } )
977+
954978 describe ( 'PackageProvenanceSection' , ( ) => {
955979 it ( 'should have no accessibility violations with minimal details' , async ( ) => {
956980 const component = await mountSuspended ( PackageProvenanceSection , {
0 commit comments