Cypress cy.screenshot() timeout during `cypress run`

See original GitHub issue

Current 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:open
  • Created 4 years ago
  • Reactions:32
  • Comments:131 (11 by maintainers)

github_iconTop GitHub Comments

18reactions
Arunk28commented, Nov 23, 2021

CypressError: cy.screenshot() timed out waiting 30000ms to 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

9reactions
alexbjorligcommented, Feb 9, 2020

I just upgraded Cypress to 4.0.1, and we now started to see tests failing on Github Actions with screenshot() timeout warning 😢

Read more comments on GitHub >

github_iconTop Results From Across the Web

screenshot - Cypress Documentation
Because cy.screenshot() is asynchronous it is technically possible for there to be a timeout while talking to the internal Cypress automation APIs. But...
Read more >
I need for Cypress screenshot to wait until after the second ...
When runner, the entire browser viewport, including the Cypress Command Log, is captured. For screenshots automatically taken on test ...
Read more >
Cypress 8.6.0 adds overwrite option to cy.screenshot
Cypress introduced the overwrite:true as an option to cy.screenshot() command to overwrite existing screenshots with the same file name.
Read more >
cypress-io/cypress - Gitter
The error message I am getting: CypressError: cy.screenshot() timed out waiting '30000ms' to complete. The command I run in codeship: cypress run --record ......
Read more >
Cypress cy.screenshot() timeout during `cypress run`
Cypress cy.screenshot() timeout during `cypress run`
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found