-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress 12.0.1 - contains(element,text) inside within fails #25019
Comments
We have some regressions around |
Looks like we have a regression around |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
I find I often target content via an element and it's text inside a container with this pattern. but it fails in cypress 12.0.1
Desired behavior
Targeting content with a
cy.contains(element, 'text')
should work inside a within, as it has done with previous Cypress versions and as indicated in the documentation.Test code to reproduce
Cypress Version
12.0.1
Node version
v14.18.0
Operating System
macOS 12.6
Debug Logs
Other
This fault is able to be replicated easily with the given test code supplied.
The text was updated successfully, but these errors were encountered: