cypress-example-todomvc icon indicating copy to clipboard operation
cypress-example-todomvc copied to clipboard

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

Open bahmutov opened this issue 7 years ago • 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

bahmutov avatar Apr 26 '18 18:04 bahmutov

Could be implemented like in testcafe https://github.com/DevExpress/testcafe-react-selectors

ghost avatar Dec 04 '18 14:12 ghost