Skip to content

Commit 5939cdd

Browse files
modify payload
1 parent e576df4 commit 5939cdd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

accessibility/scanner/index.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,14 @@ async function processAccessibilityReport(url) {
102102
let testId = Cypress.env("TEST_ID") || ""
103103
const filePath = Cypress.env("ACCESSIBILITY_REPORT_PATH") || 'cypress/results/accessibilityReport_' + testId + '.json';
104104
console.log("TestID is",testId);
105-
const payload = {
106-
message: "GET_LATEST_SCAN_DATA",
107-
data: scanData.data,
108-
axeVersion: scanData.axeVersion
109-
};
110105
const response = await fetch("http://localhost:43000/api/v1.0/cypress/generateAccessibilityReport", {
111106
method: "POST",
112107
headers: {
113108
"Content-Type": "application/json"
114109
},
115110
body: JSON.stringify({
116-
url: url,
117-
scanData: payload,
118111
testId :testId,
112+
scanData: scanData,
119113
accessibilityReportPath:filePath
120114
})
121115
});

0 commit comments

Comments
 (0)