@@ -2713,13 +2713,6 @@ describe('component accessibility audits', () => {
27132713 ] ,
27142714 ] )
27152715
2716- // DiffSidebarPanel has a known a11y issue: <select> nested inside <summary>
2717- // This causes 'nested-interactive' violation. TODO: Fix the component to move
2718- // the select outside of summary or use a different UI pattern.
2719- function filterKnownViolations ( results : AxeResults ) {
2720- return results . violations . filter ( v => v . id !== 'nested-interactive' )
2721- }
2722-
27232716 it ( 'should have no accessibility violations' , async ( ) => {
27242717 const component = await mountSuspended ( DiffSidebarPanel , {
27252718 props : {
@@ -2729,7 +2722,7 @@ describe('component accessibility audits', () => {
27292722 } ,
27302723 } )
27312724 const results = await runAxe ( component )
2732- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2725+ expect ( results . violations ) . toEqual ( [ ] )
27332726 } )
27342727
27352728 it ( 'should have no accessibility violations with selected file' , async ( ) => {
@@ -2742,7 +2735,7 @@ describe('component accessibility audits', () => {
27422735 } ,
27432736 } )
27442737 const results = await runAxe ( component )
2745- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2738+ expect ( results . violations ) . toEqual ( [ ] )
27462739 } )
27472740
27482741 it ( 'should have no accessibility violations with file filter' , async ( ) => {
@@ -2755,7 +2748,7 @@ describe('component accessibility audits', () => {
27552748 } ,
27562749 } )
27572750 const results = await runAxe ( component )
2758- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2751+ expect ( results . violations ) . toEqual ( [ ] )
27592752 } )
27602753
27612754 it ( 'should have no accessibility violations with warnings' , async ( ) => {
@@ -2771,7 +2764,7 @@ describe('component accessibility audits', () => {
27712764 } ,
27722765 } )
27732766 const results = await runAxe ( component )
2774- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2767+ expect ( results . violations ) . toEqual ( [ ] )
27752768 } )
27762769
27772770 it ( 'should have no accessibility violations with no dependency changes' , async ( ) => {
@@ -2787,7 +2780,7 @@ describe('component accessibility audits', () => {
27872780 } ,
27882781 } )
27892782 const results = await runAxe ( component )
2790- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2783+ expect ( results . violations ) . toEqual ( [ ] )
27912784 } )
27922785 } )
27932786
@@ -2818,12 +2811,6 @@ describe('component accessibility audits', () => {
28182811 { path : 'changed.ts' , type : 'modified' as const , oldSize : 200 , newSize : 250 } ,
28192812 ]
28202813
2821- // DiffMobileSidebarDrawer uses DiffSidebarPanel which has a known a11y issue:
2822- // <select> nested inside <summary>. See DiffSidebarPanel tests for details.
2823- function filterKnownViolations ( results : AxeResults ) {
2824- return results . violations . filter ( v => v . id !== 'nested-interactive' )
2825- }
2826-
28272814 it ( 'should have no accessibility violations when closed' , async ( ) => {
28282815 const component = await mountSuspended ( DiffMobileSidebarDrawer , {
28292816 props : {
@@ -2847,7 +2834,7 @@ describe('component accessibility audits', () => {
28472834 } ,
28482835 } )
28492836 const results = await runAxe ( component )
2850- expect ( filterKnownViolations ( results ) ) . toEqual ( [ ] )
2837+ expect ( results . violations ) . toEqual ( [ ] )
28512838 } )
28522839 } )
28532840
0 commit comments