Cucumber.js wait for redirect


#1

Does anyone know how to wait for redirect in cucumber. Currently, I have client.pause(1000), which obviously a bad practice for tons of reasons.


#2

You can wait for an element to appear on the page. The redirect is likely going to take you somewhere else you can use that to your advantage