test: add test cases for WC layer componenet#19824
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #19824 +/- ##
=======================================
Coverage 84.80% 84.80%
=======================================
Files 369 369
Lines 14711 14711
Branches 4847 4847
=======================================
Hits 12475 12475
Misses 2088 2088
Partials 148 148 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
riddhybansal
left a comment
There was a problem hiding this comment.
LGTM !! Just few minor refactoring.
| @@ -0,0 +1,150 @@ | |||
| /** | |||
| * Copyright IBM Corp. 2019, 2023 | |||
There was a problem hiding this comment.
Copyright IBM Corp. 2025
|
|
||
| it('should render', async () => { | ||
| const el = await fixture(basicLayer); | ||
| await expect(el).dom.to.equalSnapshot(); |
There was a problem hiding this comment.
We dont need snapshots anymore so may be you can remove this await expect(el).dom.to.equalSnapshot();line and remove snapshot folder
Gururajj77
left a comment
There was a problem hiding this comment.
After these changes are done, its good for merging
|
Hey there! v11.86.0 was just released that references this issue/PR. |
Closes #19705
Add web component
layertests and snapshot.Changelog
New
Add web component
layertests and snapshot.Testing / Reviewing
Should pass ci / web-components-test workflow in PR checks.
PR Checklist
As the author of this PR, before marking ready for review, confirm you:
- [ ] Updated documentation and storybook examples- [ ] Addressed any impact on accessibility (a11y)- [ ] Tested for cross-browser consistencyMore details can be found in the pull request guide