Skip to content

Unable to skip specific scenarios #27

@jhutchinson6

Description

@jhutchinson6

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'",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions