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] Remove userAgent override in jsdom env #42344

Merged
merged 1 commit into from
May 23, 2024

Conversation

cherniavskii
Copy link
Member

Fixes https://github.com/mui/mui-x/pull/13191/files#r1610484570

window.navigator.userAgent and navigator.userAgent should be equal.

@mui-bot
Copy link

mui-bot commented May 22, 2024

Netlify deploy preview

https://deploy-preview-42344--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 1919ad5

@cherniavskii cherniavskii requested a review from a team May 22, 2024 19:13
@cherniavskii cherniavskii merged commit 1f86f90 into mui:next May 23, 2024
20 checks passed
@cherniavskii cherniavskii deleted the remove-userAgent-override-jsdom branch May 23, 2024 08:59
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we are doing this exactly ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We skip some tests in JSDOM because of the missing APIs, hence we need to know when the test is running in JSDOM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants