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

test(Slider): add additional RTL tests #12767

Merged

Conversation

matthewgallo
Copy link
Member

@matthewgallo matthewgallo commented Dec 2, 2022

Closes #12676

This PR adds RTL tests, building upon the readOnly tests that Lee started, for the Slider component.

I ran into an issue/may have potentially found a bug while testing the onInputKeyUp prop, receiving an error saying Unknown event handler property 'onInputKeyUp'. It will be ignored. I got this error message when testing this component within the Carbon repo and also adding this prop in a sandbox environment (using latest @carbon/react release). Because of this I've left out the test for that prop.

Changelog

Changed

  • Slider-test.js

Removed

  • Slider/__test__/Slider-test.js (moved this into Slider/Slider-test.js)

Testing / Reviewing

Ran all tests locally
image

@matthewgallo matthewgallo requested a review from a team as a code owner December 2, 2022 15:24
@netlify
Copy link

netlify bot commented Dec 2, 2022

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b14ec46
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/63987bf98640a20009bbc9a8
😎 Deploy Preview https://deploy-preview-12767--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 6, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit b14ec46
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/63987bf949b6f20009fd2133
😎 Deploy Preview https://deploy-preview-12767--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@matthewgallo matthewgallo requested review from tay1orjones and tw15egan and removed request for aledavila and tay1orjones December 7, 2022 16:13
@kodiakhq kodiakhq bot merged commit 4f62459 into carbon-design-system:main Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use RTL for testing in Slider/Slider-test.js
3 participants