I had recently integrated cucumber with cypress and added the cucumber Full support plugin (VS CODE) to get the step suggestions when we develop feature files. Normally with the java-cucumber experience even though we define the step under Given when we write the feature file, the the step suggestions with pop up even if we are writing a Then scenario (Tool : Idea). But in this case, if we define a step with Then
Then("User click on Contact Us",() => {
cy.get('#basic-navbar-nav > div > a:nth-child(6)').click()
})
When we write the feature, the step suggestions will pop only if we start the step in feature with a Then
Feature: Login
Scenario Outline: Sample
Given User go to TestSite
Then User click on Contact Us
I want to know if we can write a step def which will be common to all Given, When, Then etc. In java-cucumber Intellij-Idea support I think we have a * option insted of Given, When , then etc. Is there a workaround for this in cypress ?