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
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD

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'));