question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reports Multiple step definitions match error for steps that start with same text

See original GitHub issue

Upgrading 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:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
charlierudolphcommented, Aug 29, 2016

@andypols please reopen if you there is anything more you would like to discuss

0reactions
lock[bot]commented, Oct 24, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found