mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
open the devtools for browser tests when debug is passed
This commit is contained in:
parent
b97c839e57
commit
583f6d1418
|
@ -146,7 +146,7 @@ function consoleLogFn(msg) {
|
|||
}
|
||||
|
||||
async function runTestsInBrowser(testModules, browserType) {
|
||||
const browser = await playwright[browserType].launch({ headless: !Boolean(argv.debug) });
|
||||
const browser = await playwright[browserType].launch({ headless: !Boolean(argv.debug), devtools: Boolean(argv.debug) });
|
||||
const context = await browser.newContext();
|
||||
const page = await context.newPage();
|
||||
const target = url.pathToFileURL(path.join(__dirname, 'renderer.html'));
|
||||
|
|
Loading…
Reference in a new issue