As I am new to this UI automation/cypress world, need help to setting up the assertion on javascript object return by cypress-ag-grid package
My code is reading ag-grid data
cy.get("#myGrid").getAgGridData().should((data)=>{
cy.log(data)
})
Which is printing below object in console
[
{ id: 1, name: "tata", saftyRating: "50" },
{ id: 2, name: "maruti", saftyRating: "50" },
{ id: 3, name: "ford", saftyRating: "45" }
]
What all I want to iterate the safety rating value and put cypress assertion that value is greater than 50