Skip to content

Commit

Permalink
GH-4 exposed nightmare wait to niffy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouse Braun committed Sep 21, 2017
1 parent 3f33193 commit 2a0f29e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ class NiffyTestRunner
throw new Error(failMessage);
}
}

/**
* exposes the nightmare wait fubction
*
* @param {String} target selector of ms
*/
* wait( target ){
this.nightmare.wait( target );
}
}


Expand Down
5 changes: 5 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ describe('Google', function () {
const { label, width, height } = size;

describe(`${label} : ${width} x ${height}`, () => {

before(function* () {);
yield niffy.wait(100); // example
});

it('Homepage', function* () {
yield niffy.test('/');
})
Expand Down

0 comments on commit 2a0f29e

Please sign in to comment.