jest input value
let wrapped = mount(<Component />);
expect(wrapped.find("input").get(0).props.value).toEqual("something");
jest input value
let wrapped = mount(<Component />);
expect(wrapped.find("input").get(0).props.value).toEqual("something");
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')
find value number in enzym
const wrapper = mount(<EditableText defaultValue="Hello" />);
const input = wrapper.find('input');
console.log(input.node.value);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us