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.
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.