Skip to content

throw an error if the test window is hidden #2461

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

Merged
merged 1 commit into from
Mar 8, 2018
Merged

Conversation

alexcjohnson
Copy link
Collaborator

...when we try to emit a mouse event, which the browser may ignore if it's hidden

@etpinard this would have alerted me a bit quicker yesterday why my tests were failing sporadically 😅

Error: document.visibilityState = "hidden" - Please make the window visible.

when we try to emit a mouse event, which the browser may ignore if it's hidden
@etpinard
Copy link
Contributor

etpinard commented Mar 8, 2018

Smart. 💃

@alexcjohnson alexcjohnson merged commit 4acf868 into master Mar 8, 2018
@alexcjohnson alexcjohnson deleted the ensure-visibility branch March 8, 2018 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants