Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const signUpForm = findRenderedComponentWithType(app, SignUpForm)
- signUpForm.props.change('username', 'Joe')
- signUpForm.props.change('password', 'isVeryAngryBecauseHeCantSignUp')
- Simulate.submit(signUpForm.refs.submitButton)
- state {
- registeredFields: [
- { name: 'username', type: 'Field' },
- { name: 'password', type: 'Field' }
- ],
- fields: { username: { touched: true }, password: { touched: true } },
- anyTouched: true,
- submitting: true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement