Skip to content

Commit

Permalink
Fix error in Cucumber when session is closed in a test case itself. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 authored May 22, 2024
1 parent 892b809 commit 5b74671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner/test-runners/cucumber/_setup_cucumber_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ After(async function(testCase) {
await this.client.transport.testSuiteFinished(error);
}

if (this.browser) {
if (this.browser?.sessionId) {
await this.browser.quit();
}
});

0 comments on commit 5b74671

Please sign in to comment.