-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[DataGridPro] Fix crash when using pinnedRows
+ getRowClassName
props and rows=[]
#5851
[DataGridPro] Fix crash when using pinnedRows
+ getRowClassName
props and rows=[]
#5851
Conversation
These are the results for the performance tests:
|
eee5c90
to
f5abc74
Compare
expect(getRowById(0)!.classList.contains(className)).to.equal(true); | ||
expect(getRowById(1)!.classList.contains(className)).to.equal(true); |
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.
Much simpler.
expect(getRowById(0)!.classList.contains(className)).to.equal(true); | |
expect(getRowById(1)!.classList.contains(className)).to.equal(true); | |
expect(getRowById(0)!).to.have.class(className); | |
expect(getRowById(1)!).to.have.class(className); |
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.
I did this intentionally to have meaningful error message when test fails.
See #3607 (comment)
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.
I've commented the related issue in mocha: mochajs/mocha#4910
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.
Once mocha fixes this issue we can use the other syntax here, keeping the same convention like other tests.
cd16a06
to
298be49
Compare
…rops and `rows=[]` (mui#5851)
Fixes #5845