@web/test-runner-chrome
Advanced tools
Comparing version 0.5.18 to 0.5.19
# @web/test-runner-chrome | ||
## 0.5.19 | ||
### Patch Changes | ||
- 02a3926: expose browser name from BrowserLauncher | ||
- 74cc129: implement commands API | ||
## 0.5.18 | ||
@@ -4,0 +11,0 @@ |
@@ -14,2 +14,3 @@ import * as puppeteerCore from 'puppeteer-core'; | ||
name: string; | ||
type: string; | ||
private config?; | ||
@@ -33,4 +34,5 @@ private testFiles?; | ||
stopSession(sessionId: string): Promise<import("@web/test-runner-core").SessionResult>; | ||
getPage(sessionId: string): puppeteerCore.Page; | ||
setViewport(sessionId: string, viewport: Viewport): Promise<void>; | ||
} | ||
//# sourceMappingURL=ChromeLauncher.d.ts.map |
@@ -18,2 +18,3 @@ "use strict"; | ||
this.createPageFunction = createPageFunction; | ||
this.type = 'puppeteer'; | ||
this.activePages = new Map(); | ||
@@ -125,2 +126,10 @@ this.activeDebugPages = new Map(); | ||
} | ||
getPage(sessionId) { | ||
var _a, _b, _c; | ||
const page = (_b = (_a = this.activePages.get(sessionId)) === null || _a === void 0 ? void 0 : _a.puppeteerPage) !== null && _b !== void 0 ? _b : (_c = this.activeDebugPages.get(sessionId)) === null || _c === void 0 ? void 0 : _c.puppeteerPage; | ||
if (!page) { | ||
throw new Error(`Could not find a page for session ${sessionId}`); | ||
} | ||
return page; | ||
} | ||
setViewport(sessionId, viewport) { | ||
@@ -127,0 +136,0 @@ const page = this.activePages.get(sessionId); |
@@ -13,3 +13,4 @@ import * as puppeteerCore from 'puppeteer-core'; | ||
} | ||
export { ChromeLauncher }; | ||
export declare function chromeLauncher(args?: ChromeLauncherArgs): ChromeLauncher; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.chromeLauncher = void 0; | ||
exports.chromeLauncher = exports.ChromeLauncher = void 0; | ||
const ChromeLauncher_1 = require("./ChromeLauncher"); | ||
Object.defineProperty(exports, "ChromeLauncher", { enumerable: true, get: function () { return ChromeLauncher_1.ChromeLauncher; } }); | ||
function chromeLauncher(args = {}) { | ||
@@ -6,0 +7,0 @@ var _a; |
{ | ||
"name": "@web/test-runner-chrome", | ||
"version": "0.5.18", | ||
"version": "0.5.19", | ||
"publishConfig": { | ||
@@ -44,6 +44,6 @@ "access": "public" | ||
"devDependencies": { | ||
"@web/test-runner-mocha": "^0.2.14", | ||
"@web/test-runner-server": "^0.5.13", | ||
"@web/test-runner-mocha": "^0.2.15", | ||
"@web/test-runner-server": "^0.5.15", | ||
"portfinder": "^1.0.26" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
34332
342