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
Issue when migrating from 1.0.0 to 1.2.0 #601
Comments
this is cucmber: in one of your hooks or steps you've put a callback as a function parameter and then didnt call it: this.Before(function(scenario, callback) { so if you return a promise, just get rid of "callback" as a parameter => function (scenario) {...} |
no, we are not doing anything like that, instead we are hooking to gulp-cucumber ''beforeFeature" hook. This might be an issue. gulp-cucumber uses callback i suppose? |
can you provide your beforeFeature code? |
You can find it on: |
Can you get gulp to print a stacktrace? That way we might be able to nail down where the offending code is. The one recent change is now that registerHandler will throw a similar error as to what is described by @skadeglad. |
I am afraid but this is all stack trace I see :( |
I believe the error is in https://github.com/webdriverio/wdio-cucumber-framework |
@vytautas-pranskunas- can this be closed? Appears wdio-cucumber-framework has been updated |
Yes. Thanks |
Using cucumber-js
My hooks are:
What do I need to change ? |
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,
after cucumber version was updated i run into an issue and do not exactly understand how to fix it:
cucumber event handlers attached via registerHandler are now passed the associated object instead of an event
getPayloadItem will be removed in the next major release
C:\dev\Topic Analyst\Frontend\node_modules\cucumber\lib\cucumber\runtime\event_broadcaster.js:30
throw error;
^
function accepts a callback and returns a promise
0 passing (3.30s)
[10:43:31] 'cucumber' errored after 3.51 s
[10:43:31] Error in plugin 'gulp-webdriver'
Message:
wdio exited with code 1
Any idea? Is this gulp-cucumber issue or...?
The text was updated successfully, but these errors were encountered: