Test IDs are an a11y smell
2mon 26d ago by programming.dev/u/codeinabox in software_testing@programming.dev from tkdodo.eu
I’ve come across a lot of articles lately claiming that using
data-testidis the best way to define selectors in your tests. Apparently, they simplify element selection, ensure maintainability and stability and decouple your tests from UI changes.I couldn’t disagree more.