Reports Multiple step definitions match error for steps that start with same text
See original GitHub issueUpgrading from 0.9.5 to 1.2.1 I’ve started seeing this error when different steps start with the same text. Here is an example
Multiple step definitions match:
/^I get redirected back to the (.*)$/ - features/step_definitions/authentication_steps.js:51
/^I get redirected back to the (.*) to complete the task (.*)$/ - features/step_definitions/sign_up_flow_steps.js:90
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Multiple Step Definitions match error in Cucumber
The Ambiguous error happens when 2 steps share the same regex/string in their step definition, as the runner has to decide which one...
Read more >Step Definitions - Cucumber Documentation
When Cucumber encounters a Gherkin step without a matching step definition, it will print a step definition snippet with a matching Cucumber Expression....
Read more >Step Definition - Cucumber - Tools QA
When Cucumber executes a Step in a Scenario it will look for a matching Step Definition to execute.
Read more >Step Definitions - SpecFlow's documentation
If the step definition method should match for steps having table or multi-line text arguments, additional Table and/or string parameters have to be...
Read more >How to fix cucumber step does not have matching glue code?
One little hack is to go to the associated step definition class -> Make a harmless/Dummy modification -> Save the class file. Now...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@andypols please reopen if you there is anything more you would like to discuss
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.