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

This commit is contained in:
André Abreu 2020-01-24 21:27:49 +00:00 committed by Andrey Lushnikov
parent 834698ca6b
commit 199d094c6d

View file

@ -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.