@@ -97,10 +97,8 @@ import PackageDeprecatedTree from '~/components/PackageDeprecatedTree.vue'
9797import DependencyPathPopup from '~/components/DependencyPathPopup.vue'
9898import CompareFacetSelector from '~/components/compare/FacetSelector.vue'
9999import ComparePackageSelector from '~/components/compare/PackageSelector.vue'
100- import CompareMetricRow from '~/components/compare/MetricRow .vue'
100+ import CompareFacetRow from '~/components/compare/FacetRow .vue'
101101import CompareComparisonGrid from '~/components/compare/ComparisonGrid.vue'
102- import CompareVersionPicker from '~/components/compare/VersionPicker.vue'
103- import CompareComingSoonPlaceholder from '~/components/compare/ComingSoonPlaceholder.vue'
104102
105103describe ( 'component accessibility audits' , ( ) => {
106104 describe ( 'DateTime' , ( ) => {
@@ -1335,9 +1333,9 @@ describe('component accessibility audits', () => {
13351333 } )
13361334 } )
13371335
1338- describe ( 'CompareMetricRow ' , ( ) => {
1336+ describe ( 'CompareFacetRow ' , ( ) => {
13391337 it ( 'should have no accessibility violations with basic values' , async ( ) => {
1340- const component = await mountSuspended ( CompareMetricRow , {
1338+ const component = await mountSuspended ( CompareFacetRow , {
13411339 props : {
13421340 label : 'Downloads' ,
13431341 description : 'Weekly download count' ,
@@ -1352,7 +1350,7 @@ describe('component accessibility audits', () => {
13521350 } )
13531351
13541352 it ( 'should have no accessibility violations with diffs' , async ( ) => {
1355- const component = await mountSuspended ( CompareMetricRow , {
1353+ const component = await mountSuspended ( CompareFacetRow , {
13561354 props : {
13571355 label : 'Package Size' ,
13581356 description : 'Size of the package' ,
@@ -1368,7 +1366,7 @@ describe('component accessibility audits', () => {
13681366 } )
13691367
13701368 it ( 'should have no accessibility violations when loading' , async ( ) => {
1371- const component = await mountSuspended ( CompareMetricRow , {
1369+ const component = await mountSuspended ( CompareFacetRow , {
13721370 props : {
13731371 label : 'Install Size' ,
13741372 description : 'Total install size' ,
@@ -1410,56 +1408,4 @@ describe('component accessibility audits', () => {
14101408 expect ( results . violations ) . toEqual ( [ ] )
14111409 } )
14121410 } )
1413-
1414- describe ( 'CompareVersionPicker' , ( ) => {
1415- it ( 'should have no accessibility violations' , async ( ) => {
1416- const component = await mountSuspended ( CompareVersionPicker , {
1417- props : {
1418- packageName : 'vue' ,
1419- modelValue : '3.5.0' ,
1420- label : 'From version' ,
1421- } ,
1422- } )
1423- const results = await runAxe ( component )
1424- expect ( results . violations ) . toEqual ( [ ] )
1425- } )
1426-
1427- it ( 'should have no accessibility violations with other version context' , async ( ) => {
1428- const component = await mountSuspended ( CompareVersionPicker , {
1429- props : {
1430- packageName : 'vue' ,
1431- modelValue : '3.5.0' ,
1432- label : 'From version' ,
1433- otherVersion : '3.4.0' ,
1434- } ,
1435- } )
1436- const results = await runAxe ( component )
1437- expect ( results . violations ) . toEqual ( [ ] )
1438- } )
1439- } )
1440-
1441- describe ( 'CompareComingSoonPlaceholder' , ( ) => {
1442- it ( 'should have no accessibility violations' , async ( ) => {
1443- const component = await mountSuspended ( CompareComingSoonPlaceholder , {
1444- props : {
1445- title : 'File Diff' ,
1446- description : 'Compare file changes between versions' ,
1447- } ,
1448- } )
1449- const results = await runAxe ( component )
1450- expect ( results . violations ) . toEqual ( [ ] )
1451- } )
1452-
1453- it ( 'should have no accessibility violations with icon' , async ( ) => {
1454- const component = await mountSuspended ( CompareComingSoonPlaceholder , {
1455- props : {
1456- title : 'Dependency Diff' ,
1457- description : 'Compare dependency changes' ,
1458- icon : 'i-carbon:flow' ,
1459- } ,
1460- } )
1461- const results = await runAxe ( component )
1462- expect ( results . violations ) . toEqual ( [ ] )
1463- } )
1464- } )
14651411} )
0 commit comments