Skip to content
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

Merged
merged 38 commits into from
Apr 29, 2020
Merged

Refactor/update multiselect tests #5951

merged 38 commits into from
Apr 29, 2020

Conversation

dakahn
Copy link
Contributor

@dakahn dakahn commented Apr 28, 2020

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

  • Added ArrowKey funtion to keyboard.js
  • Updated all tests in Multiselect-test.js
  • Touch up to a few FilterableMultiselect-test.js tests

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.

@dakahn dakahn requested a review from a team as a code owner April 28, 2020 02:29
@ghost ghost requested review from asudoh and joshblack April 28, 2020 02:29
@netlify
Copy link

netlify bot commented Apr 28, 2020

Deploy preview for carbon-elements ready!

Built with commit 9226e73

https://deploy-preview-5951--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Apr 28, 2020

Deploy preview for carbon-components-react ready!

Built with commit 9226e73

https://deploy-preview-5951--carbon-components-react.netlify.app

@dakahn dakahn requested review from joshblack and aledavila April 28, 2020 17:45
Copy link
Contributor

@aledavila aledavila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@joshblack joshblack left a 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.

@dakahn dakahn merged commit f107c20 into carbon-design-system:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants