A , as a “normal” function, should follow the -responsibility Principle. I.e., it should do one and only one job, perform a step.

The @given, @when and @then tags serve to increase the meaning of the phrases, but in 99% of the cases, one phrase only make sense in the context of one tag.

If your phrase contain connector, as and, or, but, probably it is doing to many things.

Gherkin has the tags @and and @but which are used to connect simple phrases. See it here.

Source link https://sqa.stackexchange.com/questions/34625/-is-it-necessary-to---step---for-single-f


Please enter your comment!
Please enter your name here