I'm looking for a way to make Features that depends on the previous execution of another Feature in Gherkin. It happens that I have the following situation:
Context
Feature 1: Search functionality
We have a search engine that allows us to access many features of the system (it is the only way to access these functionalities). The user types the type of functionality to be used (eg payment of service), they appear below (in a select multiple) several options to choose, the user selects an option and clicks the "continue" button. So far I find a functionality independent of any other.
Feature 2: Payment for service
In this feature three different types of payments of a service are made, but the first step is repetitive for all Scenarios, so it goes into a Background.
Need
I want to run Feature 2 , but Feature 1 must first run. I thought about using Tags, but how can I tell Gherkin or Cucumber which Feature to execute before another?
Thank you!