-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[test] Force hover in headless Chrome #15710
[test] Force hover in headless Chrome #15710
Conversation
Deploy preview: https://deploy-preview-15710--material-ui-x.netlify.app/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous logic ran correctly on Ubuntu locally as well, so it might be an inconsistent behaviour between systems? A bit odd.
This is a nice find though 👍
Cherry-pick PRs will be created targeting branches: v7.x |
Yes, desktop Ubuntu has hover capabilities (mouse/trackpad). On the server, there's none. |
My point was that it ran on ubuntu headless (WSL) properly, but failed on osx headless 😅 |
Fixes inconsistencies we had in a few tests, where tests were passing in CI, but failing locally or vice versa.
It turns out, that the headless Chrome in Circle CI had no hover capabilities, therefore it was applying
@media (hover: none)
styles, while locally it applied@media (hover: hover)
styles.Adding
primaryHoverType=2
enables hover capabilities for the headless Chrome in CI.