jest get input value code example
Example 1: jest input value
let wrapped = mount(<Component />);
expect(wrapped.find("input").get(0).props.value).toEqual("something");
Example 2: 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 3: find value number in enzym
const wrapper = mount(<EditableText defaultValue="Hello" />);
const input = wrapper.find('input');
console.log(input.node.value);