Closed ChapelTandel closed 4 years ago
The extension should work with any version of VSCode. If there are errors like 'Was unable to find definition for the line', please ensure that extension settings are correct. You could update the ticket with step definition example and extension setting for this problem debugging.
Hi Alex,
Thanks for the quick response.
Please find the sted def and settings below:
Step definition:
import {Given, When, Then} from 'cucumber' import appFormPage from '../pageobjects/AppFormPage'
Given(/^I am on appForm page$/, ()=>{ appFormPage.Open(); })
When(/^I apply for an account$/, ()=>{ appFormPage.Populate(); })
Then(/^I see thank you page$/, ()=>{ console.log('World') })
Settings.json
{ "window.zoomLevel": 2, "workbench.iconTheme": "vscode-icons", "vsicons.dontShowNewVersionMessage": true,
"cucumberautocomplete.steps": [
"features/step-definitions/*.js"
],
"cucumberautocomplete.strictGherkinCompletion": true,
"cucumberautocomplete.syncfeatures": "features/*.feature",
"cucumberautocomplete.onTypeFormat": true,
"cucumberautocomplete.stepsInvariants": true,
"cucumberautocomplete.strictGherkinValidation": true,
"cucumberautocomplete.customParameters": [
]
}
The tests are running fine, so the features are connected to the steps correctly.
@alexkrechik any update on this?
@alexkrechik could you please look into this!
Possible reasons for your problem are:
It's all working fine now, and I haven't changed anything.
I remember updating my Windows OS.
Happy to close this issue.
Go to Step Definition isn't working for me.
I am seeing the yellow swirly line under the gherkin text.
I am using the latest VSCode Version 1.48.2.
Did anyone get it working with this version of VSCode?
I am using Cucumber with JS.