cucumber/cucumber — Issue #213: Synonyms for step definition
Author: dzhariy
Created: 2012-01-15 23:44:06+00:00
State: open

I have the following lines in my features that executes exactly the same code in the step definition:
1. When I click on reports link
2. When I click the reports link
3. When I click on the "Reports" link

In order to reduce copy-paste I am currently call Step 1 from Step 2 and Step 3 as a nested step
But, I would like to have step definition syntax similar to the following:

When /I click on reports link/, /I click the reports link/, /I click on the "Reports" link/ do
# Click on reports link here!
End

And I wouldn’t like to avoid this situation with something like the following:

When /(I click on reports link)|(I click the reports link)|(I click on the "Reports" link)/ do
# Click on reports link here!
end

Dear Cucumber Developers, is it possible to implement such (similar) step definition syntax?