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

Step undefined for steps with template string #229

Open
conradogarciaberrotaran opened this issue Sep 9, 2024 · 1 comment
Open

Step undefined for steps with template string #229

conradogarciaberrotaran opened this issue Sep 9, 2024 · 1 comment

Comments

@conradogarciaberrotaran
Copy link

conradogarciaberrotaran commented Sep 9, 2024

πŸ‘“ What did you see?

Steps that use templates are not found, for example:
image

When the step is defined:

image

βœ… What did you expect to see?

The step be defined

πŸ“¦ Which tool/library version are you using?

node v22.8.0
cucumber-language-server 1.6.0

πŸ”¬ How could we reproduce it?

  1. Add a step with template string, for example:
@step("The API returns status code {status_code}")
def check_return_status_code(context, status_code):
    response = context.response

    assert response.status_code == int(
        status_code
    )
  1. create a feature that uses that step
Feature: Example
  Scenario Outline: Example
    Then The API returns status code 201
  1. Check if the step is undefined

πŸ“š Any additional context?

Thank you for developing this tool :) would be great if you supported this as it's 90% of my use cases

@conradogarciaberrotaran
Copy link
Author

not sure if this is a duplicate of:
#205
if so, we can close this.

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

1 participant