@applitools/eyes-puppeteer 1.22.4 → 1.23.2

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,202 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.23.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.23.1...js/eyes-puppeteer@1.23.2) (2023-12-12)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/core bumped to 4.4.0
9
+ #### Features
10
+
11
+ * sign windows binaries ([87fd29c](https://github.com/applitools/eyes.sdk.javascript1/commit/87fd29c8953fc512489c3bb00841ca91c5b2f030))
12
+ * support updated applitools lib protocol ([#2086](https://github.com/applitools/eyes.sdk.javascript1/issues/2086)) ([31b49fc](https://github.com/applitools/eyes.sdk.javascript1/commit/31b49fc411c452d0b3da341fd701309714484485))
13
+
14
+
15
+ #### Bug Fixes
16
+
17
+ * layout breakpoints reload and lazy load ([#2073](https://github.com/applitools/eyes.sdk.javascript1/issues/2073)) ([ab2c49e](https://github.com/applitools/eyes.sdk.javascript1/commit/ab2c49ea1ecff3fef337637a83aa5bef755a7b01))
18
+
19
+
20
+ #### Code Refactoring
21
+
22
+ * fix safe selector generation ([#2072](https://github.com/applitools/eyes.sdk.javascript1/issues/2072)) ([373f11b](https://github.com/applitools/eyes.sdk.javascript1/commit/373f11b0dfea6eab417eb7077e0cfec79877dc1b))
23
+
24
+
25
+
26
+ * @applitools/spec-driver-webdriver bumped to 1.0.52
27
+
28
+ * @applitools/spec-driver-selenium bumped to 1.5.66
29
+
30
+ * @applitools/spec-driver-puppeteer bumped to 1.3.2
31
+
32
+ * @applitools/driver bumped to 1.15.3
33
+ #### Bug Fixes
34
+
35
+ * layout breakpoints reload and lazy load ([#2073](https://github.com/applitools/eyes.sdk.javascript1/issues/2073)) ([ab2c49e](https://github.com/applitools/eyes.sdk.javascript1/commit/ab2c49ea1ecff3fef337637a83aa5bef755a7b01))
36
+ * @applitools/screenshoter bumped to 3.8.18
37
+
38
+ * @applitools/nml-client bumped to 1.6.0
39
+ #### Features
40
+
41
+ * support updated applitools lib protocol ([#2086](https://github.com/applitools/eyes.sdk.javascript1/issues/2086)) ([31b49fc](https://github.com/applitools/eyes.sdk.javascript1/commit/31b49fc411c452d0b3da341fd701309714484485))
42
+
43
+
44
+
45
+ * @applitools/tunnel-client bumped to 1.4.0
46
+ #### Features
47
+
48
+ * sign windows binaries ([87fd29c](https://github.com/applitools/eyes.sdk.javascript1/commit/87fd29c8953fc512489c3bb00841ca91c5b2f030))
49
+ * @applitools/ec-client bumped to 1.7.18
50
+
51
+ * @applitools/eyes bumped to 1.13.1
52
+
53
+
54
+ ## [1.23.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.23.0...js/eyes-puppeteer@1.23.1) (2023-12-05)
55
+
56
+
57
+ ### Dependencies
58
+
59
+ * @applitools/utils bumped to 1.7.0
60
+ #### Features
61
+
62
+ * add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
63
+ * @applitools/core bumped to 4.3.0
64
+ #### Features
65
+
66
+ * add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
67
+
68
+
69
+
70
+ * @applitools/logger bumped to 2.0.14
71
+
72
+ * @applitools/socket bumped to 1.1.14
73
+
74
+ * @applitools/req bumped to 1.6.4
75
+
76
+ * @applitools/image bumped to 1.1.9
77
+
78
+ * @applitools/spec-driver-webdriver bumped to 1.0.51
79
+
80
+ * @applitools/spec-driver-selenium bumped to 1.5.65
81
+
82
+ * @applitools/spec-driver-puppeteer bumped to 1.3.1
83
+
84
+ * @applitools/driver bumped to 1.15.2
85
+
86
+ * @applitools/screenshoter bumped to 3.8.17
87
+
88
+ * @applitools/nml-client bumped to 1.5.17
89
+
90
+ * @applitools/tunnel-client bumped to 1.3.2
91
+
92
+ * @applitools/ufg-client bumped to 1.9.9
93
+
94
+ * @applitools/ec-client bumped to 1.7.17
95
+
96
+ * @applitools/core-base bumped to 1.7.4
97
+ #### Bug Fixes
98
+
99
+ * do not block concurrency when server response is 503 ([#2049](https://github.com/applitools/eyes.sdk.javascript1/issues/2049)) ([f285009](https://github.com/applitools/eyes.sdk.javascript1/commit/f2850098f7522776c0d0a98bb1d958303628b149))
100
+
101
+
102
+
103
+ * @applitools/eyes bumped to 1.13.0
104
+ #### Features
105
+
106
+ * add Eyes.getResults method ([#2046](https://github.com/applitools/eyes.sdk.javascript1/issues/2046)) ([#2069](https://github.com/applitools/eyes.sdk.javascript1/issues/2069)) ([4d263e1](https://github.com/applitools/eyes.sdk.javascript1/commit/4d263e19cb5e5708790a1a7ef90ff8f3eee50d91))
107
+
108
+
109
+
110
+
111
+ ## [1.23.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.22.4...js/eyes-puppeteer@1.23.0) (2023-11-21)
112
+
113
+
114
+ ### Features
115
+
116
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
117
+
118
+
119
+ ### Dependencies
120
+
121
+ * @applitools/utils bumped to 1.6.3
122
+ #### Bug Fixes
123
+
124
+ * don't throw error for missing configuration file ([#2034](https://github.com/applitools/eyes.sdk.javascript1/issues/2034)) ([d084e7b](https://github.com/applitools/eyes.sdk.javascript1/commit/d084e7bf6e1727e3969622b4e597881f18241eb3))
125
+ * @applitools/socket bumped to 1.1.13
126
+
127
+ * @applitools/dom-snapshot bumped to 4.7.14
128
+ #### Bug Fixes
129
+
130
+ * preserve css declarations order in dom-snapshot ([#2037](https://github.com/applitools/eyes.sdk.javascript1/issues/2037)) ([1381851](https://github.com/applitools/eyes.sdk.javascript1/commit/1381851d46f28ea7e7724025c4eab33c81c4e144))
131
+ * @applitools/spec-driver-webdriver bumped to 1.0.50
132
+ #### Bug Fixes
133
+
134
+ * send devtool commands in chromium ([#2039](https://github.com/applitools/eyes.sdk.javascript1/issues/2039)) ([ff42043](https://github.com/applitools/eyes.sdk.javascript1/commit/ff42043c3d9f110eb7b22ab1a8448d77859923b4))
135
+
136
+
137
+
138
+ * @applitools/core bumped to 4.2.0
139
+ #### Features
140
+
141
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
142
+ * log driver environment info to splank ([#2023](https://github.com/applitools/eyes.sdk.javascript1/issues/2023)) ([11d0546](https://github.com/applitools/eyes.sdk.javascript1/commit/11d0546e76962b4c231e140b0229b8402da27f69))
143
+
144
+
145
+ #### Bug Fixes
146
+
147
+ * return result when error in the ufg ([#2020](https://github.com/applitools/eyes.sdk.javascript1/issues/2020)) ([28cdcc5](https://github.com/applitools/eyes.sdk.javascript1/commit/28cdcc5a859641d0edde032165c5068fcc580c8d))
148
+
149
+
150
+
151
+ * @applitools/spec-driver-selenium bumped to 1.5.64
152
+
153
+ * @applitools/spec-driver-puppeteer bumped to 1.3.0
154
+ #### Features
155
+
156
+ * added notification about outdated sdk version ([#2012](https://github.com/applitools/eyes.sdk.javascript1/issues/2012)) ([0f0a646](https://github.com/applitools/eyes.sdk.javascript1/commit/0f0a6462a56e7c97f9a22173c3b63af91e220adb))
157
+
158
+
159
+
160
+ * @applitools/screenshoter bumped to 3.8.16
161
+
162
+ * @applitools/tunnel-client bumped to 1.3.1
163
+
164
+ * @applitools/ec-client bumped to 1.7.16
165
+
166
+ * @applitools/core-base bumped to 1.7.3
167
+ #### Bug Fixes
168
+
169
+ * remove connection timeout in case of a long running tasks ([#2006](https://github.com/applitools/eyes.sdk.javascript1/issues/2006)) ([49a596a](https://github.com/applitools/eyes.sdk.javascript1/commit/49a596ac1b022a66b5c07ecfee458cc061891ce0))
170
+ * return result when error in the ufg ([#2020](https://github.com/applitools/eyes.sdk.javascript1/issues/2020)) ([28cdcc5](https://github.com/applitools/eyes.sdk.javascript1/commit/28cdcc5a859641d0edde032165c5068fcc580c8d))
171
+
172
+
173
+
174
+ * @applitools/logger bumped to 2.0.13
175
+
176
+ * @applitools/req bumped to 1.6.3
177
+
178
+ * @applitools/image bumped to 1.1.8
179
+
180
+ * @applitools/driver bumped to 1.15.1
181
+
182
+ * @applitools/nml-client bumped to 1.5.16
183
+
184
+ * @applitools/ufg-client bumped to 1.9.8
185
+
186
+ * @applitools/eyes bumped to 1.12.0
187
+ #### Features
188
+
189
+ * added `enableEyesLogs` configuration to the eyes service ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
190
+ * added `useExecutionCloud` configuration to the eyes service ([#2033](https://github.com/applitools/eyes.sdk.javascript1/issues/2033)) ([639ca8a](https://github.com/applitools/eyes.sdk.javascript1/commit/639ca8a021008d06fc09d19ca58ac3d00a18e4c3))
191
+
192
+
193
+ #### Bug Fixes
194
+
195
+ * error to unknown type in exception ([#2035](https://github.com/applitools/eyes.sdk.javascript1/issues/2035)) ([16d78c3](https://github.com/applitools/eyes.sdk.javascript1/commit/16d78c3cce90a5cb50cc2aa4e9ab6a58b7b93f89))
196
+
197
+
198
+
199
+
3
200
  ## [1.22.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.22.3...js/eyes-puppeteer@1.22.4) (2023-11-07)
4
201
 
5
202
 
@@ -16,6 +16,14 @@ function extractEnvironment() {
16
16
  // NOTE: ignore error
17
17
  }
18
18
  }
19
- return { versions };
19
+ let sdk = undefined;
20
+ try {
21
+ const { name, version } = require('../package.json');
22
+ sdk = { lang: 'js', name, currentVersion: version };
23
+ }
24
+ catch {
25
+ // NOTE: ignore error
26
+ }
27
+ return { versions, sdk };
20
28
  }
21
29
  exports.extractEnvironment = extractEnvironment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-puppeteer",
3
- "version": "1.22.4",
3
+ "version": "1.23.2",
4
4
  "description": "Applitools Eyes SDK for Puppeteer",
5
5
  "keywords": [
6
6
  "eyes-puppeteer",
@@ -32,20 +32,20 @@
32
32
  "test": "yarn test:coverage",
33
33
  "test:coverage": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-puppeteer' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
34
34
  "setup": "yarn puppeteer:setup",
35
- "puppeteer:setup": "PUPPETEER_PRODUCT=firefox node --require puppeteer/install.js --eval null",
35
+ "puppeteer:setup": "PUPPETEER_PRODUCT=firefox node --eval 'import(\"puppeteer/install.mjs\").catch(() => import(\"puppeteer/install.js\"))'",
36
36
  "up:framework": "echo \"$(jq '.devDependencies.puppeteer = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
37
37
  },
38
38
  "dependencies": {
39
- "@applitools/eyes": "1.11.4",
40
- "@applitools/spec-driver-puppeteer": "1.2.5"
39
+ "@applitools/eyes": "1.13.1",
40
+ "@applitools/spec-driver-puppeteer": "1.3.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@applitools/api-extractor": "^1.2.22",
44
- "@applitools/bongo": "^5.7.4",
44
+ "@applitools/bongo": "^5.7.6",
45
45
  "@applitools/generic": "^3.5.2",
46
46
  "@applitools/test-utils": "^1.5.17",
47
47
  "@types/node": "^12.20.55",
48
- "puppeteer": "^19.11.1"
48
+ "puppeteer": "^21.5.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "puppeteer": ">=5.3.0"
package/types/index.d.ts CHANGED
@@ -46,14 +46,7 @@ export class Eyes {
46
46
  open(appName?: undefined | string, testName?: undefined | string, viewportSize?: undefined | RectangleSizePlain, sessionType?: undefined | SessionTypePlain): Promise<void>;
47
47
  check(name: string, checkSettings: CheckSettingsAutomation): Promise<MatchResult>;
48
48
  check(name: string, checkSettings: CheckSettingsImage): Promise<MatchResult>;
49
- check(target: {
50
- image: string | URL | Buffer;
51
- name?: undefined | string;
52
- dom?: undefined | string;
53
- locationInViewport?: undefined | LocationPlain;
54
- locationInView?: undefined | LocationPlain;
55
- fullViewSize?: undefined | RectangleSizePlain;
56
- }, checkSettings?: undefined | CheckSettingsImagePlain): Promise<MatchResult>;
49
+ check(target: Image, checkSettings?: undefined | CheckSettingsImagePlain): Promise<MatchResult>;
57
50
  check(checkSettings?: undefined | CheckSettingsAutomationPlain): Promise<MatchResult>;
58
51
  checkWindow(name?: undefined | string, timeout?: undefined | number, fully?: undefined | boolean): Promise<MatchResult>;
59
52
  checkFrame(element: number, timeout?: undefined | number, name?: undefined | string): Promise<MatchResult>;
@@ -113,6 +106,7 @@ export class Eyes {
113
106
  abort(): Promise<TestResults>;
114
107
  abortAsync(): Promise<void>;
115
108
  abortIfNotClosed(): Promise<TestResultsPlain>;
109
+ getResults(throwErr?: undefined | boolean): Promise<Array<TestResults>>;
116
110
  getViewportSize(): Promise<RectangleSize>;
117
111
  setViewportSize(size: RectangleSizePlain): Promise<void>;
118
112
  getScrollRootElement(): Element | EyesSelector<Selector>;
@@ -1027,6 +1021,14 @@ export class BatchInfo implements Required<BatchInfoPlain> {
1027
1021
  addProperty(name: string, value: string): BatchInfo;
1028
1022
  addProperty(prop: PropertyDataPlain): BatchInfo;
1029
1023
  }
1024
+ export type Image = {
1025
+ image: string | URL | Buffer;
1026
+ name?: undefined | string;
1027
+ dom?: undefined | string;
1028
+ locationInViewport?: undefined | LocationPlain;
1029
+ locationInView?: undefined | LocationPlain;
1030
+ fullViewSize?: undefined | RectangleSizePlain;
1031
+ };
1030
1032
  export type CheckSettingsImagePlain = {
1031
1033
  name?: undefined | string;
1032
1034
  region?: undefined | RegionPlain;
@@ -1066,22 +1068,8 @@ export type CheckSettingsImagePlain = {
1066
1068
  densityMetrics?: undefined | { scaleRatio?: undefined | number; xdpi?: undefined | number; ydpi?: undefined | number; };
1067
1069
  };
1068
1070
  export class CheckSettingsImage {
1069
- constructor(settings?: undefined | CheckSettingsImagePlain, target?: undefined | {
1070
- image: string | URL | Buffer;
1071
- name?: undefined | string;
1072
- dom?: undefined | string;
1073
- locationInViewport?: undefined | LocationPlain;
1074
- locationInView?: undefined | LocationPlain;
1075
- fullViewSize?: undefined | RectangleSizePlain;
1076
- });
1077
- constructor(settings?: undefined | CheckSettingsImage, target?: undefined | {
1078
- image: string | URL | Buffer;
1079
- name?: undefined | string;
1080
- dom?: undefined | string;
1081
- locationInViewport?: undefined | LocationPlain;
1082
- locationInView?: undefined | LocationPlain;
1083
- fullViewSize?: undefined | RectangleSizePlain;
1084
- });
1071
+ constructor(settings?: undefined | CheckSettingsImagePlain, target?: undefined | Image);
1072
+ constructor(settings?: undefined | CheckSettingsImage, target?: undefined | Image);
1085
1073
  image(image: string): CheckSettingsImage;
1086
1074
  image(image: URL): CheckSettingsImage;
1087
1075
  image(image: Buffer): CheckSettingsImage;