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

fix: increase test coverage for ToggleTip #17661

Merged
merged 4 commits into from
Oct 9, 2024

Conversation

2nikhiltom
Copy link
Contributor

Closes #17498

This PR increases test coverage got ToggleTip

Changelog

Added new test cases

Testing / Reviewing

Test coverage should increase
Verify that test makes sense

@2nikhiltom 2nikhiltom requested a review from a team as a code owner October 7, 2024 09:07
Copy link

netlify bot commented Oct 7, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 29ae473
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6706af412b0c380008e6d35d
😎 Deploy Preview https://deploy-preview-17661--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 7, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 29ae473
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6706af42fe4e0f0009e36959
😎 Deploy Preview https://deploy-preview-17661--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.50%. Comparing base (7073e7a) to head (29ae473).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17661      +/-   ##
==========================================
+ Coverage   77.36%   77.50%   +0.14%     
==========================================
  Files         409      409              
  Lines       14077    14077              
  Branches     4344     4372      +28     
==========================================
+ Hits        10890    10911      +21     
+ Misses       3017     2997      -20     
+ Partials      170      169       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ariellalgilmore ariellalgilmore left a comment

Choose a reason for hiding this comment

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

just some placs using fireevent where I think we can use userEvent, but otherwise looks good!

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me!

@alisonjoseph alisonjoseph added this pull request to the merge queue Oct 9, 2024
Merged via the queue into carbon-design-system:main with commit 9d1822c Oct 9, 2024
36 checks passed
annawen1 pushed a commit to annawen1/carbon that referenced this pull request Oct 11, 2024
* fix: increase test coverage for ToggleTip

* refactor: userEvent over fireEvent

---------

Co-authored-by: Alison Joseph <alison.joseph@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase Toggletip unit test coverage
5 participants