codeceptjs / codeceptjs/CodeceptJS

Missing step.metaStep information in _init() and _before() hook (CustomHelper)

Aperta
#2,705 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
4.2k
Fork
757
Merge medio
2g 9h
PR unite (30g)
16

Descrizione

#### 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.