nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.79k stars 1.31k forks source link

Fix error in Cucumber when session is closed in a test case itself. #4209

Closed garg3133 closed 4 months ago

garg3133 commented 4 months ago

Fixes: #3332.

Right now, even if the session is already closed inside a test case, Nightwatch still tries to close the session again in the After hook of Cucumber, resulting in an error.

With this PR, the session will only be closed in the After hook if it is not closed already.

github-actions[bot] commented 4 months ago

Status