Search code examples
automationautomated-testscypress

Cypress - Sorry, we could not load page


I have problem with first visit of my page after publish.

There is test where I want to try if all pages are running so i'm trying to visit them. After publish are all pages slow and are loading quite a long time. It allways end with the same error.

enter image description here

In my cypress.json file is defined parameter pageLoadTimeout for 2 minutes (page is loading max 1 minute).

Do you have some ideas?


Solution

  • I found a solution. I need to always request the page and after that visit it.