Is it possible to combine text and regex when call...
# help
f
Is it possible to combine text and regex when calling
cy.contains()
? I'm calling
cy.contains($title.text() + " " + /\(Clone \d+\)/)
, but it looks like the regex is being interpreted literally, throwing the error
Timed out retrying after 25000ms: Expected to find content: 'DCT - 2:15:58 PM API /(Clone \d+)/' but never did.