{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/4692","labels_url":"https://api.github.com/repos/facebook/react/issues/4692/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/4692/comments","events_url":"https://api.github.com/repos/facebook/react/issues/4692/events","html_url":"https://github.com/facebook/react/issues/4692","id":102646660,"number":4692,"title":"Error: Invariant Violation: findAllInRenderedTree(...): instance must be a composite component","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-23T18:51:05Z","updated_at":"2015-09-24T17:05:53Z","closed_at":"2015-08-23T18:56:23Z","body":"I am writing a test case using Mocha and JSDom.\r\n\r\n```js\r\nimport React from 'react';\r\nimport TestUtils from 'react-addons-test-utils';\r\n\r\ndescribe('ReactOutsideEvent', () => {\r\n    it('captures mousedown event', () => {\r\n        let detachedCoponent;\r\n\r\n        detachedCoponent = TestUtils.renderIntoDocument(<div>\r\n            <div className='foo'></div>\r\n        </div>);\r\n\r\n        TestUtils.scryRenderedDOMComponentsWithClass(detachedCoponent, 'foo');\r\n    });\r\n});\r\n```\r\n\r\nI'd like to obtain a reference to the generated DOMNode with `className` \"foo\". `scryRenderedDOMComponentsWithClass` produces:\r\n\r\n```\r\nError: Invariant Violation: findAllInRenderedTree(...): instance must be a composite component\r\n```\r\n\r\nI have also tried `scryRenderedDOMComponentsWithTag` and got the same error.\r\n\r\nUsing 0.14.0-beta3."},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/142990672","html_url":"https://github.com/facebook/react/issues/4692#issuecomment-142990672","issue_url":"https://api.github.com/repos/facebook/react/issues/4692","id":142990672,"user":{"login":"spicyj","id":6820,"avatar_url":"https://avatars.githubusercontent.com/u/6820?v=3","gravatar_id":"","url":"https://api.github.com/users/spicyj","html_url":"https://github.com/spicyj","followers_url":"https://api.github.com/users/spicyj/followers","following_url":"https://api.github.com/users/spicyj/following{/other_user}","gists_url":"https://api.github.com/users/spicyj/gists{/gist_id}","starred_url":"https://api.github.com/users/spicyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spicyj/subscriptions","organizations_url":"https://api.github.com/users/spicyj/orgs","repos_url":"https://api.github.com/users/spicyj/repos","events_url":"https://api.github.com/users/spicyj/events{/privacy}","received_events_url":"https://api.github.com/users/spicyj/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T17:05:53Z","updated_at":"2015-09-24T17:05:53Z","body":"@benhughes Can you paste a sample test so I can see what you mean?"}}