-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[DataGrid] Fix column width calculation after data changes #756
[DataGrid] Fix column width calculation after data changes #756
Conversation
|
||
render(<Test />); | ||
|
||
await sleep(100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you try to replace this sleep with a setProps
? Sleep make tests flaky and slow, exactly what we hate the most about tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the current setup, 500 tests would run in about 40s (by extrapolation). If all the tests add 100ms, we would x2 the duration. It's not negligeable.
Fixes #708
Fixes #716
Also added a test to cover the case.