Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions accessibility/scanner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,19 @@ async function processAccessibilityReport(url) {
let testId = Cypress.env("TEST_ID") || ""
const filePath = Cypress.env("ACCESSIBILITY_REPORT_PATH") || 'cypress/results/accessibilityReport_' + testId + '.json';
console.log("TestID is",testId);
const response = await fetch("http://127.0.0.1:43000/api/v1.0/cypress/generateAccessibilityReport", {
const payload = {
message: "GET_LATEST_SCAN_DATA",
data: scanData.data,
axeVersion: scanData.axeVersion
};
const response = await fetch("http://localhost:43000/api/v1.0/cypress/generateAccessibilityReport", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
url: url,
scanData: scanData,
scanData: payload,
testId :testId,
accessibilityReportPath:filePath
})
Expand Down Expand Up @@ -147,7 +152,4 @@ commandsToOverride.forEach((command) => {
});
});

// AI:
// mutliple it()
// make error in set scan & get scan and ensure it doesnt break flow
// virgin media repo run rishabh singh (hyperex)