Skip to content

Commit f44313f

Browse files
committed
do not hang after successful run
1 parent 4fd4ff0 commit f44313f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/bdd/support/hooks.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
After,
3+
AfterAll,
34
Before,
45
type ITestCaseHookParameter,
56
setDefaultTimeout,
@@ -58,3 +59,10 @@ After(async function (this: PlaywrightWorld, scenario: ITestCaseHookParameter) {
5859
if (this.page) await this.page.close();
5960
if (this.context) await this.context.close();
6061
});
62+
63+
AfterAll(async () => {
64+
if (browser) {
65+
await browser.close();
66+
browser = undefined;
67+
}
68+
});

0 commit comments

Comments
 (0)