{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/1680","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/1680/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/1680/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/1680/events","html_url":"https://github.com/airbnb/enzyme/pull/1680","id":333061997,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1Mzc3MTM1","number":1680,"title":"Fix descendant selector","user":{"login":"ReactiveRaven","id":1376403,"node_id":"MDQ6VXNlcjEzNzY0MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/1376403?v=4","gravatar_id":"","url":"https://api.github.com/users/ReactiveRaven","html_url":"https://github.com/ReactiveRaven","followers_url":"https://api.github.com/users/ReactiveRaven/followers","following_url":"https://api.github.com/users/ReactiveRaven/following{/other_user}","gists_url":"https://api.github.com/users/ReactiveRaven/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactiveRaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactiveRaven/subscriptions","organizations_url":"https://api.github.com/users/ReactiveRaven/orgs","repos_url":"https://api.github.com/users/ReactiveRaven/repos","events_url":"https://api.github.com/users/ReactiveRaven/events{/privacy}","received_events_url":"https://api.github.com/users/ReactiveRaven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-17T13:15:17Z","updated_at":"2018-08-09T22:04:43Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/airbnb/enzyme/pulls/1680","html_url":"https://github.com/airbnb/enzyme/pull/1680","diff_url":"https://github.com/airbnb/enzyme/pull/1680.diff","patch_url":"https://github.com/airbnb/enzyme/pull/1680.patch"},"body":"Given a node like:\r\n\r\n```html\r\n<div className=\"test\">\r\n    <div></div>\r\n</div>\r\n```\r\n\r\na selector like `.find(\".test div\")` or `.find(\"div div\")` unexpectedly matches the outer div, as well as the inner div.\r\n\r\nThe patch uses child nodes of current matches, which excludes the 'parent' match."},"comment":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/comments/411912876","html_url":"https://github.com/airbnb/enzyme/pull/1680#issuecomment-411912876","issue_url":"https://api.github.com/repos/airbnb/enzyme/issues/1680","id":411912876,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTkxMjg3Ng==","user":{"login":"ReactiveRaven","id":1376403,"node_id":"MDQ6VXNlcjEzNzY0MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/1376403?v=4","gravatar_id":"","url":"https://api.github.com/users/ReactiveRaven","html_url":"https://github.com/ReactiveRaven","followers_url":"https://api.github.com/users/ReactiveRaven/followers","following_url":"https://api.github.com/users/ReactiveRaven/following{/other_user}","gists_url":"https://api.github.com/users/ReactiveRaven/gists{/gist_id}","starred_url":"https://api.github.com/users/ReactiveRaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReactiveRaven/subscriptions","organizations_url":"https://api.github.com/users/ReactiveRaven/orgs","repos_url":"https://api.github.com/users/ReactiveRaven/repos","events_url":"https://api.github.com/users/ReactiveRaven/events{/privacy}","received_events_url":"https://api.github.com/users/ReactiveRaven/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T22:04:43Z","updated_at":"2018-08-09T22:04:43Z","author_association":"CONTRIBUTOR","body":"Looks like this has already been reported in #1741. When I manually apply the fix from that PR, all tests pass, so I guess this PR is blocked on #1741 for now."}}
{"actor":{"display_login":"ReactiveRaven"}}