Why can Cypress dislike chaining cy.first()
or cy.find()
?
#30788
Unanswered
alexeyr-ci
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our Cypress version is 12.17.4. When updating an unrelated dependency some Cypress tests start failing, but the strange thing is the error message:
Or in different tests it can be
cy.contains()
orcy.find()
.But my understanding is that this shouldn't happen in Cypress 12: all of these are queries and can be chained. Or is there a good reason for this to happen? I'll post this to issues if it's confirmed as a bug, but may not be able to provide a minimized reproduction: it's a very large and complex project.
The stack trace is
where
(so you can see it's already partly switched to decrease chaining but I think that predates Cypress 12 and was working fine before).
cypress/support/helpers.js::136:25
points to theclick
at the end ofclickText
.Beta Was this translation helpful? Give feedback.
All reactions