Skip to content
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

Add RTL tests to @shared/UsaIcon.jsx #4668

Closed
6 tasks done
Tracked by #4014
apburnes opened this issue Nov 20, 2024 · 0 comments · Fixed by #4698
Closed
6 tasks done
Tracked by #4014

Add RTL tests to @shared/UsaIcon.jsx #4668

apburnes opened this issue Nov 20, 2024 · 0 comments · Fixed by #4698
Assignees

Comments

@apburnes
Copy link
Contributor

apburnes commented Nov 20, 2024

Add a test to @shared/UsaIcon.jsx using the RTL framework. See our docs for writing frontend tests.

Acceptance Criteria

  • Colocate test file to @shared/UsaIcon.test.jsx
  • Test the icon is showing as expected
  • Test when the icon is focusable
  • Test the size property
  • Test the role property
  • Remove component defaultProps and add the to the component args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants