codeceptjs / codeceptjs/CodeceptJS

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

Abierto
#2,705 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
4.2k
Forks
757
Merge medio
2 d 9 h
PR fusionados (30 d)
16

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.