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] Fix failing test_browser in edge #16688

Merged
merged 6 commits into from
Jul 22, 2019

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jul 22, 2019

Closes #16683

Replaces sinon#useFakeTimers with async utilities from @testing-library/react.

It already timed out just by calling useFakeTimers in beforeEach and restoring it in afterEach.

I suspect it has to do with performance.now usage in Menu. It's not as a meaningful of a test as before but it's better than not testing at all. We can't guarentee exact timings in actual applications anyway.

@eps1lon eps1lon added the test label Jul 22, 2019
@mui-pr-bot
Copy link

mui-pr-bot commented Jul 22, 2019

No bundle size changes comparing 95522aa...614bf63

Generated by 🚫 dangerJS against 614bf63

@eps1lon eps1lon marked this pull request as ready for review July 22, 2019 20:41
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

👏👏

@eps1lon eps1lon merged commit 35d1c4a into mui:master Jul 22, 2019
@eps1lon eps1lon deleted the test/fix-menu-test-edge branch July 22, 2019 21:27
@eps1lon eps1lon changed the title [test] Fix failing test_browser [test] Fix failing test_browser in edge Jul 22, 2019
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.

3 participants