Thursday, 4 November 2021

React testing library id instead of data-testid?

Would be any difference if I used HTML id attribute instead of data attributes like data-testid?

Reference for the use of data-testid in testing:

https://testing-library.com/docs/queries/bytestid/



from React testing library id instead of data-testid?

No comments:

Post a Comment