@@ -2442,13 +2442,6 @@ describe('component accessibility audits', () => {
24422442 ] ,
24432443 ] )
24442444
2445- // DiffSidebarPanel has a known a11y issue: <select> nested inside <summary>
2446- // This causes 'nested-interactive' violation. TODO: Fix the component to move
2447- // the select outside of summary or use a different UI pattern.
2448- function filterKnownViolations ( results : AxeResults ) {
2449- return results . violations . filter ( v => v . id !== 'nested-interactive' )
2450- }
2451-
24522445 it ( 'should have no accessibility violations' , async ( ) => {
24532446 const component = await mountSuspended ( DiffSidebarPanel , {
24542447 props : {
@@ -2458,7 +2451,7 @@ describe('component accessibility audits', () => {
24582451 } ,
24592452 } )
24602453 const results = await runAxe ( component )
2461- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2454+ expect ( results . violations ) . toEqual ( [ ] )
24622455 } )
24632456
24642457 it ( 'should have no accessibility violations with selected file' , async ( ) => {
@@ -2471,7 +2464,7 @@ describe('component accessibility audits', () => {
24712464 } ,
24722465 } )
24732466 const results = await runAxe ( component )
2474- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2467+ expect ( results . violations ) . toEqual ( [ ] )
24752468 } )
24762469
24772470 it ( 'should have no accessibility violations with file filter' , async ( ) => {
@@ -2484,7 +2477,7 @@ describe('component accessibility audits', () => {
24842477 } ,
24852478 } )
24862479 const results = await runAxe ( component )
2487- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2480+ expect ( results . violations ) . toEqual ( [ ] )
24882481 } )
24892482
24902483 it ( 'should have no accessibility violations with warnings' , async ( ) => {
@@ -2500,7 +2493,7 @@ describe('component accessibility audits', () => {
25002493 } ,
25012494 } )
25022495 const results = await runAxe ( component )
2503- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2496+ expect ( results . violations ) . toEqual ( [ ] )
25042497 } )
25052498
25062499 it ( 'should have no accessibility violations with no dependency changes' , async ( ) => {
@@ -2516,7 +2509,7 @@ describe('component accessibility audits', () => {
25162509 } ,
25172510 } )
25182511 const results = await runAxe ( component )
2519- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2512+ expect ( results . violations ) . toEqual ( [ ] )
25202513 } )
25212514 } )
25222515
@@ -2547,12 +2540,6 @@ describe('component accessibility audits', () => {
25472540 { path : 'changed.ts' , type : 'modified' as const , oldSize : 200 , newSize : 250 } ,
25482541 ]
25492542
2550- // DiffMobileSidebarDrawer uses DiffSidebarPanel which has a known a11y issue:
2551- // <select> nested inside <summary>. See DiffSidebarPanel tests for details.
2552- function filterKnownViolations ( results : AxeResults ) {
2553- return results . violations . filter ( v => v . id !== 'nested-interactive' )
2554- }
2555-
25562543 it ( 'should have no accessibility violations when closed' , async ( ) => {
25572544 const component = await mountSuspended ( DiffMobileSidebarDrawer , {
25582545 props : {
@@ -2576,7 +2563,7 @@ describe('component accessibility audits', () => {
25762563 } ,
25772564 } )
25782565 const results = await runAxe ( component )
2579- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2566+ expect ( results . violations ) . toEqual ( [ ] )
25802567 } )
25812568 } )
25822569
0 commit comments