fix: make launch options in ffPlaywright optional

This commit is contained in:
André Abreu 2020-01-24 21:03:28 +00:00
parent 834698ca6b
commit 8e8d8450a7

View file

@ -63,7 +63,7 @@ export class FFPlaywright implements Playwright {
this._revision = preferredRevision; this._revision = preferredRevision;
} }
async launch(options: LaunchOptions): Promise<FFBrowser> { async launch(options?: LaunchOptions): Promise<FFBrowser> {
const app = await this.launchBrowserApp(options); const app = await this.launchBrowserApp(options);
const browser = await FFBrowser.connect(app.connectOptions()); const browser = await FFBrowser.connect(app.connectOptions());
// Hack: for typical launch scenario, ensure that close waits for actual process termination. // Hack: for typical launch scenario, ensure that close waits for actual process termination.