Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run Scenario Outline Examples using tags #489

Closed
phpworker opened this issue Dec 23, 2020 · 1 comment
Closed

Unable to run Scenario Outline Examples using tags #489

phpworker opened this issue Dec 23, 2020 · 1 comment

Comments

@phpworker
Copy link

Current behavior

Hello Everyone!
Maybe this is more a question, but couldn't also find any examples showing that this works with cypress-cucumber-preprocessor (great work btw!). For me, this specific feature is one of the main reasons for using this plugin in our company.

Consider the following scenario outline:

  @tag1
  Scenario Outline: I order <product> 
    Given I open Checkout with "<product>"
    When  I fill checkout form
    And   I click submit order button
    Then  I check if I am on Success Page

  @tag2
  Examples:
    | product           | 
    | product1         | 
    | product2         |

  @tag3
  Examples:
    | product           | 
    | product3         | 

this will run all Examples (as expected):
npx cypress open --env TAGS="@tag1"

this will not run any Examples:

npx cypress open --env TAGS="@tag2"
npx cypress open --env TAGS="@tag3"

Desired behavior

According to Cucumber Docs:
https://cucumber.io/docs/cucumber/api/#tags
tags should also work as per Examples, so I can easily decide which Examples I want to run.

Test code to reproduce

Versions

  • Cypress version: 6.2.0
  • Preprocessor version: 4.0.0
  • Node version: 13.7.0
@badeball
Copy link
Owner

Duplicate of #196.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants