fix(firefox): be able to launch on headful+windows

This commit is contained in:
Joel Einbinder 2020-01-21 17:17:14 -08:00
parent b8bb58e48b
commit 8f4364c2b5

View file

@ -203,6 +203,8 @@ export class FFPlaywright implements Playwright {
firefoxArguments.push('-profile', userDataDir);
if (headless)
firefoxArguments.push('-headless');
else
firefoxArguments.push('-wait-for-browser');
firefoxArguments.push(...args);
if (args.every(arg => arg.startsWith('-')))
firefoxArguments.push('about:blank');