Seeking guidance as I navigate the world of UI automation and Cypress, specifically in setting up assertions on JavaScript objects returned by the cypress-ag-grid package
Currently, my code is extracting data from ag-grid
cy.get("#myGrid").getAgGridData().should((data)=>{
cy.log(data)
})
This code snippet outputs the following object in the console
[
{ id: 1, name: "tata", safetyRating: "50" },
{ id: 2, name: "maruti", safetyRating: "50" },
{ id: 3, name: "ford", safetyRating: "45" }
]
I am looking to iterate over the safety rating values and assert in Cypress that the value is greater than 50