-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
🤔 What's the problem you're trying to solve?
I'd like to have ability to dynamically invoke some step by name when executing another step:
When(/.../, async function() {
await this.invokeStep("Some step");
}Previously it was possible, but latest version does not expose this method in context.
Dynamic step invocation helps to implement some special scenarios, like "try catch" behavior:
Then I expect error
"""
When I do this
"""
And It is http error
✨ What's your proposed solution?
Expose invokeStep in step context
⛏ Have you considered any alternatives or workarounds?
I though about 2 sequential steps and some wrapper around step execution to catch error, like this:
When I expect error from next step
And I do this
Then It is http errorBut so far I fail to solve function args check
📚 Any additional context?
No response
Metadata
Metadata
Assignees
Labels
No labels