Base on this article I would like to use data-qa
attributes but I don't think that is a good approach to leave them in a production build. Do you know any way to remove them from an Angular production build, with (or without) Angular CLI?
Asked
Active
Viewed 601 times
3

jonrsharpe
- 115,751
- 26
- 228
- 437

bucicimaci
- 1,261
- 1
- 9
- 17
-
I think you may do a script to remove it by yourself. It is just a regex? I am interested. – Stefdelec Oct 02 '18 at 06:43
-
Duplicated by https://stackoverflow.com/questions/58794288/when-developing-e2e-tests-why-is-data-attributes-preferred-for-element-select I think. But there are some suggestions in the duplicated answer. – Marty Oct 08 '20 at 10:04