codeceptjs / codeceptjs/CodeceptJS

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

Đang mở
#2,705 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
4.2k
Fork
757
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
16

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.