File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ cy.window().then((win) => {
8484 let wcagCriteriaValue = Cypress . env ( "WCAG_CRITERIA" ) || "wcag21a" ;
8585 let bestPracticeValue = Cypress . env ( "BEST_PRACTICE" ) || false ;
8686 let needsReviewValue = Cypress . env ( "NEEDS_REVIEW" ) || false ;
87+
88+ bestPracticeValue = bestPracticeValue == "true" ? true : false ;
89+ needsReviewValue = needsReviewValue == "true" ? true : false ;
8790
8891 const payloadToSend = {
8992 message : 'SET_CONFIG' ,
@@ -152,6 +155,15 @@ console.log("after each hook")
152155 let wcagCriteriaValue = Cypress . env ( "WCAG_CRITERIA" ) || "wcag21a" ;
153156 let bestPracticeValue = Cypress . env ( "BEST_PRACTICE" ) || false ;
154157 let needsReviewValue = Cypress . env ( "NEEDS_REVIEW" ) || false ;
158+
159+ bestPracticeValue = bestPracticeValue == "true" ? true : false ;
160+ needsReviewValue = needsReviewValue == "true" ? true : false ;
161+
162+ let isAccessibilityLoaded = Cypress . env ( "ACCESSIBILITY" ) || false ;
163+ if ( ! isAccessibilityLoaded ) {
164+ console . log ( 'log' , "accessibility not enabled " + isAccessibilityLoaded ) ;
165+ return ;
166+ }
155167
156168 const payloadToSend = {
157169 message : 'SET_CONFIG' ,
You can’t perform that action at this time.
0 commit comments