mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
open the devtools for browser tests when debug is passed
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user