-
-
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] Extend StrictMode tests #15714
Conversation
Already tested in describeConformance
strictMode renders twice
Some tests were redundant Some used text() which uses findDOMNode
assert.lengthOf(nextButton.find('svg[data-mui-test="KeyboardArrowRightIcon"]'), 1); | ||
}); | ||
|
||
it('should render backButton custom text', () => { |
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 tests the same as should render next button
. Both specify a nextButton
prop.
); | ||
}); | ||
|
||
it('should render disabled backButton', () => { |
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 testing Button
instead of MobileStepper
.
No bundle size changes comparing 6dbe568...a0dbc66 |
Specify if StrictMode compatible or not on the remaining tests.
findHostNodeSomehow(wrapper).instance().textContent
is a StrictMode compatible alternative towrapper.text()
.