-
Notifications
You must be signed in to change notification settings - Fork 6
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
DSD-1121: SVG testing update #1710
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Great, thanks! Was this package always installed so you didn't have to add it to package.json
?
I don't think all components need to test the SVGs they render, but I think more components can use the data-file-name
confirmation test. For example, Accordion
could use it but that's not needed for MultiSelect
or FilterBarInline
because those use Accordion
s internally. It's not necessary for this PR since it wasn't requested to update all tests, but we should aim to update other component tests later on.
…tem into DSD-1121/svgr-spike
I think so, but since we were including
Added |
Yes, I'm also thinking about whether we should just write tests or if they're redundant since the |
Fixes JIRA ticket DSD-1121
This PR does the following:
jest-transformer-svg
packagedata-file-name
prop generated in the SVG mock (closest we can get to testing that the correct icon is being displayed)Icon
,Logo
,SocialMediaLinks
,Banner
How has this been tested?
Accessibility concerns or updates
Accessibility Checklist
aria-live
is used, a screenreader was used to verify the text is read.ref
s, focus management was reviewed.Open Questions
Checklist:
Front End Review: