title: How to write a common step definition which can be used by Given, When, Then etc. in cypress Cucumber
body: <p>I had recently integrated cucumber with cypress and added the <a href="https://marketplace.visualstudio.com/items?itemName=alexkrechik.cucumberautocomplete" rel="nofollow noreferrer">cucumber Full support plugin</a> (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 <strong>Given</strong> when we write the feature file, the the step suggestions with pop up even if we are writing a <strong>Then</strong> scenario (Tool : Idea).
  But in this case, if we define a step with <strong>Then</strong></p>
  <pre><code>Then(&quot;User click on Contact Us&quot;,() =&gt; {
      cy.get('#basic-navbar-nav &gt; div &gt; a:nth-child(6)').click()
  })
  </code></pre>
  <p>When we write the feature, the step suggestions will pop only if we start the step in feature with a <strong>Then</strong></p>
  <pre><code>Feature: Login
  
      Scenario Outline: Sample
  
          Given User go to TestSite
          Then User click on Contact Us
  </code></pre>
  <p>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 ?</p>