I would like to streamline my testing process by using one feature file for both desktop and mobile tests. I am looking to run two separate tests, with one tagged as @mobile and the other as @desktop. By doing this, I can avoid creating a duplicate feature file for just one step.
Here is an example of what I have in mind:
Scenario: Steps will run conditionally if tagged
Given user is logged in
@mobile
When user clicks "logout link on mobile"
@desktop
When user clicks "logout link on desktop"
Then user will be logged out
When running the mobile test (with @~desktop in the config file), I want it to exclude the @desktop step, and vice versa.