Title says it all, I can't figure out how can I do something like

Get .card that has button with attribute id=random (the code should return the card and retry the whole process until found, ex: if it finds a card but not a button with that id it should look redo the .carda search)

How I tought it would work but actually doesnt because doesnt retry the .get and if the .find succedes it returns the button

`cy.get(".card").find("button[id=random]")`