@applitools/eyes-playwright 1.35.2 → 1.36.1

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,92 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.36.1](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.36.0...js/eyes-playwright@1.36.1) (2025-02-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * playwright-windows ([#2789](https://github.com/Applitools-Dev/sdk/issues/2789)) ([1231309](https://github.com/Applitools-Dev/sdk/commit/1231309fbd3f88cf52aae3698392858c9ed8f6c5))
9
+
10
+ ## [1.36.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright-v1.35.3...js/eyes-playwright@1.36.0) (2025-01-30)
11
+
12
+
13
+ ### Features
14
+
15
+ * add playwright fixture ([#2412](https://github.com/Applitools-Dev/sdk/issues/2412)) ([0632e93](https://github.com/Applitools-Dev/sdk/commit/0632e93dd7f53029a8c5f4230d22a05abf5fefd4))
16
+ * check for new ufg balancer - cache result in getAccountInfo instead of makeCoreRequests ([#2692](https://github.com/Applitools-Dev/sdk/issues/2692)) ([e2a9705](https://github.com/Applitools-Dev/sdk/commit/e2a970594ffa6527798c5fac7a72188e30da986d))
17
+ * handle retries on the custom html report for playwright ([#2597](https://github.com/Applitools-Dev/sdk/issues/2597)) ([0a93555](https://github.com/Applitools-Dev/sdk/commit/0a935551f5dc939352de700ca904c83f578a1113))
18
+ * html report for playwright ([#2576](https://github.com/Applitools-Dev/sdk/issues/2576)) ([f93f164](https://github.com/Applitools-Dev/sdk/commit/f93f164a289f5676bcc9d650e5e3d90b8e6a6920))
19
+ * jsonFilePath in offline mode ([#2734](https://github.com/Applitools-Dev/sdk/issues/2734)) ([2f9fbe8](https://github.com/Applitools-Dev/sdk/commit/2f9fbe8fc3c5212db6b7cc58a98b041c3ffd5572))
20
+ * offline cli with config ([#2646](https://github.com/Applitools-Dev/sdk/issues/2646)) ([0589dc4](https://github.com/Applitools-Dev/sdk/commit/0589dc429a0c94451e957932106f258dadfd88cc))
21
+ * offline execution ([#2528](https://github.com/Applitools-Dev/sdk/issues/2528)) ([e6c3b9e](https://github.com/Applitools-Dev/sdk/commit/e6c3b9e3315203027551da3bfdecf90490edd029))
22
+ * playwright report - small ui fixes ([0297307](https://github.com/Applitools-Dev/sdk/commit/02973071be1faf3138773901214613b7f048df62))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * api reference url in playwright config ([c20e2a8](https://github.com/Applitools-Dev/sdk/commit/c20e2a872176e915411784698f1684375de0409a))
28
+ * ignore browser config with classic ([#2620](https://github.com/Applitools-Dev/sdk/issues/2620)) ([6098078](https://github.com/Applitools-Dev/sdk/commit/6098078baea000bbad0f1b42edbfc5489ab4eaf2))
29
+ * offline cli chalk error ([c7c659a](https://github.com/Applitools-Dev/sdk/commit/c7c659aa889080f2fc7763152db2447211fe1487))
30
+ * playwright docs links ([#2627](https://github.com/Applitools-Dev/sdk/issues/2627)) ([5f7c794](https://github.com/Applitools-Dev/sdk/commit/5f7c794a603c060e0082f0d29a56d1947bf44d8b))
31
+ * playwright fixture feedback ([#2617](https://github.com/Applitools-Dev/sdk/issues/2617)) ([8440631](https://github.com/Applitools-Dev/sdk/commit/8440631280c9a0e79ea2d973656e4c6fd9fb6bc5))
32
+ * playwright fixture run-example cli ([7243c7a](https://github.com/Applitools-Dev/sdk/commit/7243c7a88673fda2df3536d9efd60d371c1ff835))
33
+ * playwright fixture with ESM ([#2741](https://github.com/Applitools-Dev/sdk/issues/2741)) ([9319a87](https://github.com/Applitools-Dev/sdk/commit/9319a870571cb7321ba85cc9a60bdae2eb953c97))
34
+ * trigger playwright release ([1d3ea3e](https://github.com/Applitools-Dev/sdk/commit/1d3ea3e4d2059c12d8013f04c18f5facffbc5846))
35
+ * trigger release ([c97dbfc](https://github.com/Applitools-Dev/sdk/commit/c97dbfc89245f374917702a867b87f2794155e54))
36
+
37
+
38
+ ### Code Refactoring
39
+
40
+ * start linting "no-floating-promises" (wip) ([#2539](https://github.com/Applitools-Dev/sdk/issues/2539)) ([51b91cb](https://github.com/Applitools-Dev/sdk/commit/51b91cb15603f7d68e4bd6a16eb0f80e3f380295))
41
+
42
+
43
+ ### Dependencies
44
+
45
+ * @applitools/driver bumped to 1.20.4
46
+ #### Bug Fixes
47
+
48
+ * handle device screen info extraction gracefully ([#2757](https://github.com/Applitools-Dev/sdk/issues/2757)) ([92d0118](https://github.com/Applitools-Dev/sdk/commit/92d0118137b77e49d780092d110973df8ed8b40c))
49
+ * @applitools/ufg-client bumped to 1.16.3
50
+ #### Bug Fixes
51
+
52
+ * unthrottle renders in offline mode ([#2754](https://github.com/Applitools-Dev/sdk/issues/2754)) ([b65d816](https://github.com/Applitools-Dev/sdk/commit/b65d81610504ae725b7b52611282a1bb28a049fe))
53
+ * @applitools/core bumped to 4.31.0
54
+ #### Features
55
+
56
+ * remove iPhoneX from list of available UFG Safari devices ([#2756](https://github.com/Applitools-Dev/sdk/issues/2756)) ([e24d054](https://github.com/Applitools-Dev/sdk/commit/e24d054328df900fbc4988fdbf8213aadffa9a37))
57
+
58
+
59
+ #### Bug Fixes
60
+
61
+ * handle device screen info extraction gracefully ([#2757](https://github.com/Applitools-Dev/sdk/issues/2757)) ([92d0118](https://github.com/Applitools-Dev/sdk/commit/92d0118137b77e49d780092d110973df8ed8b40c))
62
+ * unthrottle renders in offline mode ([#2754](https://github.com/Applitools-Dev/sdk/issues/2754)) ([b65d816](https://github.com/Applitools-Dev/sdk/commit/b65d81610504ae725b7b52611282a1bb28a049fe))
63
+
64
+
65
+
66
+ * @applitools/dom-snapshot bumped to 4.11.15
67
+
68
+ * @applitools/spec-driver-webdriver bumped to 1.1.25
69
+
70
+ * @applitools/spec-driver-selenium bumped to 1.5.95
71
+
72
+ * @applitools/spec-driver-playwright bumped to 1.5.7
73
+
74
+ * @applitools/spec-driver-puppeteer bumped to 1.4.24
75
+
76
+ * @applitools/screenshoter bumped to 3.10.5
77
+
78
+ * @applitools/nml-client bumped to 1.8.24
79
+
80
+ * @applitools/ec-client bumped to 1.10.3
81
+
82
+ * @applitools/eyes bumped to 1.32.0
83
+ #### Features
84
+
85
+ * remove iPhoneX from list of available UFG Safari devices ([#2756](https://github.com/Applitools-Dev/sdk/issues/2756)) ([e24d054](https://github.com/Applitools-Dev/sdk/commit/e24d054328df900fbc4988fdbf8213aadffa9a37))
86
+
87
+
88
+
89
+
3
90
  ## [1.35.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes-playwright@1.35.1...js/eyes-playwright@1.35.2) (2025-01-22)
4
91
 
5
92
 
@@ -4,12 +4,14 @@ exports.getEyes = void 0;
4
4
  const test_1 = require("@playwright/test");
5
5
  const index_1 = require("../index");
6
6
  const eyesConfiguration_1 = require("./defaults/eyesConfiguration");
7
+ const url_1 = require("url");
7
8
  async function getEyes({ testInfo, eyesConfig, eyesRunner, page, }) {
8
9
  var _a, _b, _c, _d;
9
10
  if (page.__eyes) {
10
11
  return page.__eyes;
11
12
  }
12
- const playwrightConfig = (_b = (_a = ((testInfo.config.configFile ? await import(testInfo.config.configFile) : {}))) === null || _a === void 0 ? void 0 : _a.use) === null || _b === void 0 ? void 0 : _b.eyesConfig;
13
+ const { configFile } = testInfo.config;
14
+ const playwrightConfig = (_b = (_a = ((configFile ? await import((0, url_1.pathToFileURL)(configFile).href) : {}))) === null || _a === void 0 ? void 0 : _a.use) === null || _b === void 0 ? void 0 : _b.eyesConfig;
13
15
  const projectConfig = testInfo.project.use.eyesConfig;
14
16
  const configuration = (0, eyesConfiguration_1.getFinalEyesConfiguration)({
15
17
  playwrightConfig,
@@ -32,6 +32,7 @@ var toHaveScreenshot_1 = require("./toHaveScreenshot");
32
32
  Object.defineProperty(exports, "expect", { enumerable: true, get: function () { return toHaveScreenshot_1.expect; } });
33
33
  const utils = __importStar(require("@applitools/utils"));
34
34
  const reporter_1 = require("./reporter");
35
+ const url_1 = require("url");
35
36
  exports.test = test_1.test.extend({
36
37
  eyesConfig: [{}, { option: true }],
37
38
  eyesRunner: [
@@ -132,9 +133,8 @@ function writeResultsWhenReady({ eyes, runner, testInfo }) {
132
133
  }
133
134
  async function getEyesConfigForWorker(workerInfo) {
134
135
  var _a, _b, _c;
135
- const playwrightConfig = (_b = (_a = ((workerInfo.config.configFile
136
- ? await import(workerInfo.config.configFile)
137
- : {}))) === null || _a === void 0 ? void 0 : _a.use) === null || _b === void 0 ? void 0 : _b.eyesConfig;
136
+ const { configFile } = workerInfo.config;
137
+ const playwrightConfig = (_b = (_a = ((configFile ? await import((0, url_1.pathToFileURL)(configFile).href) : {}))) === null || _a === void 0 ? void 0 : _a.use) === null || _b === void 0 ? void 0 : _b.eyesConfig;
138
138
  const projectConfig = workerInfo.project.use.eyesConfig;
139
139
  const eyesConfig = {
140
140
  ...playwrightConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-playwright",
3
- "version": "1.35.2",
3
+ "version": "1.36.1",
4
4
  "description": "Applitools Eyes SDK for Playwright",
5
5
  "keywords": [
6
6
  "eyes-playwright",
@@ -53,14 +53,14 @@
53
53
  "generate:tests": "NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
54
54
  "test": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Tests: eyes-playwright' APPLITOOLS_BATCH_ID=$(uuidgen) run --top-level mocha './**/*.spec.{js,ts}' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
55
55
  "test:coverage": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-playwright' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
56
- "test:fixture": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-playwright-fixture' APPLITOOLS_BATCH_ID=$(uuidgen) run playwright test",
56
+ "test:fixture": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(npx uuid).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-playwright-fixture' APPLITOOLS_BATCH_ID=$(npx uuid) run playwright test",
57
57
  "setup": "run playwright:setup",
58
58
  "playwright:setup": "yarn playwright install --with-deps chromium firefox webkit",
59
59
  "up:framework": "echo \"$(jq '.devDependencies.playwright = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
60
60
  },
61
61
  "dependencies": {
62
- "@applitools/eyes": "1.31.2",
63
- "@applitools/spec-driver-playwright": "1.5.6",
62
+ "@applitools/eyes": "1.32.1",
63
+ "@applitools/spec-driver-playwright": "1.5.7",
64
64
  "@applitools/utils": "1.7.7",
65
65
  "@inquirer/prompts": "7.0.1",
66
66
  "chalk": "4.1.2",
package/types/index.d.ts CHANGED
@@ -956,7 +956,7 @@ export enum FailureReport {
956
956
  IMMEDIATE = 'IMMEDIATE',
957
957
  ON_CLOSE = 'ON_CLOSE'
958
958
  }
959
- export type IosDeviceNamePlain = "iPhone X" | "iPhone 14 Plus" | "iPhone 14 Pro" | "iPhone 15 Pro" | "iPhone XR" | "iPhone 11" | "iPhone 11 Pro Max" | "iPhone 11 Pro" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad (10th generation)" | "iPad mini (6th generation)" | "iPad Air (4th generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPhone SE (2nd generation)" | "iPhone SE (3rd generation)" | "iPhone Xs" | "iPhone 12" | "iPhone 12 mini" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 13" | "iPhone 13 mini" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 14" | "iPhone 14 Pro Max" | "iPhone 15" | "iPhone 15 Pro Max" | "iPhone 15 Plus" | "iPhone 16" | "iPhone 16 Pro Max" | "iPhone 16 Pro" | "iPhone 16 Plus";
959
+ export type IosDeviceNamePlain = "iPhone 14 Plus" | "iPhone 14 Pro" | "iPhone 15 Pro" | "iPhone XR" | "iPhone 11" | "iPhone 11 Pro Max" | "iPhone 11 Pro" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad (10th generation)" | "iPad mini (6th generation)" | "iPad Air (4th generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPhone SE (2nd generation)" | "iPhone SE (3rd generation)" | "iPhone Xs" | "iPhone 12" | "iPhone 12 mini" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 13" | "iPhone 13 mini" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 14" | "iPhone 14 Pro Max" | "iPhone 15" | "iPhone 15 Pro Max" | "iPhone 15 Plus" | "iPhone 16" | "iPhone 16 Pro Max" | "iPhone 16 Pro" | "iPhone 16 Plus";
960
960
  export enum IosDeviceName {
961
961
  iPad_7 = 'iPad (7th generation)',
962
962
  iPad_9 = 'iPad (9th generation)',
@@ -969,7 +969,6 @@ export enum IosDeviceName {
969
969
  iPad_Pro_11_inch_4 = 'iPad Pro (11-inch) (4th generation)',
970
970
  iPhone_SE_2 = 'iPhone SE (2nd generation)',
971
971
  iPhone_SE_3 = 'iPhone SE (3rd generation)',
972
- iPhone_X = 'iPhone X',
973
972
  iPhone_XR = 'iPhone XR',
974
973
  iPhone_XS = 'iPhone Xs',
975
974
  iPhone_Xs = 'iPhone Xs',