I am currently utilizing Cucumber to define some tests for the project I am working on, but as the application grows larger, I find myself in need of a more efficient structure.
project
| feature_files
| | app1.js
| | app2.js
| | app3.js
| | ...
| step_definitions
| ...
All of the applications within the project start their tests in a similar manner - with a start page where users input a variable and click a link. However, I face an issue where Cucumber detects multiple step definitions match
due to these initial steps being defined in each individual feature file.
After conducting some research, I have come across potential solutions, such as this solution in Java and a helpful suggestion on folder organization from this Stack Overflow answer. However, I am struggling to find a JavaScript-specific method for implementation.
My main question is: How can I create a common feature file that can be reused across multiple feature files?