-
Notifications
You must be signed in to change notification settings - Fork 934
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
Would like to have some data-testid attributes on ui components of the datatable #618
Comments
I think it's a good idea to add ids for testing, but maybe we should come up with a standard naming approach first for consistency? I like Do you have any thoughts on this? @gregnb |
I am onboard with whatever approach you all agree on. The standard syntax is data-testid, which is useful to have for helper functions in react-testing-library, so thats the only hill I would die on. Thanks for your quick engagement. |
You're right, it looks like react native set the precedent for Ok, I say go ahead with this, and lets see what you come up with as far as naming conventions for the actual ids. |
I got some work done on this, will be pushing it up on wednesday after I'm done giving a talk. |
Test ids added in |
Hi, I have a mui-datatable that has some custom search functionality that I'd like to test. I've gotten really into the react-testing-library approach of actually testing the component, and am running into issues with being able to select different elements of the datatable. If you'd be okay with it, I'd like to submit a PR to add
data-testid
props to key elements of the component.The text was updated successfully, but these errors were encountered: