-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat: Adds test id to side navigation #2972
feat: Adds test id to side navigation #2972
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2972 +/- ##
=======================================
Coverage 96.25% 96.25%
=======================================
Files 768 768
Lines 21750 21754 +4
Branches 7434 7378 -56
=======================================
+ Hits 20935 20939 +4
+ Misses 807 762 -45
- Partials 8 53 +45 ☔ View full report in Codecov by Sentry. |
73bd00a
to
b0990f5
Compare
@@ -22,18 +22,26 @@ it('Side navigation with all possible items', async () => { | |||
type: 'link', | |||
text: 'Page 1', | |||
href: '#/page1', | |||
// this test id deliberately contains double quotes | |||
// to test the selector escaping | |||
testId: '"link-page-1"', |
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.
I'd liked to have a separate test case for this like this PR, but this particular component doesn't have any tests dedicated for test utils and to follow the existing structure I opted for this.
Description
Adds
testId
prop to option inside the side navigation component.The change will be reflected in select, multi-select, autosuggest and property filter components.
Related links, issue #, if available:
Collective PR: #2985
Project: Improving test utils API
How has this been tested?
Tests added to cover the change.
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.