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

Visibility errors when window is hidden during headed mode test execution #4039

Closed
agualis opened this issue Apr 26, 2019 · 4 comments

Comments

3 participants
@agualis
Copy link

commented Apr 26, 2019

Current behavior:

Cypress tests fail when the browser is not focused in "run headed" mode.

This kind of problem is always related with components with animations and overlays like modals, popups or sticky headers. (this example shows the problem with sweet alert library).

Desired behavior:

The tests should be deterministic no matter the execution mode and the browser focus state.

Steps to reproduce: (app code and test code)

Repository to reproduce the problem (check readme to follow instructions)
https://github.com/agualis/flaky-swal-cypress

Video showing the error:
https://github.com/agualis/flaky-swal-cypress/blob/master/flaky-cypress-test.mov

Versions

Cypress: 3.2.0 │
Browser: Chrome 73
OS: macOS Mojave

@Bkucera

This comment has been minimized.

Copy link
Member

commented Apr 26, 2019

Hi @agualis, I believe this will be fixed in #2982

@cypress-bot

This comment has been minimized.

Copy link

commented Jun 11, 2019

The code for this is done in cypress-io/cypress#2982, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@jennifer-shehane

This comment has been minimized.

Copy link
Member

commented Jun 19, 2019

I'm actually unable to reproduce this from the repo provided as is so I can't confirm if 3.3.2 release fixes this. @Bkucera did you reproduce?

@cypress-bot

This comment has been minimized.

Copy link

commented Jun 27, 2019

Released in 3.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.