mfrachet/cypress-audit

Cypress screenshot error since Chrome 107

Opened this issue · 0 comments

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)