I am stuck with a flex element. I want to click 'Save' element which is a flex element as can be seen from attached dom.
I tried various solutions including one mentioned below by still not working.
cy.get('div.MuiGrid-root.MuiGrid-item.MuiGrid-grid-xs-12.MuiGrid-grid-sm-12.MuiGrid-grid-md-
12.MuiGrid-grid-lg-12')
.eq(2)
.within(() => {
cy.contains('span', 'Save').click()
})
Thanks in advance for helping me find a solution.