you can use get() like querySelector:
let selector = 'svg.MuiIconButton-root'
cy.get(selector).click()
Finding the card with name 'cypress' and clicking the edit button
cy.contains('.MuiCardContent-root', 'cypress').within(() => {
cy.get('svg.MuiSvgIcon-root').eq(0) // 1st button is edit
.click()
})
You can right click on the element in your dev tools and copy the selector then do:
cy.get('selector').click()