cypress-io/cypress-example-todomvc

Explain or allow connecting React dev tools to the application under test

bahmutov opened this issue · 1 comments

Using a hook we can point React dev tools (separate Chrome extension) but they do not align very well, plus keep adding new nodes

<script>
		if (window.Cypress) {
      // this allows React DevTools to work in an iframe
      // (if we're in Cypress running our app)
      __REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__
    }
</script>

screen shot 2018-04-26 at 2 24 25 pm