getgauge/gauge-ts

Dynamic assignment of function parameters based on the parameter name of the step alias is expected

YingML opened this issue · 0 comments

Dynamic assignment of function parameters based on the parameter name of the step alias is expected. As shown below:

@step(["<dog> is on the left of <cat>", "<cat> is on the right of <dog>"])

public async checkOnRightStep(dog = null, cat = null){

await checkOnRight(dog, cat);

}