-
-
Couldn't load subscription status.
- Fork 32.7k
[test] Add conformance suite #14958
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 suite #14958
Conversation
|
No bundle size changes comparing f8e9c71...4836f6e |
72bf187 to
cde4efc
Compare
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.
This is a great win for our test infrastructure!
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.
|
Did forget to push some local changes. Fails are fixed locally. |
8d27782 to
8dd30d4
Compare
a4b65bb to
7d484da
Compare
|
I overhauled the implementation of
The plan for this PR is to apply it to every component test where no changes to the implementation are needed. Some components don't quite work like the rest. For those components I will file separate PRs to discuss the implications. |
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.
Hopefully, we will have better tests while having less code to write.
67feb13 to
d243de7
Compare
114939d to
82b23ae
Compare
Tests that a component implements a common interface across all material-ui components.
82b23ae to
bd6253e
Compare

Inspired by semantic-ui test suite adds a common test for all core/ components.
We test these things sometimes in each component, sometimes we simply skip it. The approach is also pretty fragmented resulting in many forks of the same approach. This consolidates these test into a single description of a common API for
@material-ui/corecomponents.The endgame is to generate the docs from this descriptor instead of relying on code annotations like
@inheritComponent. Following the philosophy that tests are a form of documentation.Summary
Changes: +1,364 −1,110
Applied to the following core components:
Apply to all components that are conform
[ ] Boxunstable classnames[ ] TouchRippleneed imperative handle[ ] ClickAwayListenerexotic[ ] CssBaselineexotic[ ] Hiddenexotic[ ] ListItemAvatar(conditionalroot)[ ] NoSsrexotic[ ] Portalexotic[ ] RootRefexotic[ ] StepIconexotic