cypress-io / cypress

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

Test runner re-runs automatically after screen unlock #23513

Open emidhun opened 2 years ago

emidhun commented 2 years ago

Current behavior

The test runner re-runs the spec after unlocking the screen.

Desired behavior

Previous test results should be there on the test runner after the unlocking of the screen followed by locking.

Test code to reproduce

Any spec

Cypress Version

10.3.1

Node version

v14.17.3

Operating System

macOS 12.4

Debug Logs

No response

Other

No response

nagash77 commented 2 years ago

@emidhun Can you provide more information about which browser you are seeing this behavior in? Can you try others to see if they behave the same?

Does the problem happen regardless of how long the screen is locked? Do you see this when you lock the screen for a couple seconds? A half hour?

emidhun commented 2 years ago

@nagash77 Regardless of the time spec restart after each unlocking of the screen. Browser: Chrome104 Tested on different mac systems.

emidhun commented 2 years ago

Steps to reproduce:

lmiller1990 commented 2 years ago

I reproduced it. I set my screen to lock after 1 minute and did the above. It was not 100% consistent but I saw it for E2E and CT.

uvindra commented 3 months ago

This issue exists in Cypress 13.8.0 as well on MacOS 14.5, is there any update on this?