codeceptjs / codeceptjs/CodeceptJS
Missing step.metaStep information in _init() and _before() hook (CustomHelper)
- Langage dominant
- JavaScript
- Étoiles
- 4.2k
- Forks
- 757
- Merge moyen
- 2 j 9 h
- PR mergées (30 j)
- 16
Description
#### What are you trying to achieve?
Hi, I have question about CodeceptJS 3.x.x. We are using currently 2.x version and I created custom helper for manipulation with steps (basically dynamically added steps in some special cases). I'm adding steps by
**event.dispatcher.on(event.step.before, (step) => {})**
I need some meta information about every step there and I was used to use **step.metaStep** object but after update to CodeceptJS 3.x.x metaStep is not filled in some hooks.
In case of **_beforeStep()** helper hook is everything fine. But i need it also in **_init()** hook or _**before()** hook. Is there any chance this is just bug, or it is cause by design? Thanks
#### What do you get instead?
step.metaStep is undefined in _init() and _before() custom helper hooks.
### Details
* CodeceptJS version: 3.0.2
* NodeJS Version: 12.16.3
* Operating System: Windows 10
* webdriverio
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.