File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,19 @@ async function processAccessibilityReport(url) {
102
102
let testId = Cypress . env ( "TEST_ID" ) || ""
103
103
const filePath = Cypress . env ( "ACCESSIBILITY_REPORT_PATH" ) || 'cypress/results/accessibilityReport_' + testId + '.json' ;
104
104
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 , // Ensure scanData already follows the required structure
108
+ axeVersion : scanData . axeVersion
109
+ } ;
110
+ const response = await fetch ( "http://localhost:43000/api/v1.0/cypress/generateAccessibilityReport" , {
106
111
method : "POST" ,
107
112
headers : {
108
113
"Content-Type" : "application/json"
109
114
} ,
110
115
body : JSON . stringify ( {
111
116
url : url ,
112
- scanData : scanData ,
117
+ scanData : payload ,
113
118
testId :testId ,
114
119
accessibilityReportPath :filePath
115
120
} )
You can’t perform that action at this time.
0 commit comments