Following up on #703 I would like to request this one, so that it can be checked if an input has focus:
const wrapper = mount('<MyComponent />'); // Suppose this has an input inside.
const input = wrapper.find('input');
expect(input.is(':focus')).toBe(true);
Right now an error is thrown:
Enzyme::Selector does not support pseudo-element or pseudo-class selectors.
I'm using "enzyme": "^3.3.0".
Following up on #703 I would like to request this one, so that it can be checked if an input has focus:
Right now an error is thrown:
I'm using
"enzyme": "^3.3.0".