cucumber-js-tsflow icon indicating copy to clipboard operation
cucumber-js-tsflow copied to clipboard

Step retry support?

Open degerlac opened this issue 4 years ago • 1 comments

Is there a way to utilize the retries with this library? Trying to migrate Given(/^Some state$/, { wrapperOptions: { retry: 4 } }, () => {

}

degerlac avatar Feb 27 '20 12:02 degerlac

From a quick look at the decorator code, I don't think it's possible as is. Ideally, the decorators would just be a pass-through that supports all API options that the underlying cucumber lib supports

mikehaas763 avatar Mar 15 '20 22:03 mikehaas763

We now expose the wrapperOptions in the step decorators. Keep in mind that the this API is marked as deprecated on Cucumber itself an may be removed from Cucumber at any moment.

I'll try to keep compatibility with Cucumber 7 for as long as I can :)

Fryuni avatar Nov 20 '22 00:11 Fryuni