Cypress cy.screenshot() timeout during `cypress run`
See original GitHub issueCurrent behavior:
All of our tests pass locally, but when running the Codeship CI we get errors for a few tests.
The error during Codeship CI builds: CypressError: cy.screenshot() timed out waiting '30000ms' to complete.
Desired behavior:
All tests pass in Codeship CI
Steps to reproduce:
For our app the reproduction is running the ci:codeship command runs which calls cy:record
"cy:record": "cypress run --record --key *key* --config video=false", "ci:codeship": "start-server-and-test start http://localhost:5000 cy:record"
I’m not exactly sure how to reproduce this other than creating a Codeship Basic app and attempting to run tests there. I have seen a few other issues point to a problem with how Cypress and Codeship interact.
Versions
Cypress version: 3.4.1
Sidenote: We are using the cypress-autorecord package, but it doesn’t seem like this is involved.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:32
- Comments:131 (11 by maintainers)
Top Related StackOverflow Question
CypressError:
cy.screenshot()timed out waiting30000msto complete.version :8.7.0
occurs frequently in all the suites why this is open for years ?
can anyone please take this as priority and fix it it will be helpful for many
@jennifer-shehane
I just upgraded Cypress to
4.0.1, and we now started to see tests failing on Github Actions with screenshot() timeout warning 😢