I've searched a lot in SO and documentation sites, but nothing solved my issue.
We're using cypress-react-selector to test our React application at work, and it works great in local development.
The problem is that as soon as we go on production and the React components get minified, al the tests don't pass since the cy.getReact() method is not able to find the components.
For example, in local development I use to have this piece of code:
cy
.getReact('Button', { props: { icon: 'myAwesomeIcon' } })
.should(({ node }) => node ? node.click() : null);
but in production the Button component is minified (and with the React Development tools I find that it is simply called d).
How can I create a test that is capable to run both in local and production env?