My cucumber test are not executed
I have configure my project correctly but when I do npm run test, it seems the cucumber tests are not recognized.
1) Scenario: Successful login # features\login.feature:3
? Given I am on the login page
Undefined. Implement with the following snippet:
Given('I am on the login page', function () {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
? When I enter valid username and password
Undefined. Implement with the following snippet:
When('I enter valid username and password', function () {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
? And I click on the login button
Undefined. Implement with the following snippet:
When('I click on the login button', function () {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
? Then I should be logged in
Undefined. Implement with the following snippet:
Then('I should be logged in', function () {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
2) Scenario: Successful logout # features\login.feature:9
? Given I am logged in
Undefined. Implement with the following snippet:
Given('I am logged in', function () {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
? When I click on the logout button
Undefined. Implement with the following snippet:
When('I click on the logout button', function () {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
? Then I should be logged out
Undefined. Implement with the following snippet:
Then('I should be logged out', function () {
// Write code here that turns the phrase above into concrete actions
return 'pending';
});
2 scenarios (2 undefined)
7 steps (7 undefined)
0m00.000s
Here is my loginSteps.js file