alexkrechik / VSCucumberAutoComplete

Cucumber (Gherkin) Full Support Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete
MIT License
331 stars 80 forks source link

Add support for squish step expression "|any|" #429

Open qi55wyqu opened 2 years ago

qi55wyqu commented 2 years ago

Squish adds additional expressions in step definitions:

In python they are defined like this

@When("the user opens tab |any|")
def when_the_user_opens_tab(tab: str) -> bool:
    ...

Are there any available settings to match these definitions? I already tried

"cucumberautocomplete.gherkinDefinitionPart": "@(Step|Given|When|Then)\\(",
"cucumberautocomplete.stepRegExSymbol": "\""
alexkrechik commented 2 years ago

Hi! If your problem still be valid, it could be done using cucumberautocomplete.customParameters param, like:

  "cucumberautocomplete.customParameters": [
    {
      "parameter": "|any|",
      "value": "\\|.*\\|"
    }
  ]
ratin-kumar commented 2 years ago

In feature : Then I enter the facility code 2171 and select facility contains "2171-Rapid City," SD

In stepdefination: Then ('I enter the facility code {word} and select facility contains {string} {word}',(facility,facilityName,city) => { //code });

I have codded like above using cypress. But I am getting below error

"message": "Was unable to find step for \"Then I enter the facility code 2171 and select facility contains \"2171-Rapid