-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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] Add conformance test suite for v5 #23798
Conversation
classes: {}, | ||
inheritComponent: 'span', | ||
inheritComponent: SliderUnstyled, |
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.
Fixed also this test
componentsProp, | ||
} = getOptions(); | ||
|
||
const wrapper = mount(React.cloneElement(element, { components: { Root: component } })); |
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.
Would it make sense to use react-testing-library for this new test instead of enzyme?
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.
A bit hard to change it only for this test, as the other suits are coming from the original describeConformance
. I would suggest, we do it in one run after all components are migrated and we can safely remove the old test suite.
This PR adds a conformance test suite for v5. It is used in the Slider tests.