@empiricalrun/playwright-utils 0.19.36 → 0.19.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @empiricalrun/playwright-utils
2
2
 
3
+ ## 0.19.38
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [070c16a]
8
+ - @empiricalrun/test-gen@0.42.26
9
+
10
+ ## 0.19.37
11
+
12
+ ### Patch Changes
13
+
14
+ - 10e354f: fix: updated viewport for browser session
15
+ - Updated dependencies [2babfe0]
16
+ - @empiricalrun/llm@0.9.34
17
+ - @empiricalrun/test-gen@0.42.25
18
+
3
19
  ## 0.19.36
4
20
 
5
21
  ### Patch Changes
package/dist/config.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { type PlaywrightTestConfig } from "@playwright/test";
1
+ import { devices as pwDevices, type PlaywrightTestConfig } from "@playwright/test";
2
2
  export declare function chromeStablePath(): string;
3
3
  export declare const baseConfig: PlaywrightTestConfig;
4
+ export declare const devices: typeof pwDevices;
4
5
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAa7D,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;AAED,eAAO,MAAM,UAAU,EAAE,oBA6BxB,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,SAAS,EACpB,KAAK,oBAAoB,EAC1B,MAAM,kBAAkB,CAAC;AAa1B,wBAAgB,gBAAgB,IAAI,MAAM,CAazC;AAED,eAAO,MAAM,UAAU,EAAE,oBA6BxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,OAAO,SAc5B,CAAC"}
package/dist/config.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.baseConfig = exports.chromeStablePath = void 0;
3
+ exports.devices = exports.baseConfig = exports.chromeStablePath = void 0;
4
+ const test_1 = require("@playwright/test");
4
5
  function getPlatformOS() {
5
6
  const platform = process.platform;
6
7
  if (platform === "win32") {
@@ -61,3 +62,15 @@ exports.baseConfig = {
61
62
  },
62
63
  timeout: 15 * 60 * 1000,
63
64
  };
65
+ exports.devices = Object.entries(test_1.devices).reduce((acc, [name, device]) => ({
66
+ ...acc,
67
+ [name]: {
68
+ ...device,
69
+ viewport: name.includes("Desktop")
70
+ ? {
71
+ width: 1366,
72
+ height: 768,
73
+ }
74
+ : device.viewport,
75
+ },
76
+ }), {});
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from "./auth";
2
2
  export { solveRecaptcha } from "./captcha";
3
- export { baseConfig, chromeStablePath } from "./config";
3
+ export { baseConfig, chromeStablePath, devices } from "./config";
4
4
  export * from "./email";
5
5
  export * from "./playwright-extensions";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACxD,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACjE,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -14,12 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.chromeStablePath = exports.baseConfig = exports.solveRecaptcha = void 0;
17
+ exports.devices = exports.chromeStablePath = exports.baseConfig = exports.solveRecaptcha = void 0;
18
18
  __exportStar(require("./auth"), exports);
19
19
  var captcha_1 = require("./captcha");
20
20
  Object.defineProperty(exports, "solveRecaptcha", { enumerable: true, get: function () { return captcha_1.solveRecaptcha; } });
21
21
  var config_1 = require("./config");
22
22
  Object.defineProperty(exports, "baseConfig", { enumerable: true, get: function () { return config_1.baseConfig; } });
23
23
  Object.defineProperty(exports, "chromeStablePath", { enumerable: true, get: function () { return config_1.chromeStablePath; } });
24
+ Object.defineProperty(exports, "devices", { enumerable: true, get: function () { return config_1.devices; } });
24
25
  __exportStar(require("./email"), exports);
25
26
  __exportStar(require("./playwright-extensions"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empiricalrun/playwright-utils",
3
- "version": "0.19.36",
3
+ "version": "0.19.38",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -42,9 +42,9 @@
42
42
  "playwright-core": "1.47.1",
43
43
  "puppeteer-extra-plugin-recaptcha": "^3.6.8",
44
44
  "rimraf": "^6.0.1",
45
- "@empiricalrun/llm": "^0.9.33",
46
- "@empiricalrun/test-gen": "^0.42.24",
47
- "@empiricalrun/r2-uploader": "^0.3.8"
45
+ "@empiricalrun/llm": "^0.9.34",
46
+ "@empiricalrun/r2-uploader": "^0.3.8",
47
+ "@empiricalrun/test-gen": "^0.42.26"
48
48
  },
49
49
  "scripts": {
50
50
  "dev": "tsc --build --watch",