You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The descendent selector (.find('.foo .bar')) seems to have broken in the latest release. It seems to have been broken in #1680 .
I have a component that returns something like
//note: Button is a component<divclassName="button-group"><Buttonclassname=".foo"onClick={this.handleFoo}>foo</Button><Buttonclassname=".bar"onClick={this.handleBar}>bar</Button></div>
To Reproduce
Working on a reproduction. Will add it when it's ready. See example above though.
Expected behavior
The call to .find should return a wrapper around the second button
Desktop (please complete the following information):
OS: OS X High Sierra
Browser Chrome
Version: 68
Additional context
The error began when upgrading from 3.4.1 to 3.4.4. I was able to remove it by reverting only the one-line change in #1680 in my node modules directory.
Describe the bug
The descendent selector (
.find('.foo .bar')
) seems to have broken in the latest release. It seems to have been broken in #1680 .I have a component that returns something like
and then this fails because find returned 0 nodes
To Reproduce
Working on a reproduction. Will add it when it's ready. See example above though.
Expected behavior
The call to .find should return a wrapper around the second button
Desktop (please complete the following information):
Additional context
The error began when upgrading from 3.4.1 to 3.4.4. I was able to remove it by reverting only the one-line change in #1680 in my node modules directory.
Versions:
Enzyme: 3.4.4
enzyme-adapter-react-16: 1.2.0
enzyme-adapter-utils: 1.5.0
react: 16.4.2
The text was updated successfully, but these errors were encountered: