TestArmada / nightwatch-extra

MIT License
30 stars 26 forks source link

Escape String in RegExp #13

Closed mukundgoel closed 7 years ago

mukundgoel commented 8 years ago

Regex needs to be passed an escaped string else it fail the assertion if a non-regex is passed as a parameter to these assertions.

Fixes Bug:

Testing if selector <[data-automation-id='phone-cc']> has value <(510) 123-1234> after 16623 milliseconds   - expected "(510) 123-1234" but got: (510) 123-1234

@Maciek416 @archlichking @geekdave