Socket
Socket
Sign inDemoInstall

@web/test-runner-playwright

Package Overview
Dependencies
159
Maintainers
7
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

8

CHANGELOG.md
# @web/test-runner-playwright
## 0.6.1
### Patch Changes
- 859008b: added experimental mode to test workflows where tests on firefox require the browser window to be focused
- Updated dependencies [859008b]
- @web/test-runner-core@0.8.2
## 0.6.0

@@ -4,0 +12,0 @@

1

dist/index.d.ts

@@ -12,2 +12,3 @@ import { LaunchOptions, Browser, Page } from 'playwright';

}) => Promise<Page>;
__experimentalWindowFocus__?: boolean;
}

@@ -14,0 +15,0 @@ export { PlaywrightLauncher };

2

dist/index.js

@@ -13,5 +13,5 @@ "use strict";

}
return new PlaywrightLauncher_1.PlaywrightLauncher(product, (_b = args.launchOptions) !== null && _b !== void 0 ? _b : {}, args.createPage);
return new PlaywrightLauncher_1.PlaywrightLauncher(product, (_b = args.launchOptions) !== null && _b !== void 0 ? _b : {}, args.createPage, !!args.__experimentalWindowFocus__);
}
exports.playwrightLauncher = playwrightLauncher;
//# sourceMappingURL=index.js.map

@@ -24,3 +24,4 @@ import playwright, { Browser, Page, LaunchOptions } from 'playwright';

private __launchBrowserPromise?;
constructor(product: ProductType, launchOptions: LaunchOptions, createPageFunction?: CreatePageFunction | undefined);
__experimentalWindowFocus__: boolean;
constructor(product: ProductType, launchOptions: LaunchOptions, createPageFunction?: CreatePageFunction | undefined, __experimentalWindowFocus__?: boolean);
initialize(config: TestRunnerCoreConfig, testFiles: string[]): Promise<void>;

@@ -27,0 +28,0 @@ stop(): Promise<void>;

@@ -13,3 +13,3 @@ "use strict";

class PlaywrightLauncher {
constructor(product, launchOptions, createPageFunction) {
constructor(product, launchOptions, createPageFunction, __experimentalWindowFocus__) {
this.product = product;

@@ -24,2 +24,3 @@ this.launchOptions = launchOptions;

this.name = capitalize(product);
this.__experimentalWindowFocus__ = !!__experimentalWindowFocus__;
}

@@ -26,0 +27,0 @@ async initialize(config, testFiles) {

{
"name": "@web/test-runner-playwright",
"version": "0.6.0",
"version": "0.6.1",
"publishConfig": {

@@ -42,3 +42,3 @@ "access": "public"

"dependencies": {
"@web/test-runner-core": "^0.8.0",
"@web/test-runner-core": "^0.8.2",
"@web/test-runner-coverage-v8": "^0.2.0",

@@ -48,3 +48,3 @@ "playwright": "^1.4.2"

"devDependencies": {
"@web/test-runner-mocha": "^0.3.1",
"@web/test-runner-mocha": "^0.4.0",
"portfinder": "^1.0.26"

@@ -51,0 +51,0 @@ },

@@ -13,2 +13,3 @@ import { LaunchOptions, Browser, Page } from 'playwright';

createPage?: (args: { config: TestRunnerCoreConfig; browser: Browser }) => Promise<Page>;
__experimentalWindowFocus__?: boolean;
}

@@ -26,3 +27,8 @@

return new PlaywrightLauncher(product, args.launchOptions ?? {}, args.createPage);
return new PlaywrightLauncher(
product,
args.launchOptions ?? {},
args.createPage,
!!args.__experimentalWindowFocus__,
);
}

@@ -28,2 +28,3 @@ import playwright, { Browser, Page, LaunchOptions } from 'playwright';

private __launchBrowserPromise?: Promise<Browser>;
public __experimentalWindowFocus__: boolean;

@@ -34,4 +35,6 @@ constructor(

private createPageFunction?: CreatePageFunction,
__experimentalWindowFocus__?: boolean,
) {
this.name = capitalize(product);
this.__experimentalWindowFocus__ = !!__experimentalWindowFocus__;
}

@@ -38,0 +41,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc