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

[test] Force hover in headless Chrome #15710

Merged

Conversation

cherniavskii
Copy link
Member

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.

@cherniavskii cherniavskii added test core Infrastructure work going on behind the scenes labels Dec 3, 2024
@mui-bot
Copy link

mui-bot commented Dec 3, 2024

Deploy preview: https://deploy-preview-15710--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 9f4d2e9

@cherniavskii cherniavskii added needs cherry-pick The PR should be cherry-picked to master after merge v7.x labels Dec 3, 2024
@cherniavskii cherniavskii marked this pull request as ready for review December 3, 2024 11:11
@cherniavskii cherniavskii merged commit cd8d5fd into mui:master Dec 3, 2024
26 checks passed
@cherniavskii cherniavskii deleted the consistent-tests-in-ci-and-local branch December 3, 2024 11:11
Copy link
Member

@JCQuintas JCQuintas left a 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 👍

Copy link

github-actions bot commented Dec 3, 2024

Cherry-pick PRs will be created targeting branches: v7.x

@cherniavskii
Copy link
Member Author

The previous logic ran correctly on Ubuntu locally as well, so it might be an inconsistent behaviour between systems? A bit odd.

Yes, desktop Ubuntu has hover capabilities (mouse/trackpad). On the server, there's none.

@JCQuintas
Copy link
Member

My point was that it ran on ubuntu headless (WSL) properly, but failed on osx headless 😅

LukasTy pushed a commit to LukasTy/mui-x that referenced this pull request Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes needs cherry-pick The PR should be cherry-picked to master after merge test v7.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants