mobify / nightwatch-commands

A set of Mobify specific custom commands for Nightwatch.js
60 stars 18 forks source link

Add Command waitForUrlToContain() command #43

Closed qa-derrick closed 8 years ago

qa-derrick commented 8 years ago

Expand on the waitForUrl command to allow for a URL to contain a specified value.

The waitForUrl command is limited to an exact match, we want a command to wait for url to contain a certain string, this is useful in cases where the URL might append a session hash or randomly generated token. ex 'http://www.mystore.com/checkout?123456789" we would want to wait for "http://www.mystore.com/checkout"

ellenmobify commented 8 years ago

Completed with https://github.com/mobify/nightwatch-commands/pull/46