Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress screenshot error since Chrome 107 #227

Open
Phonesis opened this issue Jul 20, 2023 · 0 comments
Open

Cypress screenshot error since Chrome 107 #227

Phonesis opened this issue Jul 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Phonesis
Copy link

Not sure if this is specifically the version but I not been able to successfully run the Lighthouse audit with Cypress since Chrome 106.

This img is the last one that I know works for us:

'cypress/browsers:node18.12.0-chrome106-ff106'

Any Chrome version later than this appears to error once the audit function completes / tears down with:

CypressError: `cy.screenshot()` timed out waiting `30000ms` to complete. at http://localhost:3000/__cypress/runner/cypress_runner.js:149484:81 at tryCatcher (http://localhost:3000/__cypress/runner/cypress_runner.js:18744:23) at http://localhost:3000/__cypress/runner/cypress_runner.js:13866:41 at tryCatcher (http://localhost:3000/__cypress/runner/cypress_runner.js:18744:23) at Promise._settlePromiseFromHandler (http://localhost:3000/__cypress/runner/cypress_runner.js:16679:31) at Promise._settlePromise (http://localhost:3000/__cypress/runner/cypress_runner.js:16736:18) at Promise._settlePromise0 (http://localhost:3000/__cypress/runner/cypress_runner.js:16781:10) at Promise._settlePromises (http://localhost:3000/__cypress/runner/cypress_runner.js:16857:18) at _drainQueueStep (http://localhost:3000/__cypress/runner/cypress_runner.js:13451:12) at _drainQueue (http://localhost:3000/__cypress/runner/cypress_runner.js:13444:9) at ../../node_modules/bluebird/js/release/async.js.Async._drainQueues (http://localhost:3000/__cypress/runner/cypress_runner.js:13460:5) at Async.drainQueues (http://localhost:3000/__cypress/runner/cypress_runner.js:13330:14)

The report is still generated, with metrics. However, the test does not fail gracefully due to the above.

This occurs regardless of wether running headlessly or not and am using the latest version of Cypress (12.16)

@Phonesis Phonesis added the bug Something isn't working label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant