Skip to content

Commit 03ff4fc

Browse files
Merge pull request #361 from abhishek-lambda/AT-281
At 281
2 parents 771af0d + e576df4 commit 03ff4fc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

accessibility/scanner/index.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,19 @@ 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 response = await fetch("http://127.0.0.1:43000/api/v1.0/cypress/generateAccessibilityReport", {
105+
const payload = {
106+
message: "GET_LATEST_SCAN_DATA",
107+
data: scanData.data,
108+
axeVersion: scanData.axeVersion
109+
};
110+
const response = await fetch("http://localhost:43000/api/v1.0/cypress/generateAccessibilityReport", {
106111
method: "POST",
107112
headers: {
108113
"Content-Type": "application/json"
109114
},
110115
body: JSON.stringify({
111116
url: url,
112-
scanData: scanData,
117+
scanData: payload,
113118
testId :testId,
114119
accessibilityReportPath:filePath
115120
})
@@ -147,7 +152,4 @@ commandsToOverride.forEach((command) => {
147152
});
148153
});
149154

150-
// AI:
151-
// mutliple it()
152-
// make error in set scan & get scan and ensure it doesnt break flow
153-
// virgin media repo run rishabh singh (hyperex)
155+

0 commit comments

Comments
 (0)