This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Description
mousemke#4
What needs to get done?
- the wait method from nightmare should be exposed.
Why does it need to get done?
before(function*() {
yield niffy.goto('/', function*(nightmare) {
yield nightmare.wait(3000);
});
});
it seems odd that you would have to go through another call just to use wait through a callback. this exposes it to the niffy object
before(function*() {
yield niffy.wait(3000);
});
How do I do it?
simply exposing it should do the trick
/**
* exposes the nightmare wait fubction
*
* @param {String} target selector of ms
*/
* wait( target ){
this.nightmare.wait( target );
}
}