{"action":"closed","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/1740","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/1740/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/1740/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/1740/events","html_url":"https://github.com/airbnb/enzyme/issues/1740","id":348956424,"node_id":"MDU6SXNzdWUzNDg5NTY0MjQ=","number":1740,"title":"contains for external react component doesn't work","user":{"login":"eldyvoon","id":2796189,"node_id":"MDQ6VXNlcjI3OTYxODk=","avatar_url":"https://avatars3.githubusercontent.com/u/2796189?v=4","gravatar_id":"","url":"https://api.github.com/users/eldyvoon","html_url":"https://github.com/eldyvoon","followers_url":"https://api.github.com/users/eldyvoon/followers","following_url":"https://api.github.com/users/eldyvoon/following{/other_user}","gists_url":"https://api.github.com/users/eldyvoon/gists{/gist_id}","starred_url":"https://api.github.com/users/eldyvoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eldyvoon/subscriptions","organizations_url":"https://api.github.com/users/eldyvoon/orgs","repos_url":"https://api.github.com/users/eldyvoon/repos","events_url":"https://api.github.com/users/eldyvoon/events{/privacy}","received_events_url":"https://api.github.com/users/eldyvoon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-09T02:51:25Z","updated_at":"2018-08-09T03:26:49Z","closed_at":"2018-08-09T03:26:49Z","author_association":"NONE","body":"**Describe the bug**\r\ncontains has strange behavior, couldn't find react component.\r\n\r\n```\r\nimport Error from 'somewhere/Error'\r\n\r\ndescribe.only('when there is an error', () => {\r\n        beforeEach(() => {\r\n          props.error = 'error'\r\n          InputContainerInstance = inputShallow(props)\r\n\r\n          console.log('InputContainerInstance', InputContainerInstance.debug())\r\n          ErrorInstance = InputContainerInstance.children().find(\r\n            `.${modernStyles.errorMessage}`\r\n          )\r\n          ErrorInstance.log('ErrorInstance', ErrorInstance)\r\n        })\r\n        it('Should contain the \"Error\" component', () => {\r\n          expect(ErrorInstance.contains(<Error />)).to.equal(true)\r\n        })\r\n      })\r\n\r\nLog result\r\nLOG: 'InputContainerInstance', '<div>\r\n  <div>\r\n    <input id=\"input-4\" type=\"text\" disabled={false} name=\"input-4\" />\r\n  </div>\r\n  <Error text=\"error\" align=\"center\" />\r\n</div>'\r\nLOG: 'ErrorInstance', ShallowWrapper{length: 1}\r\n```\r\n\r\n**Expected behavior**\r\ncontains should work as expected\r\n\r\n**Desktop (please complete the following information):**\r\n - IOS\r\n - Chrome"}}
{"actor":{"display_login":"eldyvoon"}}