Who Should Add the Data-TestID? Or How We Automated This Process
- SQADays / 39
-
20 min
Our team had a constant conflict: developers forgot to set the data-testID, testers couldn't write stable tests (and we weren't allowed to write testIDs ourselves), and time was wasted searching for “where is this ID?” Developers considered this a chore. We created GenTestID, a CLI tool that automatically sets the data-testID in all Vue/React components with a single command. A few seconds—and it's done. No disputes, no routine, no forgotten IDs.