-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Refactor/update multiselect tests #5951
Refactor/update multiselect tests #5951
Conversation
Deploy preview for carbon-elements ready! Built with commit 9226e73 |
Deploy preview for carbon-components-react ready! Built with commit 9226e73 https://deploy-preview-5951--carbon-components-react.netlify.app |
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
…/carbon into refactor/update-multiselect-tests
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…/carbon into refactor/update-multiselect-tests
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.
lgtm
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.
Looking great! Left a couple of comments, feel free to incorporate them or not 👍 Some may be more style-related than anything else.
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
…t-test.js Co-Authored-By: Josh Black <[email protected]>
This is a total overhaul of Multiselect-test.js and a minor touch up to FilterableMultiselect-test.js. The previous tests were all written with a class based React component in mind. And with the updates to Downshift coming and this component having been refactored to be a non-class hooks based React component the new tests are written in something akin to an RTL style (how and end user might interact with the component).
Changelog
Changed
Notes
There are a few tests marked
.skip
. This is either due to current functionality being unavailable or bugged.Testing / Reviewing
Run
yarn test __tests__/MultiSelect-test.js __tests__/FilterableMultiSelect-test.js
in the root project folder and see no errors.