@web/test-runner-playwright
Advanced tools
Comparing version 0.4.18 to 0.4.19
# @web/test-runner-playwright | ||
## 0.4.19 | ||
### Patch Changes | ||
- 02a3926: expose browser name from BrowserLauncher | ||
- 74cc129: implement commands API | ||
- Updated dependencies [02a3926] | ||
- Updated dependencies [74cc129] | ||
- @web/test-runner-core@0.6.22 | ||
## 0.4.18 | ||
@@ -4,0 +14,0 @@ |
@@ -13,3 +13,4 @@ import { LaunchOptions, Browser, Page } from 'playwright'; | ||
} | ||
export { PlaywrightLauncher }; | ||
export declare function playwrightLauncher(args?: PlaywrightLauncherArgs): PlaywrightLauncher; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.playwrightLauncher = void 0; | ||
exports.playwrightLauncher = exports.PlaywrightLauncher = void 0; | ||
const PlaywrightLauncher_1 = require("./PlaywrightLauncher"); | ||
Object.defineProperty(exports, "PlaywrightLauncher", { enumerable: true, get: function () { return PlaywrightLauncher_1.PlaywrightLauncher; } }); | ||
const validProductTypes = ['chromium', 'firefox', 'webkit']; | ||
@@ -6,0 +7,0 @@ function playwrightLauncher(args = {}) { |
@@ -1,2 +0,2 @@ | ||
import { Browser, Page, LaunchOptions } from 'playwright'; | ||
import playwright, { Browser, Page, LaunchOptions } from 'playwright'; | ||
import { BrowserLauncher, TestRunnerCoreConfig, Viewport } from '@web/test-runner-core'; | ||
@@ -14,2 +14,3 @@ import { PlaywrightLauncherPage } from './PlaywrightLauncherPage'; | ||
name: string; | ||
type: string; | ||
private config?; | ||
@@ -31,4 +32,5 @@ private testFiles?; | ||
stopSession(sessionId: string): Promise<import("@web/test-runner-core").SessionResult>; | ||
getPage(sessionId: string): playwright.Page; | ||
setViewport(sessionId: string, viewport: Viewport): Promise<void>; | ||
} | ||
//# sourceMappingURL=PlaywrightLauncher.d.ts.map |
@@ -17,2 +17,3 @@ "use strict"; | ||
this.createPageFunction = createPageFunction; | ||
this.type = 'playwright'; | ||
this.activePages = new Map(); | ||
@@ -88,2 +89,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.playwrightPage) !== null && _b !== void 0 ? _b : (_c = this.activeDebugPages.get(sessionId)) === null || _c === void 0 ? void 0 : _c.playwrightPage; | ||
if (!page) { | ||
throw new Error(`Could not find a page for session ${sessionId}`); | ||
} | ||
return page; | ||
} | ||
setViewport(sessionId, viewport) { | ||
@@ -90,0 +99,0 @@ const page = this.activePages.get(sessionId); |
{ | ||
"name": "@web/test-runner-playwright", | ||
"version": "0.4.18", | ||
"version": "0.4.19", | ||
"publishConfig": { | ||
@@ -38,3 +38,3 @@ "access": "public" | ||
"@web/browser-logs": "^0.0.1", | ||
"@web/test-runner-core": "^0.6.21", | ||
"@web/test-runner-core": "^0.6.22", | ||
"@web/test-runner-coverage-v8": "^0.0.4", | ||
@@ -44,6 +44,6 @@ "playwright": "^1.2.1" | ||
"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
28878
251