Skip to content

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

fix: make launch options in ffPlaywright optional (#637)

André Abreu199d094c6d2e
diff --git a/src/server/ffPlaywright.ts b/src/server/ffPlaywright.ts
index e9121214b0..d08626a9fa 100644
--- a/src/server/ffPlaywright.ts
+++ b/src/server/ffPlaywright.ts
@@ -63,7 +63,7 @@ export class FFPlaywright implements Playwright {
this._revision = preferredRevision;
}
- async launch(options: LaunchOptions): Promise<FFBrowser> {
+ async launch(options?: LaunchOptions): Promise<FFBrowser> {
const app = await this.launchBrowserApp(options);
const browser = await FFBrowser.connect(app.connectOptions());
// Hack: for typical launch scenario, ensure that close waits for actual process termination.