Forum Discussion
aurelien-reeves
Staff
5 years agoI 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
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.