Skip to content

Commit 24c3618

Browse files
"bestPractice Value"
1 parent 41fb200 commit 24c3618

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

accessibility/scanner/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ cy.window().then((win) => {
8585
let wcagCriteriaValue = Cypress.env("WCAG_CRITERIA") || "wcag21a";
8686
let bestPracticeValue = Cypress.env("BEST_PRACTICE") || false;
8787
let needsReviewValue = Cypress.env("NEEDS_REVIEW") || true;
88-
88+
bestPracticeValue = bestPracticeValue == "true" ? true : false;
89+
needsReviewValue = needsReviewValue == "true" ? true : false;
8990
const payloadToSend = {
9091
message: 'SET_CONFIG',
9192
wcagCriteria: wcagCriteriaValue,
@@ -95,7 +96,7 @@ cy.window().then((win) => {
9596
let testId = Cypress.env("TEST_ID") || ""
9697

9798
const filePath = Cypress.env("ACCESSIBILITY_REPORT_PATH") || 'cypress/results/accessibilityReport_' + testId + '.json';
98-
99+
console.log('payload to send',payloadToSend);
99100
cy.wrap(setScanConfig(win, payloadToSend), {timeout: 30000}).then((res) => {
100101
console.log('logging config reponse', res);
101102

0 commit comments

Comments
 (0)