this.Then(/^I should see the list of employees left in year (\d+)$/, function (year) {
searchPage = this.page.search();
searchPage.verifySearchedEmployee();
searchPage.verifySearchResults();
this.end();
});
Now if i would like to use above step definition in any other scenario like below
Scenario: Edit left employee data in year 2016
When log in to application
And select employee from the year 2016 who are left
Then I should see the list of employees left in year 2016
When I click on first employee who left in 2016
Then i should see details of employee
So if i run above scenario, it terminates at step definition Then I should see the list of employees left in year 2016. It will not execute others steps.
So how to handle that situation