fix(firefox): do not create first window on start (#1727)
This commit is contained in:
parent
99c3f2b279
commit
a1ffed6052
|
|
@ -185,8 +185,13 @@ export class Firefox implements BrowserType<FFBrowser> {
|
||||||
firefoxArguments.push('-juggler', String(port));
|
firefoxArguments.push('-juggler', String(port));
|
||||||
firefoxArguments.push(...args);
|
firefoxArguments.push(...args);
|
||||||
|
|
||||||
if (args.every(arg => arg.startsWith('-')))
|
if (launchType === 'persistent') {
|
||||||
firefoxArguments.push('about:blank');
|
if (args.every(arg => arg.startsWith('-')))
|
||||||
|
firefoxArguments.push('about:blank');
|
||||||
|
} else {
|
||||||
|
firefoxArguments.push('-silent');
|
||||||
|
}
|
||||||
|
|
||||||
return firefoxArguments;
|
return firefoxArguments;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ async function testSignal(browserType, action, exitOnClose) {
|
||||||
handleSIGINT: true,
|
handleSIGINT: true,
|
||||||
handleSIGTERM: true,
|
handleSIGTERM: true,
|
||||||
handleSIGHUP: true,
|
handleSIGHUP: true,
|
||||||
|
executablePath: browserType.executablePath(),
|
||||||
});
|
});
|
||||||
const res = spawn('node', [path.join(__dirname, 'fixtures', 'closeme.js'), playwrightPath, browserType.name(), JSON.stringify(options), exitOnClose ? 'true' : '']);
|
const res = spawn('node', [path.join(__dirname, 'fixtures', 'closeme.js'), playwrightPath, browserType.name(), JSON.stringify(options), exitOnClose ? 'true' : '']);
|
||||||
let wsEndPointCallback;
|
let wsEndPointCallback;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue