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

web: refactor ApiButton tests to use react-testing-library instead of enzyme #5691

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

lizzthabet
Copy link
Contributor

I'm sorry this diff is massively large. 😅 All the tests should be the same, both in title and what they're testing! Some are shorter because RTL has more concise interfaces for stuff like user events, and some are longer because I used more robust assertions, expect().toBeInDocument() and expect().toHaveValue(), and it can be wordier to query by label text.

@lizzthabet lizzthabet self-assigned this Apr 13, 2022
Copy link
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lizzthabet lizzthabet merged commit 23c473a into master Apr 18, 2022
@lizzthabet lizzthabet deleted the lizz/chore/rtl-migration-api-button branch April 18, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants