-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[icons] Expose a data-testid attribute on all svg icons #22634
[icons] Expose a data-testid attribute on all svg icons #22634
Conversation
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.
The main review is about using getByTestId
and getAllByTestId
when it's straightforward. I have highlighted a few cases there are more.
@oliviertassinari thanks for the review - did not notice |
@jaebradley Well done :) |
@oliviertassinari thanks for adding the documentation updates! |
Summary
Closes #22622
Replaces the
data-mui-test
attribute on icons with adata-testid
attribute.The
yarn run test
command seemed to pass locally after modifying various assertions that relied on thedata-mui-test
attribute to instead rely on thedata-testid
attribute