TestCafe Utils
Utils for TestCafe.
Current methods:
async tu.expectEach()
Runs @fn(n) for each n matching @selector.
Runs in series, not parallel.
Example usage:
await expectEach(
mySelector,
n => t.expect(mySelector.nth(n).innerText).eql("foo", `Failed on n '${n}'`)
);
Installation
$ npm install testcafe-utils
Usage
const Selector = ;const tu = ; const baseURL = 'http://www.imdb.com/title/tt0092400/ratings?ref_=tt_ov_rt'; fixture `IMDB` page ``; const mySelector = ;