https://cypress.io logo
That works fine, but it isn't specific enough. I a...
# e2e-testing
c
That works fine, but it isn't specific enough. I am using Angular and I am reusing that element in a different location in the same DOM-tree. So besides
app-element-1 > app-element-2 > data-testid="myElement
, there is also
app-element-3 > app-element-4 > data-testid="myElement
or
app-element-5 > app-element-6 > data-testid="myElement
. In other words, the parents of the
data-testid="myElement
element needs to be differentiated.