Explain or allow connecting React dev tools to the application under test
bahmutov opened this issue · 1 comments
bahmutov commented
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>
Deleted user commented
Could be implemented like in testcafe https://github.com/DevExpress/testcafe-react-selectors