DataGrid Component issues #2140
-
Hi team,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @vignesh-sivaprakasam - so sorry for the delayed reply on this. I've shared this with the broader team and we will get back to you very shortly! |
Beta Was this translation helpful? Give feedback.
-
Hey @vignesh-sivaprakasam - Currently Snapshot testing works best with deterministic renders, and the DataGrid is non-deterministic due to the ID generation. Could you share more about why you're hoping to snapshot test the DataGrid itself? The component is fully tested in Paste, so it may not be necessary for you to test it depending on your use case. |
Beta Was this translation helpful? Give feedback.
Hey @vignesh-sivaprakasam -
Currently
onClick
is not supported on the cell because it is used for cell focus, for keyboard support. The current suggested approach is for the element within the cell to have the onClick, but if you could share more about what you're trying to achieve, we can discuss other options if needed.Snapshot testing works best with deterministic renders, and the DataGrid is non-deterministic due to the ID generation. Could you share more about why you're hoping to snapshot test the DataGrid itself? The component is fully tested in Paste, so it may not be necessary for you to test it depending on your use case.