Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: kill electron process on ctrl+c (#5366)

Pavel Feldmand49a1d817410
diff --git a/src/server/electron/electron.ts b/src/server/electron/electron.ts
index 0279f6cf22..98082e693f 100644
--- a/src/server/electron/electron.ts
+++ b/src/server/electron/electron.ts
@@ -158,6 +158,9 @@ export class Electron {
cwd: options.cwd,
tempDirectories: [],
attemptToGracefullyClose: () => app!.close(),
+ handleSIGINT: true,
+ handleSIGTERM: true,
+ handleSIGHUP: true,
onExit: () => {},
});