Whats the best approach to select elements for automated testing? #1075
Replies: 2 comments
-
Interesting, we need best practices checklists for these things |
Beta Was this translation helpful? Give feedback.
-
@ranjanmaria people's opinions vary on this issue and this discussion comes up all the time for us. For me personally, I use If you are looking for an example of Cypress best practices check out The Real World App: https://github.com/cypress-io/cypress-realworld-app We created this repo to show all of the best practices with Cypress. Also, please check out https://learn.cypress.io/ for additional information and examples. The learn site has an entire testing curriculum that teaches everything you need to know about testing for free and was produced be our team. |
Beta Was this translation helpful? Give feedback.
-
I read following in cypress's best practices.
But I also came across following points which does not favor this practice:
The argument in favor of
data-cy
is:But I dont know how much this argument fair against the earlier ones. What is correct among these?
Beta Was this translation helpful? Give feedback.
All reactions