Skip to content

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

fix(launch): default to non-zero launch timeout (#24440)

Dmitry Gozmane0cbb0882b7c
diff --git a/packages/playwright-core/src/server/electron/electron.ts b/packages/playwright-core/src/server/electron/electron.ts
index 07369d5991..90f90aad07 100644
--- a/packages/playwright-core/src/server/electron/electron.ts
+++ b/packages/playwright-core/src/server/electron/electron.ts
@@ -239,7 +239,7 @@ export class Electron extends SdkObject {
app = new ElectronApplication(this, browser, nodeConnection, launchedProcess);
await app.initialize();
return app;
- }, TimeoutSettings.timeout(options));
+ }, TimeoutSettings.launchTimeout(options));
}
}
diff --git a/packages/playwright-test/src/index.ts b/packages/playwright-test/src/index.ts
index 301ae79cfa..a5b56be61e 100644
--- a/packages/playwright-test/src/index.ts
+++ b/packages/playwright-test/src/index.ts
@@ -94,7 +94,6 @@ const playwrightFixtures: Fixtures<TestFixtures, WorkerFixtures> = ({
_browserOptions: [async ({ playwright, headless, channel, launchOptions, connectOptions, _artifactsDir }, use) => {
const options: LaunchOptions = {
handleSIGINT: false,
- timeout: 0,
...launchOptions,
};
if (headless !== undefined)