Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

And & But Steps #1615

Closed
jose-dataka opened this issue Mar 16, 2021 · 1 comment
Closed

And & But Steps #1615

jose-dataka opened this issue Mar 16, 2021 · 1 comment

Comments

@jose-dataka
Copy link

Hi there,

Have And & But Steps been integrated or developed in the current version?
Will And & But Steps be added like When & Then steps?

Thanks for your time.

@aslakhellesoy
Copy link
Contributor

aslakhellesoy commented Mar 16, 2021

You can use Given, When, Then, And and But in Gherkin documents. The latter two are syntactic sugar if you have multiple Given, When or Then:

Given the Kettle costs $99
And the Kettle is out of stock

In Step Definitions you can use Given, When and Then. You'd use Given to implement both of the step definitions alone.

We're never going to add And and But as step definition methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants