{"action":"created","issue":{"url":"https://api.github.com/repos/mui-org/material-ui/issues/10141","repository_url":"https://api.github.com/repos/mui-org/material-ui","labels_url":"https://api.github.com/repos/mui-org/material-ui/issues/10141/labels{/name}","comments_url":"https://api.github.com/repos/mui-org/material-ui/issues/10141/comments","events_url":"https://api.github.com/repos/mui-org/material-ui/issues/10141/events","html_url":"https://github.com/mui-org/material-ui/issues/10141","id":293788087,"number":10141,"title":"Wrong behavior for onChange event for Tabs?","user":{"login":"xiaoouLi","id":4204710,"avatar_url":"https://avatars1.githubusercontent.com/u/4204710?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaoouLi","html_url":"https://github.com/xiaoouLi","followers_url":"https://api.github.com/users/xiaoouLi/followers","following_url":"https://api.github.com/users/xiaoouLi/following{/other_user}","gists_url":"https://api.github.com/users/xiaoouLi/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoouLi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoouLi/subscriptions","organizations_url":"https://api.github.com/users/xiaoouLi/orgs","repos_url":"https://api.github.com/users/xiaoouLi/repos","events_url":"https://api.github.com/users/xiaoouLi/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoouLi/received_events","type":"User","site_admin":false},"labels":[{"id":796834793,"url":"https://api.github.com/repos/mui-org/material-ui/labels/support","name":"support","color":"e57c37","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-02T06:38:55Z","updated_at":"2018-02-02T17:48:34Z","closed_at":"2018-02-02T09:55:31Z","author_association":"NONE","body":"Hi there,\r\n\r\nI got something wrong when I'm writing test cases with enzyme.\r\n\r\nMy source file is like following:\r\nLet's say I have two tabs A and B, and two corresponding contents cA and cB.\r\nBoth A and B are Components, not simple DOM. \r\nA is the default tab.\r\n\r\nIn the test file, I can successfully do wrapper.find('A') at this point.\r\nThen I click tab B (by simulate method of enzyme), the onChange event handler is triggered to switch to tab B.\r\nNow I do wrapper.find('B'), it fails.\r\n\r\nI print out the wrapper and can see the \"real content\" of B is rendered in wrapper html, while I cannot find B as a Component.\r\n\r\nIs that a defect?\r\n\r\nThanks!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mui-org/material-ui/issues/comments/362655527","html_url":"https://github.com/mui-org/material-ui/issues/10141#issuecomment-362655527","issue_url":"https://api.github.com/repos/mui-org/material-ui/issues/10141","id":362655527,"user":{"login":"xiaoouLi","id":4204710,"avatar_url":"https://avatars1.githubusercontent.com/u/4204710?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaoouLi","html_url":"https://github.com/xiaoouLi","followers_url":"https://api.github.com/users/xiaoouLi/followers","following_url":"https://api.github.com/users/xiaoouLi/following{/other_user}","gists_url":"https://api.github.com/users/xiaoouLi/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoouLi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoouLi/subscriptions","organizations_url":"https://api.github.com/users/xiaoouLi/orgs","repos_url":"https://api.github.com/users/xiaoouLi/repos","events_url":"https://api.github.com/users/xiaoouLi/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoouLi/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T17:48:34Z","updated_at":"2018-02-02T17:48:34Z","author_association":"NONE","body":"I think this is probably a defect in material-ui, isn't it?"}}
{"actor":{"display_login":"xiaoouLi"}}