Visibility errors when window is hidden during headed mode test execution #4039
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).
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)
Video showing the error:
Cypress: 3.2.0 │