https://cypress.io logo
Hello, I am trying to build out a cypress E2E test...
# best-practices
r
Hello, I am trying to build out a cypress E2E test suite for an existing codebase. I see that the best practices tell you to use a data-* variable for selecting. What do you recommend is the best way to implement this for a codebase that does not have these variables written in ? It is a large codebase and manually writing them in would not be good. If I were to dynamically/automatically add these variables into the code, does anyone have suggestions for ways to do that ?