Skip to content

Can't use Regex StepDef With Table #32

@hmorey3

Description

@hmorey3

Hi,
I am able to successfully use capture groups in regex stepdefs and separately gherkin tables in a different step def, but I can not use both in the same step def. This is something that is available in jest-cucumber, and so it's something I think should be supported here.

When I try the step def below, only the first parameter is given a value.

Then(/^a (\d+) result is returned from the endpoint&/, ((httpCode_CucumberInput: string, result_CucumberInput: string) => {
   ...
}))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions