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
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead use [Stack Overflow](https://stackoverflow.com/questions/tagged/nightwatch.js+cucumber)
Current behavior
When wrapping client.getCookies in a promise, the step hangs forever if it is awaited or returned.
// works-ish (outputs, but only after the test has finished)Then(/blah/,()=>{constp=newPromise((resolve,reject)=>{client.getCookies((c)=>{try{resolve(c.value);}catch(e){reject(e);}});})p.then(console.log);});
waiting for a timeout in the test also seems to stop the getCookies callback being called.
// still only outputs after the test has finishedfunctionwait(ms){returnnewPromise((res)=>setTimeout(res,ms));}Then(/blah/,async()=>{constp=newPromise((resolve,reject)=>{client.getCookies((c)=>{try{resolve(c.value);}catch(e){reject(e);}});})p.then(console.log);awaitwait(5000);});
Expected/desired behavior
I should be able wait for getCookies.
Reproduction of the problem
TO DO.
Please tell us about your environment:
Tested natively on Linux and in Docker, image node:8.10.
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
Current behavior
When wrapping client.getCookies in a promise, the step hangs forever if it is awaited or returned.
waiting for a timeout in the test also seems to stop the getCookies callback being called.
Expected/desired behavior
I should be able wait for getCookies.
Reproduction of the problem
TO DO.
Please tell us about your environment:
Tested natively on Linux and in Docker, image node:8.10.
The text was updated successfully, but these errors were encountered: