{"action":"created","issue":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/1409","repository_url":"https://api.github.com/repos/cypress-io/cypress","labels_url":"https://api.github.com/repos/cypress-io/cypress/issues/1409/labels{/name}","comments_url":"https://api.github.com/repos/cypress-io/cypress/issues/1409/comments","events_url":"https://api.github.com/repos/cypress-io/cypress/issues/1409/events","html_url":"https://github.com/cypress-io/cypress/issues/1409","id":302000692,"number":1409,"title":"Loading React Dev Tools for specs","user":{"login":"pedroteixeira","id":14740,"avatar_url":"https://avatars3.githubusercontent.com/u/14740?v=4","gravatar_id":"","url":"https://api.github.com/users/pedroteixeira","html_url":"https://github.com/pedroteixeira","followers_url":"https://api.github.com/users/pedroteixeira/followers","following_url":"https://api.github.com/users/pedroteixeira/following{/other_user}","gists_url":"https://api.github.com/users/pedroteixeira/gists{/gist_id}","starred_url":"https://api.github.com/users/pedroteixeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedroteixeira/subscriptions","organizations_url":"https://api.github.com/users/pedroteixeira/orgs","repos_url":"https://api.github.com/users/pedroteixeira/repos","events_url":"https://api.github.com/users/pedroteixeira/events{/privacy}","received_events_url":"https://api.github.com/users/pedroteixeira/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-03T14:09:21Z","updated_at":"2018-03-03T18:32:43Z","closed_at":"2018-03-03T18:32:43Z","author_association":"NONE","body":"Hello,\r\nI suspect this is more of a https://github.com/facebook/react-devtools question.. but posting here in case someone already figured this out.\r\n\r\nOn plugin:\r\n```\r\non('before:browser:launch', (browser = {}, args) => {\r\n    console.log(browser, args) // see what all is in here!\r\n\r\n    if (browser.name === 'chrome') {\r\n      const homedir = require('os').homedir();\r\n      args.push(`--load-extension=${homedir}/.config/google-chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/3.1.0_0/`);\r\n      return args\r\n    }\r\n  })\r\n```\r\n\r\nInside a test, following the hint from https://github.com/facebook/react-devtools/issues/76:\r\n```\r\ncy.window().then((win) => {\r\n      if (win.parent !== win) {\r\n        win['__REACT_DEVTOOLS_GLOBAL_HOOK__'] = win.parent['__REACT_DEVTOOLS_GLOBAL_HOOK__'];\r\n      }\r\n    });\r\n```\r\n\r\nReact dev tools is loaded as extension fine but does not work inside the test iframe :/\r\nAny hints appreciated :)\r\n\r\nthanks.\r\n"},"comment":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/comments/370169412","html_url":"https://github.com/cypress-io/cypress/issues/1409#issuecomment-370169412","issue_url":"https://api.github.com/repos/cypress-io/cypress/issues/1409","id":370169412,"user":{"login":"pedroteixeira","id":14740,"avatar_url":"https://avatars3.githubusercontent.com/u/14740?v=4","gravatar_id":"","url":"https://api.github.com/users/pedroteixeira","html_url":"https://github.com/pedroteixeira","followers_url":"https://api.github.com/users/pedroteixeira/followers","following_url":"https://api.github.com/users/pedroteixeira/following{/other_user}","gists_url":"https://api.github.com/users/pedroteixeira/gists{/gist_id}","starred_url":"https://api.github.com/users/pedroteixeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedroteixeira/subscriptions","organizations_url":"https://api.github.com/users/pedroteixeira/orgs","repos_url":"https://api.github.com/users/pedroteixeira/repos","events_url":"https://api.github.com/users/pedroteixeira/events{/privacy}","received_events_url":"https://api.github.com/users/pedroteixeira/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T18:32:42Z","updated_at":"2018-03-03T18:32:42Z","author_association":"NONE","body":"Thanks - I can actually inspect the Cypress React elements but could not find a way to inspect inside de iframe of the target test. \r\n\r\nJust realized that I am using https://github.com/bahmutov/cypress-react-unit-test to mount the application, So guess not something related to Cypress core itself. \r\n\r\nI will close this one and will post news here in the future. "}}
{"actor":{"display_login":"pedroteixeira"}}