feat: add bddStep before/after step hook#2343
feat: add bddStep before/after step hook#2343DavertMik merged 1 commit intocodeceptjs:codeceptjs-v3.0from
Conversation
|
Yeah, actually there is a way to get BDD step out there. step -> pageObject -> BDD step or step -> bddStep so you can get on upper level by checking metaStep property. Maybe your API is cleaner than that. I agree. But I have the following questions:
|
Yes, but this only works when you have any
I was lacking a report in which I would see only gherkin steps passed/failed. |
|
Hi, after thinking a lot on this, I think this is a good idea and nice implementation. |
|
@wojtkowiak Was also looking into better bdd reporting. Curious tho, if no helper methods such as |
Motivation/Description of the PR
I was looking for a way to create a better BDD reporter but could not get a hook to a bdd steps. This adds a way to hook before/after a bdd step. Hope I did not mess this up as this is my first try here.
Applicable helpers:
Applicable plugins:
Type of change
Checklist:
npm run docs)npm run lint)npm test)