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 test to @shared/ButtonLink.jsx #4672

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

Add RTL test to @shared/ButtonLink.jsx #4672

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

Comments

@apburnes
Copy link
Contributor

apburnes commented Nov 20, 2024

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

Acceptance Criteria

  • Colocate test file to @shared/ButtonLink.test.jsx
  • Test the children render as expected
  • Test the clickHandler is called on click
  • Test the className is applied
  • 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