-
Notifications
You must be signed in to change notification settings - Fork 67
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: filtered dropdown items by display value instead of event target #2547
fix: filtered dropdown items by display value instead of event target #2547
Conversation
28d5ea7
to
8faa847
Compare
@@ -140,7 +140,7 @@ describe('FormAutosuggest', () => { | |||
expect(container.find(dropdownContainer).find('button').length).toEqual(0); | |||
|
|||
container.find('button.pgn__form-autosuggest__icon-button').simulate('click'); | |||
expect(container.find(dropdownContainer).find('button').length).toEqual(3); | |||
expect(container.find(dropdownContainer).find('button').length).toEqual(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.
Previous behavior was not filtering the options when toggling via the dropdown buttons. This test was verifying that behavior. Now toggling does not change what has been filtered from the dropdown.
✅ Deploy Preview for paragon-openedx ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
8faa847
to
4a7ae9a
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2547 +/- ##
=======================================
Coverage 91.65% 91.65%
=======================================
Files 236 236
Lines 4195 4195
Branches 1012 1012
=======================================
Hits 3845 3845
Misses 346 346
Partials 4 4
☔ View full report in Codecov by Sentry. |
🎉 This PR is included in version 21.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Fixes #2535
Deploy Preview
https://deploy-preview-2547--paragon-openedx.netlify.app/components/form/form-autosuggest/
Merge Checklist
wittjeff
andadamstankiewicz
as reviewers on this PR.Post-merge Checklist