Lets say i have a scenario in feature file like below
Given I log in as "super" user
When I click on login
Then Home page is displayed
With corresponding step definitions:
[Given(@"I log in as ""(.*)"" user")]
public void GivenIHaveLogInAsUser(string p0)
{
ScenarioContext.Current.Pending();
}
Now I want to change
Given I log in as "super" user
To
Given I have logged in as "super" user
When I make this change in feature file how to get SpecFlow to make this change automatically in the step definition.
UPDATE
This feature was added in a fairly recent update, so you should be able to follow the instructions here, which basically say
previous answer
This is not possible I don't believe. you have 2 options:
like so:
This will allow steps with both pieces of text to match