Closed penx closed 3 years ago
I'd like to use data-test-id rather than data-testid for findByTestId, but I don't think that's currently possible with cypress-testing-library.
data-test-id
data-testid
findByTestId
Can the attribute be configurable in findByTestId, or can findByAttribute be surfaced?
It should be possible (haven't tried it myself though): https://github.com/testing-library/cypress-testing-library#config-testidattribute
oops sorry, I had searched but clearly not hard enough 😀
I'd like to use
data-test-id
rather thandata-testid
forfindByTestId
, but I don't think that's currently possible with cypress-testing-library.Can the attribute be configurable in findByTestId, or can findByAttribute be surfaced?