You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that there is currently different behavior when it comes to validating steps in NativeScenario and native tests. In native tests, there is no error because the first match is picked up, but in NativeScenario it results in ambiguity. Here is the example:
step("I'm logged in as (?!known)(.+)")step("I'm logged in as (?<aKnownUser>Alice|Bob)")
// in feature file causes error
Given I'm logged in asBob
// in native test - fine
Given("I'm logged in as Bob")
It is definitely possible to rewrite those two steps to avoid ambiguity but I think framework should behave the same way in both scenarios.
The text was updated successfully, but these errors were encountered:
I noticed that there is currently different behavior when it comes to validating steps in
NativeScenario
and native tests. In native tests, there is no error because the first match is picked up, but inNativeScenario
it results in ambiguity. Here is the example:It is definitely possible to rewrite those two steps to avoid ambiguity but I think framework should behave the same way in both scenarios.
The text was updated successfully, but these errors were encountered: