You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linked a PR to address this. Basically, the new version of .contains() was only looking inside the first subject element - if there were multiple, everything past the first was being ignored.
Thank you for the simple repro, made this a lot easier to track down and fix quickly. Expect a patch release today or tomorrow.
Current behavior
cy.get(<parent_locator>).contains(<child_locator>, <text>)
was finding elements, but with Cypress v12.0.1 is not finding anything:The changelog was not mentioning anything about cy.contains updates.
Desired behavior
should work like before changes
Test code to reproduce
Cypress Version
12.0.1
Node version
v16.18.0
Operating System
macOS 13.0.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: