In order to be able to write Selenium test cases for our Webpack built React app we've added data-* attributes to certain parts of the HTML elements, example:
<div class="Component__item___2jdnc" data-app-feature="example-id"></div>
We can use these to locate elements to interact with and assert on. But, in production environment I would like to have them removed. How could that be achieved?