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] Make conformance tests work with async render function #43156

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

michaldudak
Copy link
Member

The flushMicrotasks function was incorrectly skipped during browser (karma) tests. I initially thought that the errors it throws on this environment are caused by specifics of karma. However, it turns out these errors were valid and indicated a bigger problem - the lack of support for async render functions in conformance tests.
This PR fixes both the flushMicrotasks function, making it run regardless of the environment, and conformance tests, to support async render functions (required in Menu and Select tests, plus many more in the future once @base_ui/react is used).

@michaldudak michaldudak added test scope: code-infra Specific to the core-infra product labels Aug 2, 2024
@michaldudak michaldudak requested review from DiegoAndai and a team August 2, 2024 18:53
@mui-bot
Copy link

mui-bot commented Aug 2, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against f4b4d74

@michaldudak michaldudak enabled auto-merge (squash) August 5, 2024 09:17
@michaldudak michaldudak merged commit 9f940a6 into mui:next Aug 5, 2024
26 checks passed
@michaldudak michaldudak deleted the fix-flushMicrotasks branch August 5, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: code-infra Specific to the core-infra product test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants