codeceptjs / codeceptjs/CodeceptJS
Missing step.metaStep information in _init() and _before() hook (CustomHelper)
- Dominant language
- JavaScript
- Stars
- 4.2k
- Forks
- 757
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 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
Contributor guide
Assessment
This issue has not been assessed yet.