Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 22, 2024

Conversation

garg3133
Copy link
Member

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.

Copy link

Status

  • ❌ No modified files found in the types directory.
    Please make sure to include types for any changes you have made. Thank you!.

@garg3133 garg3133 merged commit 5b74671 into nightwatchjs:main May 22, 2024
17 checks passed
@garg3133 garg3133 deleted the cucumber-end-issue branch May 22, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using browser.end with cucumber results into Error
1 participant