Skip to content

Commit 58c491d

Browse files
send testId in payload
1 parent 35769d3 commit 58c491d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

accessibility/scanner/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,17 @@ async function processAccessibilityReport(url) {
9999
console.log("Logging response before sending to API:", scanData);
100100

101101
try {
102+
let testId = Cypress.env("TEST_ID") || ""
103+
console.log("TestID is",testId);
102104
const response = await fetch("http://127.0.0.1:43000/cypress/v1/generateAccessibilityReport", {
103105
method: "POST",
104106
headers: {
105107
"Content-Type": "application/json"
106108
},
107109
body: JSON.stringify({
108110
url: url,
109-
scanData: scanData
111+
scanData: scanData,
112+
testId :testId
110113
})
111114
});
112115

0 commit comments

Comments
 (0)