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
We have the same issue. Our steps with "" use to return an empty string in the step, now we get null. Based on the Cucumber docs, we should get an empty string, link below.
Hi! We have a similar issue with the new cucumber version 6, which was working on 5.1.0. We had an step definition:
Given(/^(?:there are )?the following "([^"]+)" entities( on "([^"]+)" database)?:$/,functionexpectEntities(entityName,databaseName,entities,)
Before, when using it like:
Given the following "foo" entities:
databaseName was undefined, but now it's giving a null. This is particularly messing things up, because we were relying on that parameter to call a function which has a default value. Now, as it's getting null instead of undefined, it's trying to use null instead of the default value.
Context
Notice
This may be an issue on cucumber-expression, but I'm not sure.
Description
With cucumber-js version 5.1.0, the regexp
([^"]*)
was detected as an empty string if in the feature file it was empty.As of version 6, it's
null
.Example
The value equals ""
null
whereas it should just log an empty string.
The text was updated successfully, but these errors were encountered: