@web/test-runner-chrome
Advanced tools
Comparing version 0.1.0 to 0.2.0
# @web/test-runner-chrome | ||
## 0.2.0 | ||
### Minor Changes | ||
- 79f9e6b: open browser in debug | ||
## 0.1.0 | ||
### Minor Changes | ||
- 97e85e6: first setup |
@@ -16,5 +16,5 @@ "use strict"; | ||
const createUrl = (session) => `${serverAddress}?${PARAM_SESSION_ID}=${session.id}`; | ||
function launchBrowser() { | ||
function launchBrowser(options = {}) { | ||
if (puppeteer) { | ||
return puppeteer.launch({ args }); | ||
return puppeteer.launch(Object.assign(Object.assign({}, options), { args })); | ||
} | ||
@@ -30,3 +30,3 @@ else { | ||
} | ||
return puppeteer_core_1.launch({ executablePath, args }); | ||
return puppeteer_core_1.launch(Object.assign(Object.assign({}, options), { executablePath, args })); | ||
} | ||
@@ -53,3 +53,3 @@ } | ||
} | ||
debugBrowser = await launchBrowser(); | ||
debugBrowser = await launchBrowser({ devtools: true }); | ||
const page = await debugBrowser.newPage(); | ||
@@ -56,0 +56,0 @@ await page.goto(`${createUrl(session)}&${PARAM_DEBUG}=true`); |
{ | ||
"name": "@web/test-runner-chrome", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7610