Skip to content

[feature] Expose wait #4

@mousemke

Description

@mousemke

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 );
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions