-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
I am unable to skip scenarios that are tagged within a feature. I am able to skip entire features though. Here is the example of my issue.
Script from package.json:
"doit:prod": "./node_modules/.bin/cypress-tags run -e TAGS='@feature-tag and not @production-only'"
Example:
@feature-tag
Feature:Example Login Page
Scenario: Validate Login Page Components
Given I visit the Example homepage
Then I validate username field on Example login page
Then I validate password field on Example login page
Then I validate login button on Example login page
Then I validate forgot password on Example login page
@production-only
Scenario: Login With Valid Credentials on Example Homepage
Given I visit the Example homepage
When I type valid username
And I type valid password
Then I expect to see "Example" as user on Example homepage
Expected Result:
I expect cypress to skip the Login With Valid Credentials on Example Homepage scenario.
Actual Result:
Cypress is running both tests.
I have also attempted just trying to skip the scenario without the tag on the feature and just implementing it on the scenario only and that did not work either.
"doit:prod": "./node_modules/.bin/cypress-tags run -e TAGS='not @production-only'",
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels