-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Added tests for FluidTimePicker #17541
Added tests for FluidTimePicker #17541
Conversation
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17541 +/- ##
==========================================
+ Coverage 76.95% 77.14% +0.18%
==========================================
Files 408 409 +1
Lines 13979 14024 +45
Branches 4291 4359 +68
==========================================
+ Hits 10758 10819 +61
+ Misses 3048 3035 -13
+ Partials 173 170 -3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome! Just one small thing
</FluidTimePicker> | ||
); | ||
|
||
fireEvent.click(screen.getByRole('textbox')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this use userEvent
instead? It more realistically simulates the interaction, see here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending Taylor's comment.
348b3b5
Hey there! v11.68.0 was just released that references this issue/PR. |
* test: added tests for FluiTimePicker * fix: changed from fireevent to userevent
Closes #17516
Added tests for FluiTimePicker
Testing / Reviewing