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

* not recognized as a replacement for Given/Then/When keyword #25

Closed
molszews opened this issue Mar 1, 2021 · 3 comments
Closed

* not recognized as a replacement for Given/Then/When keyword #25

molszews opened this issue Mar 1, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@molszews
Copy link

molszews commented Mar 1, 2021

Given spec

Scenario: Card purchase

Given a user is signed in
And the user has a registered payment method
* card type is VISA from DE
* strong customer authentication is active
And the user makes an order
* requested delivery of 15 November
* package weight 0.5 kg and declared value 100 EUR

Lines starting with * will remain marked as Unresolved step
Changing * to And works as a workaround

@nemesv nemesv added the bug Something isn't working label Mar 1, 2021
@Socolin
Copy link
Collaborator

Socolin commented Mar 1, 2021

Does * should be consider as And or is it more complex ?

Currently it's being interpreted as another step kind since the * can be found in all step kind in the i18n.json

If it's just an And it can be handled at the top of GherkinStepKind GetStepKind(string language, string keyword)

@nemesv
Copy link
Contributor

nemesv commented Mar 1, 2021

The * should be treated as And/But so we can handle it in the GetStepKind.

@Socolin
Copy link
Collaborator

Socolin commented Mar 2, 2021

This should be fixed in master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants