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] Use mock for ResizeObserver #5215

Merged
merged 3 commits into from
Jun 21, 2022

Conversation

m4theushw
Copy link
Member

@m4theushw m4theushw commented Jun 15, 2022

The tests for dynamic row height kept failing after merging #5203. The problem is the same from #5095: all pass in headless mode but some fail in the non-headless Chrome. In this PR I take another approach by replacing ResizeObserver for a mocked version. It seem to have worked in https://app.circleci.com/pipelines/github/mui/mui-x/19851/workflows/d4541c25-0fd8-489c-bf0a-acaaf01e2e25/jobs/115292

@m4theushw m4theushw added the test label Jun 15, 2022
@mui-bot
Copy link

mui-bot commented Jun 15, 2022

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 247 635.9 383 406.5 149.702
Sort 100k rows ms 467.1 869.7 734.2 724.6 139.698
Select 100k rows ms 102.9 194.9 180.3 168.28 33.825
Deselect 100k rows ms 142.6 295.6 144.8 184.54 59.202

Generated by 🚫 dangerJS against b45646c

@m4theushw m4theushw force-pushed the mock-resize-observer branch from 81374e5 to f7df3fc Compare June 15, 2022 19:43
@m4theushw m4theushw requested a review from cherniavskii June 15, 2022 20:38
@m4theushw m4theushw marked this pull request as ready for review June 16, 2022 13:15
@m4theushw m4theushw merged commit 5f9c96c into mui:master Jun 21, 2022
@m4theushw m4theushw deleted the mock-resize-observer branch June 21, 2022 22:13
joserodolfofreitas pushed a commit to joserodolfofreitas/mui-x that referenced this pull request Jul 15, 2022
alexfauquette pushed a commit to alexfauquette/mui-x that referenced this pull request Aug 26, 2022
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