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
cy.contains('Save Changes')// OK. yields input[type='submit'] elementcy.contains(/SaveChanges/)// ERROR. Expected to find content: '/Save Changes/' but never did.
Fails with this error
Desired behavior
Expect cy.contains with a RegExp works as with String when looking at input[type="submit"]
The code for this is done in cypress-io/cypress#21285, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
Current behavior
Fails with this error
Desired behavior
Expect
cy.contains
with a RegExp works as with String when looking atinput[type="submit"]
Test code to reproduce
Repo with reproduction https://github.com/cyberxander90/cypress-test-tiny/tree/contains-problem
Cypress Version
9.5.4
Other
No response
The text was updated successfully, but these errors were encountered: