There is a Cypress bug, that every ~100 tests cy.visit()
does not load the page and the test fails after 60s of waiting.
Cypress support can't help, because they want a reliable way to reproduce it, and obviously I can't give it to them in this case.
I wanted to do this:
call .visit() and give it a timeout of 15s, if it times out, call the command again or retry the test.
I know there is a cypress-plugin-retries library, but I don't think I can retry based only on one command timing out, at least I didn't find a way to do that.
Anyone has any ideas on how could I handle it?