Replies: 1 comment
-
The When you use the Cucumber preprocessor with Cypress, it looks for step definitions in two places:
So, you can use the Please note that if you have step definitions with the same name in |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, so I have a framework built using cucumber on top of cypress.
I'm using this version: cypress-cucumber-preprocessor: ^4.0.1
According to the cucumber javascript docs (confirmed by the behavior), it is mandatory for cucumber to have a folder at the same level and with the same name as the feature file, so cucumber knows where to look for the step definitions. As such, my file structure is:
So login.feature, needs a folder at the same level called "login" where I store the step definitions and so on.
say all those feature files need these 2 steps for example
I have those 2 steps defined in all 3 files so It would make sense to have a common folder for common step definitions regarding navigation, clicks, etc.
How can I do that here? Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions