I have a pretty small POM based project for learning Cucumber with Protractor. I am using TypeScript. I am trying to perform pretty basic actions (clicking on button, clicking on a menu item) on Angular IO home page.
| ├───e2e
│ ├───features
│ └───steps
│ ├───common
│ ├───getstarted
│ ├───learnmore
│ └───search
The features
directory contains the features files for the tests. An example is here - where I want to click on the "Get Started" button to go to the quickstart page.
Feature: Search
As a developer using Angular
I need to look-up classes and guidelines
So that I can concentrate on building awesome applications
Scenario: Click on Get Started
Given I am on the angular.io site
When I click on Get Started Button
Then I should see the Get Started Page
The steps
directory contains the step Definitions for the .feature
files, with the common steps being clubbed in common.ts
file inside steps
.
If I run a single feature file, then the execution works perfectly fine, however, if I add multiple .feature
in the feature
dir, then the execution breaks and it goes haywire.
I have tried various strategies, like grouping the .feature
and step file in one same dir, but nothing else is working.
Any pointers or help in this would be highly appreciated. A working reproducible repository is here.