We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, here is a problem
it('Adjacent sibling selector', () => { function Test() { return ( <div> <div className="row">row1</div> <div className="row">row2</div> <div className="row">activeRow</div> </div> ); } const wrapper = mount(<Test />); expect(wrapper.find('.row + .row').length).to.be.eql(2); // ok expect(wrapper.find('.row + .row').at(0).text()).to.be.eql('row2'); // ok expect(wrapper.find('.row + .row').at(1).text()).to.be.eql('activeRow'); // ok expect(wrapper.find('.row + .row + .row').length).to.be.eql(1); // fails, expectation - 1, actual value - 0 });
React v15.3.2 Enzyme v2.6.0
The text was updated successfully, but these errors were encountered:
Does the same thing happen on shallow?
Sorry, something went wrong.
This looks related to #689 which #691 fixes. I'll add your test case to that PR.
After giving this a shot, it's pretty complex to fix, so I won't do it as part of #691.
Any workaround for this? I just ran into this problem today.
No branches or pull requests
Hi,
here is a problem
React v15.3.2
Enzyme v2.6.0
The text was updated successfully, but these errors were encountered: