CypressError: Timed out after waiting 60000ms
for your remote page to load
#1131
Labels
Issue: Bug 🐛
Added to issues relating to a critical severity bugs.
Product: Files
Testing
Added to issues to signal that it is part of an epic
We have been experiencing sporadic page load timeouts whilst running ui tests in CI. It doesn't seem to be an issue with a specific test.
Below is an example:
https://github.com/ChainSafe/files-ui/pull/1127/checks?check_run_id=2801773985

I have looked into this but haven't found a fix just yet.
Suggestions:
Improvement A
I think cypress is sometimes trying to perform an action (page visit) too quickly, before the browser has had chance to respond to the previous commands (window object creation for ethereum wallet) and this is seen more in CI because it's not as powerful as our development machines.
Perhaps we could add a guard statement, with logging, that checks for the created window object before proceeding to the page visit (not too sure how to write that yet) or at least we could a slight wait statement between the two commands but the former would be better.
I think it could be a similar situation with #1070 too. Cypress commands running too quickly before the browser can respond to a previous one.
Improvement B
After reviewing test.yml / package.json it seems that we are only using
"cypress run"
to execute the tests. According to this doc that will mean we are using Electron by default in CI.We can specify it to use chrome using the command
cypress run --browser chrome
instead. I read online that there are other teams experiencing similar issues with a electron / cypress / ci combo that were resolved by doing this.The text was updated successfully, but these errors were encountered: