UNPKG

protractor-junit-flake

Version:

A wrapper for protractor to automatically re-run failed tests for a specific number of attempts

10 lines (7 loc) 271 B
var TIMES_TO_FLAKE = process.env.TIMES_TO_FLAKE || 3 describe('a flakey integration test', function () { it('fails, in a horribly consistent manner', function () { browser.get(`/flake/${TIMES_TO_FLAKE}`) expect($('#success').isPresent()).toBeTruthy() }) })