You can either install cypress-wait-until for more flexible retries, or use a pure Cypress approach with cy.document().should(...) to ensure retry ability on both elements.