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

[DataGrid] Fix column width calculation after data changes #756

Merged
merged 12 commits into from
Dec 22, 2020

Conversation

DanailH
Copy link
Member

@DanailH DanailH commented Dec 18, 2020

Fixes #708
Fixes #716

Also added a test to cover the case.

@DanailH DanailH added bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! labels Dec 18, 2020
@DanailH DanailH self-assigned this Dec 18, 2020

render(<Test />);

await sleep(100);
Copy link
Member

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.

Copy link
Member

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.

@DanailH DanailH merged commit 8dc0c09 into mui:master Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
3 participants