Skip to content

Commit c7390e2

Browse files
committed
added custom report path
1 parent 358fa83 commit c7390e2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

accessibility/plugin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const Accessibility = (on, config) => {
6262
config.env.WCAG_CRITERIA= process.env.WCAG_CRITERIA;
6363
config.env.BEST_PRACTICE= process.env.BEST_PRACTICE;
6464
config.env.NEEDS_REVIEW= process.env.NEEDS_REVIEW;
65-
65+
config.env.ACCESSIBILITY_REPORT_PATH = process.env.ACCESSIBILITY_REPORT_PATH;
6666

6767
return config;
6868
}

accessibility/scanner/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ cy.window().then((win) => {
127127
needsReview: needsReviewValue
128128
}
129129
let testId = Cypress.env("TEST_ID") || ""
130-
const filePath = 'cypress/reports/accessibilityReport_' + testId + '.json';
130+
// const filePath = 'cypress/reports/accessibilityReport_' + testId + '.json';
131+
const filePath = Cypress.env(ACCESSIBILITY_REPORT_PATH) || 'cypress/results/accessibilityReport_' + testId + '.json';
131132

132133
cy.wrap(setScanConfig(win, payloadToSend), {timeout: 30000}).then((res) => {
133134
// LambdatestLog('log', "logging report **************")

0 commit comments

Comments
 (0)