File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1414Then (
1515 / ^ t h e r e s h o u l d b e n o a c c e s s i b i l i t y v i o l a t i o n s d e t e c t e d $ / ,
1616 async function ( ) {
17- await checkNoAccessibilityViolations ( ) ;
17+ await checkNoAccessibilityViolations (
18+ { withAngularStepperException : false , withSalesforceHeaderException : false , withContrastRatioException : true }
19+ ) ;
1820} ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import AxeBuilder from '@axe-core/webdriverio';
66 * incompletes.
77 */
88export default async function checkNoAccessibilityViolations (
9- options = { withAngularStepperException : false , withSalesforceHeaderException : false }
9+ options = { withAngularStepperException : false , withSalesforceHeaderException : false , withContrastRatioException : false }
1010) {
1111 console . log ( 'Running Axe accessibility check...' ) ;
1212
@@ -30,6 +30,11 @@ export default async function checkNoAccessibilityViolations(
3030 builder . exclude ( 'header.lf-header_navigation' ) ;
3131 }
3232
33+ if ( options . withContrastRatioException ) {
34+ // known issue of low contrast in footer
35+ builder . exclude ( '#footer-primary-heading' ) ;
36+ }
37+
3338 const result = await builder . analyze ( ) ;
3439
3540 const violationCount = result . violations . length ;
You can’t perform that action at this time.
0 commit comments