open the devtools for browser tests when debug is passed

This commit is contained in:
Connor Peet
2021-07-07 12:12:49 -07:00
parent b97c839e57
commit 583f6d1418
+1 -1
View File
@@ -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'));