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 tests for SearchField component #1098

Conversation

VinayakaHegade
Copy link
Member

@VinayakaHegade VinayakaHegade commented Jan 30, 2024

Date: 31 Jan 2024

Developer Name: @VinayakaHegade


Issue Ticket Number

closes #1092

Description

This PR adds tests for SearchField component created as part of calendar feature in status site.

@testing-library/user-event package has been added to test interactions. Was facing issues similar to issues mentioned in the below links with fireEvent, so used userEvent.
fireEvent.change not always firing on sequential calls
Onchange event not being fired when using fireEvent.change

Why it is recommended to use user-event to test interactions instead of fireEvent

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Test Coverage

coverage
input-coverage
cases

Additional Notes

Copy link

vercel bot commented Jan 30, 2024

@VinayakaHegade is attempting to deploy a commit to the RDS-Team Team on Vercel.

A member of the Team first needs to authorize it.

@VinayakaHegade VinayakaHegade marked this pull request as ready for review January 31, 2024 06:00
@VinayakaHegade VinayakaHegade changed the title test: add tests for UserSearchField component Add tests for UserSearchField component Jan 31, 2024
@VinayakaHegade VinayakaHegade changed the title Add tests for UserSearchField component Add tests for SearchField component Jan 31, 2024
@iamitprakash iamitprakash merged commit 544da84 into Real-Dev-Squad:I-1089/userStatusCalendar Feb 1, 2024
1 check failed
@lakshayman lakshayman mentioned this pull request Feb 3, 2024
10 tasks
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.

None yet

2 participants