New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: function uses multiple asynchronous interfaces: callback and promise #872
Comments
Your Thoughts on updating the error message to include something about the fact that the callback interface is assumed because the step definition has X number of arguments? |
@charlierudolph Hey mate thanks for your reply, but I didnt quite understand why you said that my feature file does not have a table in it?
isnt how we pass the table in the feature file? Yeah the error message could be a bit more clearer.. |
I meant that in your feature file, your |
Uhh damn.. Yeah you are right.. I mistook table to be an |
Closing the issue as @charlierudolph helped me figure out my own coding error in the feature file. |
Glad its working for you. I'll open a separate issue for updating the error message to hopefully make this easier to figure out in the future |
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. |
Hello Everyone,
I have a case where I am unable to use async in the step definitions.
I have a simple scenario where in am logging in through the api interface of my application to fetch auth token
My feature file is:
my steps are :
And my helper functions in the BaseSteps.ts are as follows:
When i run my scenario it fails with the following error:
on the line where my Given starts
Please help me fix this error.
The text was updated successfully, but these errors were encountered: