Unwanted simultaneous execution using Nightwatch2.0 and Cucumber #3066
Unanswered
pholland-hbc
asked this question in
Help Needed
Replies: 1 comment 5 replies
-
Can you provide an example? Are you trying to run cucumber directly from Nightwatch? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a fairly large library of cucumber functions that were running fine in NW 1.7 using nightwatch-api.
I am trying to migrate over to NW 2.0 but it appears that the cucumber commands are not fully completing before the subsequent command is launching.
Unfortunately our library (which we inherited from a third-party, no longer involved) did not appear to be aware of async/await and so most of the functionality was very reliant on the fact that NW 1.7 would fully complete one cucumber command before advancing to the next. To be able to get our library to function would require a fairly major re-write.
I think it would be very helpful to have cucumber complete one command prior to carrying on regardless of what is being executed. It is not very helpful to say:
Given I am on the website
When I login using valid credentials
Then the account page is displayed
if the check for account page is being executed before the previous steps have returned.
Perhaps we could make the cucumber test runner ensure the promise queue is empty prior to continuing?
Any solution would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions