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
It means you have your .feature file that expresses your test scenarios, and then you have js/ts files where you define your "step definitions" that are effectively just the where you implement the test code.
So in order to have a step definition for the step When I do xxx, you add this code:
When('I do xxx',function(){// Implement step});
These step definition functions may be async as well. For example, this works:
I'm not super versed in the internals of Cypress, so it's hard for me to tell where it goes wrong, but the fact that other async step definitions work fine suggests that it's something to do with cypress-promise.
The text was updated successfully, but these errors were encountered:
Hi!
I'm using the Cypress plugin cypress-cucumber-preprocessor which lets you write Cypress tests in BDD format.
It means you have your
.feature
file that expresses your test scenarios, and then you havejs/ts
files where you define your "step definitions" that are effectively just the where you implement the test code.So in order to have a step definition for the step
When I do xxx
, you add this code:These step definition functions may be async as well. For example, this works:
So
cypress-cucumber-preprocessor
seems to be able to handle async step definitions just fine.But when I use
promisify
like this;then I get this error:
I'm not super versed in the internals of Cypress, so it's hard for me to tell where it goes wrong, but the fact that other async step definitions work fine suggests that it's something to do with
cypress-promise
.The text was updated successfully, but these errors were encountered: