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] Extend StrictMode tests #15714

Merged
merged 6 commits into from May 15, 2019
Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented May 15, 2019

Specify if StrictMode compatible or not on the remaining tests.

findHostNodeSomehow(wrapper).instance().textContent is a StrictMode compatible alternative to wrapper.text().

@eps1lon eps1lon added test package: material-ui Specific to @mui/material labels May 15, 2019
assert.lengthOf(nextButton.find('svg[data-mui-test="KeyboardArrowRightIcon"]'), 1);
});

it('should render backButton custom text', () => {
Copy link
Member Author

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', () => {
Copy link
Member Author

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.

@mui-pr-bot
Copy link

No bundle size changes comparing 6dbe568...a0dbc66

Generated by 🚫 dangerJS against a0dbc66

@eps1lon eps1lon merged commit cc10d20 into mui:next May 15, 2019
@eps1lon eps1lon deleted the test/extend-strict-mode-tests branch May 15, 2019 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: material-ui Specific to @mui/material test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants