Forum Discussion
aurelien-reeves
Staff
I see you found a solution on GitHub here: https://github.com/cucumber/cucumber-js/issues/1619
Could you please confirm, and maybe explain here? Maybe other users are facing the same issue as you did
mortelee
4 years agoOccasional Contributor
As of Cucumber v7 you can not place the setDefaultTimeout inside a hook or step. The first suggestion was to put it in the file where you also create a custom world object. This did not work for me, and I can imagine that not everyone creates custom world object.
After some tries I found out that setDefaultTimeout works when you define the setDefaultTimeout in one of the step files as global function.
Related Content
- 7 years ago
- 10 years ago
- 2 years ago