dillon1000/react
Commit
Browse files Remove event simulation of onChange events (#13176)
* Remove event simulation of onChange events It’s time to get rid of even more `ReactTestUtils.Simulate`s. In this PR we remove the event simulation from all onChange tests. To do this, we have to get a setter to the untracked value/checked props. All remaining `ReactTestUtils.Simulate` calls are either testing ReactTestUtils or assert that they do/don't throw. * Use input instead of change event for all but checkbox, radio, and select
Changed paths4 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactDOMInput-test.js ModifiedM packages/react-dom/src/__tests__/ReactDOMSelect-test.js ModifiedM packages/react-dom/src/__tests__/ReactDOMServerIntegrationForms-test.js ModifiedM packages/react-dom/src/__tests__/ReactDOMTextarea-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…