cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.09k stars 3.19k forks source link

Electron app stuck on "Your tests are loading..." on Mac wakeup #30618

Open tony-g opened 1 week ago

tony-g commented 1 week ago

Current behavior

The electron app seems to be getting stuck on "Your tests are loading..." when waking up from sleep on Mac 14.7.1.

Repro steps:

  1. Clone cypress-test-tiny
  2. cypress open
  3. Run the E2E tests in Electron
  4. Run a spec
  5. Put your Mac to sleep and wake it up (duration doesn't seem to matter)
  6. The app shows "Your test are loading..." on end
    • Editing the tests doesn't seem to help
    • Neither does choosing another spec
    • Things do work after closing and reopening the Electron window
image

Desired behavior

This doesn't repro with Cypress 13.2.0, where tests run just fine upon wake up, with no need to open and close the window.

If that's no longer possible for some reason, it would be more convenient if there was a single button I could press to reset things (which maybe I've missed) rather than having to open and close the window and navigate back to the spec.

I also tried with several versions to try to see when the issue started and it seems to be 13.5.0:

Test code to reproduce

Repros with https://github.com/cypress-io/cypress-test-tiny

Cypress Version

13.15.2

Node version

18.17.1

Operating System

macOS 14.7.1

Debug Logs

No response

Other

No response