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

SFR-1780: Replace fireEvent with userEvent #445

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

jackiequach
Copy link
Collaborator

Jira Ticket

This PR does the following:

  • Replace fireEvent with userEvent

Testing requirements & instructions:

@vercel
Copy link

vercel bot commented Sep 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sfr-bookfinder-front-end ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2023 2:18pm

Copy link
Contributor

@samanthaandrews samanthaandrews left a comment

Choose a reason for hiding this comment

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

This looks great!

Something I noticed is that there is a custom render function that we're using in Search.test.tsx and Collection.test.tsx, but not using in our other tests. I think we should always be using the custom render function, since this is what RTL recommends in their docs, https://testing-library.com/docs/react-testing-library/setup#custom-render. Can you create another ticket for this change?

@jackiequach jackiequach merged commit 02757ca into development Sep 29, 2023
6 checks passed
@jackiequach jackiequach deleted the SFR-1780_replace_fireEvent branch September 29, 2023 14:36
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