[Feature] .shadowContains should accept RegEx
nicokoenig opened this issue · 1 comments
nicokoenig commented
Current behavior:
They cypress command also accepts regular expressions
contains(/^foobar$/)
Desired behavior:
The shadowContains
command should also accept regular expressions.
DesignByOnyx commented
Just leaving this here in case anybody starts to investigate this. The contains
method in cypress is not trivial: https://github.com/cypress-io/cypress/blob/a26d06aa78af508a226f8c3ae78f99ba47347c74/packages/driver/src/cy/commands/querying.js#L385
This might also affect #34