how find input to component render jest react code example
Example 1: find value number in enzym
const emailField = orderPageWrapper.find('input[name="email"]')
emailField.simulate('focus')
emailField.simulate('change', { target: { value: '[email protected]', name: 'email' } })
emailField.simulate('blur')
Example 2: find value number in enzym
wrapper.find('input').simulate("change", { target: { value: "foo" }}) to invoke onChange