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
const{ client }=require('nightwatch-cucumber');const{ Before, After }=require('cucumber');Before(()=>newPromise(resolve=>{console.log('Before start');setTimeout(()=>{console.log('Before end');resolve();},1);}));//I do this to clear the session for login/logout scenariosAfter(()=>client.execute(` localStorage.clear(); sessionStorage.clear();`).deleteCookies().refresh());
Being new to Javascript and nightwatch , I am trying to implement hooks using nightwatch cucumber.
The example section that you have provided looks incomplete as the hook example doesnt have any hooks implemented.
https://github.com/mucsi96/nightwatch-cucumber/tree/master/examples/hooks-example
It would be very helpful if you correct it .
The text was updated successfully, but these errors were encountered: