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/GithubAuthButton.jsx #4671

Closed
7 tasks
Tracked by #4014
apburnes opened this issue Nov 20, 2024 · 0 comments · Fixed by #4687
Closed
7 tasks
Tracked by #4014

Add RTL tests to @shared/GithubAuthButton.jsx #4671

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

Comments

@apburnes
Copy link
Contributor

apburnes commented Nov 20, 2024

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

Acceptance Criteria

  • Colocate test file to @shared/GithubAuthButton.test.jsx
  • Test the text is displayed
  • Test the component opens an auth window with the correct url
  • Test the revokeFirst function is called on click
  • Test the onSuccess action gets called success
  • Test the onFailuer action gets called when fail
  • Remove component defaultProps and add the to the component args
apburnes added a commit that referenced this issue Dec 4, 2024
apburnes added a commit that referenced this issue Dec 4, 2024
apburnes added a commit that referenced this issue Dec 4, 2024
apburnes added a commit that referenced this issue Dec 6, 2024
apburnes added a commit that referenced this issue Dec 6, 2024
…utton-4671

chore: Test shared/GithubAuthButton #4671
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