Skip to content

Commit 067a26f

Browse files
send report path
1 parent 58c491d commit 067a26f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

accessibility/scanner/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ async function processAccessibilityReport(url) {
100100

101101
try {
102102
let testId = Cypress.env("TEST_ID") || ""
103+
const filePath = Cypress.env("ACCESSIBILITY_REPORT_PATH") || 'cypress/results/accessibilityReport_' + testId + '.json';
103104
console.log("TestID is",testId);
104105
const response = await fetch("http://127.0.0.1:43000/cypress/v1/generateAccessibilityReport", {
105106
method: "POST",
@@ -109,7 +110,8 @@ async function processAccessibilityReport(url) {
109110
body: JSON.stringify({
110111
url: url,
111112
scanData: scanData,
112-
testId :testId
113+
testId :testId,
114+
accessibilityReportPath:filePath
113115
})
114116
});
115117

0 commit comments

Comments
 (0)