Balrog994 / cucumber-test-runner

An Extension for Visual Studio Code to Run and Debug CucumberJS Tests
MIT License
4 stars 6 forks source link

Scenarios under Rules are not recognized #2

Closed adsTestin closed 1 year ago

adsTestin commented 1 year ago

Hello, Thanks for this extention.

When the feature file contains rule(s), the extention doesn't recognize scenarios!

When I comment Rules, all works fine!

Have a nice day!

Balrog994 commented 1 year ago

Hi, thanks for your feedback 😄

I'll take a look at it, can you in the meantime provide a simple file to reproduce the problem?

Thank you

adsTestin commented 1 year ago

Feature: unrecognized scenarios under Rules Description: The purpose of this feature is to test scenarios under rule

Rule: Check rule 1 Scenario: Search a product and add the first product to the User basket Given User search for Lenovo Laptop When Add the first laptop that appears in the search result to the basket Then User basket should display with added item

Scenario: Navigate to a product and add the same to the User basket Given User navigate for Lenovo Laptop When Add the laptop to the basket Then User basket should display with added item

Rule: Check rule 2 Scenario: Search a product and add the first product to the User basket Given User search for Lenovo Laptop When Add the first laptop that appears in the search result to the basket Then User basket should display with added item