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.
Test IDs are an a11y smell
https://tkdodo.eu/blog/test-ids-are-an-a11y-smell
0 Comments
No comments yet.