-
Notifications
You must be signed in to change notification settings - Fork 181
chore: Refactor dropdown test utils #3571
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3571 +/- ##
==========================================
+ Coverage 96.60% 96.62% +0.02%
==========================================
Files 807 807
Lines 23572 23555 -17
Branches 8196 8254 +58
==========================================
- Hits 22771 22761 -10
- Misses 747 787 +40
+ Partials 54 7 -47 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9dd63f8
to
de9ff21
Compare
export class DropdownContentWrapper extends ComponentWrapper { | ||
export class BaseDropdownContentWrapper extends ComponentWrapper { | ||
/** | ||
* Returns all the disabled options. |
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.
The original doc text here for the AutosuggestDropdownWrapper was "Returns all the selected options.", which must have been wrong.
2e756ff
to
7001d75
Compare
7001d75
to
6d50919
Compare
Description
AutosuggestDropdownWrapper and DropdownContentWrapper share a good number of methods which are currently identical. This PR deduplicates them via a third base class so that future updates such as #3570 are simpler and make sure they do not eventually lead to diverging implementations.
Related links, issue #, if available: n/a
How has this been tested?
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.