Open xchnshi opened 2 years ago
because it's documented as best practice, there really ought to be a mode that gives data-cy
priority
Is it not currently prioritizing data-cy
while in CSS selectors
mode? It was written with the intent to prioritize data-cy
first, then data-test
, then data-testid
, and only if those attributes are not present on the event target do we delegate to the finder library.
Is this not working as intended? If so please let us know and provide an example if possible.
it does work indeed! i made the wrong assumption based on the issue being still open.
Thanks for testing! I'll update the documentation and close this issue after a couple days.
data-cy is the default behavior, please close this issue.
is it possible to add option supporting data-cy id? or event self defined keyword that mentioned in cypress best practise.