I'm trying to run a cypress (v8.7.0) test where my application takes very long to render the page on the first page load. When I call cy.visit()
, I get an error saying failed trying to load ESOCKETTIMEDOUT
. I tried some of the suggestions mentioned here, such as:
cy.visit('https://github.com/', { timeout: 30000 })
and in cypress.json
{
...
"pageLoadTimeout": 120000
}
However, it still fails. How can I go about this?