@applitools/eyes-webdriverio 5.48.0 → 5.49.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,165 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.49.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-webdriverio@5.49.0...js/eyes-webdriverio@5.49.1) (2023-10-19)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/eyes bumped to 1.11.1
9
+ #### Bug Fixes
10
+
11
+ * fixed `serverUrl` configuration propagation ([247b7d8](https://github.com/applitools/eyes.sdk.javascript1/commit/247b7d88853dd1a9068d2d963582ad795752ace4))
12
+
13
+ ## [5.49.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-webdriverio-v5.48.1...js/eyes-webdriverio@5.49.0) (2023-10-17)
14
+
15
+
16
+ ### Features
17
+
18
+ * rework log event on opent eyes ([#1842](https://github.com/applitools/eyes.sdk.javascript1/issues/1842)) ([532756b](https://github.com/applitools/eyes.sdk.javascript1/commit/532756b75c1023967c3781316148c890dbcfaac8))
19
+
20
+
21
+ ### Code Refactoring
22
+
23
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
24
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * @applitools/utils bumped to 1.6.2
30
+ #### Code Refactoring
31
+
32
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
33
+ * @applitools/logger bumped to 2.0.12
34
+ #### Code Refactoring
35
+
36
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
37
+
38
+
39
+
40
+ * @applitools/socket bumped to 1.1.12
41
+ #### Code Refactoring
42
+
43
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
44
+
45
+
46
+
47
+ * @applitools/req bumped to 1.6.2
48
+ #### Code Refactoring
49
+
50
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
51
+
52
+
53
+
54
+ * @applitools/image bumped to 1.1.7
55
+ #### Bug Fixes
56
+
57
+ * avoid using ascii text decoder ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
58
+
59
+
60
+ #### Code Refactoring
61
+
62
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
63
+
64
+
65
+
66
+ * @applitools/spec-driver-selenium bumped to 1.5.62
67
+
68
+ * @applitools/spec-driver-puppeteer bumped to 1.2.4
69
+ #### Code Refactoring
70
+
71
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
72
+
73
+
74
+
75
+ * @applitools/ufg-client bumped to 1.9.6
76
+ #### Code Refactoring
77
+
78
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
79
+ * drop jsdom dependency ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
80
+
81
+
82
+
83
+ * @applitools/core bumped to 4.0.0
84
+ #### ⚠ BREAKING CHANGES
85
+
86
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936))
87
+
88
+ #### Features
89
+
90
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936)) ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
91
+
92
+
93
+ #### Bug Fixes
94
+
95
+ * upgrade dom-snapshot ([#1969](https://github.com/applitools/eyes.sdk.javascript1/issues/1969)) ([458beb8](https://github.com/applitools/eyes.sdk.javascript1/commit/458beb803aec3e6d51484a557b3eed8f537a709d))
96
+
97
+
98
+ #### Code Refactoring
99
+
100
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
101
+
102
+
103
+
104
+ * @applitools/nml-client bumped to 1.5.14
105
+
106
+ * @applitools/core-base bumped to 1.7.2
107
+ #### Code Refactoring
108
+
109
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
110
+
111
+
112
+
113
+ * @applitools/spec-driver-webdriver bumped to 1.0.48
114
+
115
+ * @applitools/driver bumped to 1.14.4
116
+ #### Code Refactoring
117
+
118
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
119
+
120
+
121
+
122
+ * @applitools/screenshoter bumped to 3.8.14
123
+ #### Bug Fixes
124
+
125
+ * allow css scrolling when taking screenshot of the webview ([2d3a257](https://github.com/applitools/eyes.sdk.javascript1/commit/2d3a2572768e7f979d16297ca316a79ab2538adb))
126
+
127
+
128
+ #### Code Refactoring
129
+
130
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
131
+
132
+
133
+
134
+ * @applitools/tunnel-client bumped to 1.2.4
135
+ #### Code Refactoring
136
+
137
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
138
+
139
+
140
+
141
+ * @applitools/ec-client bumped to 1.7.13
142
+ #### Code Refactoring
143
+
144
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
145
+
146
+
147
+
148
+ * @applitools/eyes bumped to 1.11.0
149
+ #### Features
150
+
151
+ * added more iOS devices ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
152
+ * rework log event on opent eyes ([#1842](https://github.com/applitools/eyes.sdk.javascript1/issues/1842)) ([532756b](https://github.com/applitools/eyes.sdk.javascript1/commit/532756b75c1023967c3781316148c890dbcfaac8))
153
+
154
+
155
+ #### Code Refactoring
156
+
157
+ * disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
158
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
159
+
160
+
161
+
162
+
3
163
  ## [5.48.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-webdriverio-v5.47.1...js/eyes-webdriverio@5.48.0) (2023-09-29)
4
164
 
5
165
 
@@ -203,12 +203,12 @@ async function build(env) {
203
203
  const { remote } = require(frameworkPath);
204
204
  const chromedriver = require('chromedriver');
205
205
  const parseEnv = require('@applitools/test-utils/src/parse-env');
206
- const { protocol, browser = '', emulation, capabilities, url, attach, proxy, configurable = true, args = [], headless, logLevel = 'silent', } = parseEnv(env, process.env.APPLITOOLS_WEBDRIVERIO_PROTOCOL);
206
+ const { protocol, browser = '', emulation, capabilities, url, attach, proxy, configurable = true, args = [], headless, logLevel = 'silent', } = parseEnv(env, process.env.APPLITOOLS_FRAMEWORK_PROTOCOL);
207
207
  const options = {
208
208
  capabilities: { browserName: browser, ...capabilities },
209
209
  logLevel,
210
- connectionRetryCount: 5,
211
- connectionRetryTimeout: 180000,
210
+ connectionRetryCount: 0,
211
+ connectionRetryTimeout: 2147483647 /* 32 bit positive int */,
212
212
  };
213
213
  if (browser === 'chrome' && protocol === 'cdp') {
214
214
  options.automationProtocol = 'devtools';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-webdriverio",
3
- "version": "5.48.0",
3
+ "version": "5.49.1",
4
4
  "description": "Applitools Eyes SDK for WebdriverIO",
5
5
  "keywords": [
6
6
  "eyes-webdriverio",
@@ -78,26 +78,26 @@
78
78
  "scripts": {
79
79
  "lint": "run --top-level eslint '**/*.ts'",
80
80
  "build": "run --top-level tspc --project tsconfig.build.v$([ ! -z $APPLITOOLS_FRAMEWORK_VERSION ] && echo $APPLITOOLS_FRAMEWORK_VERSION | cut -f1 -d'.' || echo 8).json",
81
- "generate:tests": "NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
81
+ "generate:tests": "APPLITOOLS_FRAMEWORK_PROTOCOL=${APPLITOOLS_FRAMEWORK_PROTOCOL:-wd} NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
82
82
  "test": "run test:it && run test:service && run test:coverage",
83
83
  "test:it": "MOCHA_GROUP=it run --top-level mocha './test/it/*.spec.ts' -r @applitools/test-utils/mocha-hooks/docker",
84
84
  "test:local": "run test:it && run test:service && MOCHA_OMIT_TAGS=sauce run test:coverage",
85
- "test:local:cdp": "APPLITOOLS_WEBDRIVERIO_PROTOCOL=cdp run test:local",
85
+ "test:local:cdp": "APPLITOOLS_FRAMEWORK_PROTOCOL=cdp run test:local",
86
86
  "test:sauce": "MOCHA_ONLY_TAGS=sauce run test:coverage",
87
87
  "test:service": "MOCHA_GROUP=service run --top-level mocha './test/service/unit/*.spec.js' && wdio run ./test/service/wdio.conf.js --autoCompileOpts.autoCompile=0 && wdio run ./test/service/no-config/wdio.no-config.conf.js --autoCompileOpts.autoCompile=0 && wdio run ./test/service/vg/wdio.vg.conf.js --autoCompileOpts.autoCompile=0",
88
- "test:coverage": "APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-webdriverio' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
88
+ "test:coverage": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-webdriverio' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' --parallel --jobs ${MOCHA_JOBS:-15} --exit",
89
89
  "setup": "run --top-level browsers:setup",
90
- "up:framework": "yarn add --dev --caret webdriverio${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
90
+ "up:framework": "echo \"$(jq '.devDependencies.webdriverio = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
91
91
  },
92
92
  "dependencies": {
93
- "@applitools/driver": "1.14.3",
94
- "@applitools/eyes": "1.10.0",
95
- "@applitools/spec-driver-webdriver": "1.0.47"
93
+ "@applitools/driver": "1.14.4",
94
+ "@applitools/eyes": "1.11.1",
95
+ "@applitools/spec-driver-webdriver": "1.0.48"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@applitools/api-extractor": "^1.2.22",
99
- "@applitools/bongo": "^5.6.1",
100
- "@applitools/generic": "^3.3.10",
99
+ "@applitools/bongo": "^5.7.0",
100
+ "@applitools/generic": "^3.4.1",
101
101
  "@applitools/test-utils": "^1.5.17",
102
102
  "@types/node": "^16.18.14",
103
103
  "@wdio/cli": "^8.14.4",
package/types/index.d.ts CHANGED
@@ -46,7 +46,7 @@ export class Eyes {
46
46
  check(name: string, checkSettings: CheckSettingsAutomation): Promise<MatchResult>;
47
47
  check(name: string, checkSettings: CheckSettingsImage): Promise<MatchResult>;
48
48
  check(target: {
49
- image: string | Buffer | URL;
49
+ image: string | URL | Buffer;
50
50
  name?: undefined | string;
51
51
  dom?: undefined | string;
52
52
  locationInViewport?: undefined | LocationPlain;
@@ -62,16 +62,16 @@ export class Eyes {
62
62
  checkElementBy(selector: EyesSelector<Selector>, timeout?: undefined | number, name?: undefined | string): Promise<MatchResult>;
63
63
  checkRegion(region: RegionPlain, name?: undefined | string, timeout?: undefined | number): Promise<MatchResult>;
64
64
  checkRegion(image: string, region: RegionPlain, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
65
- checkRegion(image: Buffer, region: RegionPlain, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
66
65
  checkRegion(image: URL, region: RegionPlain, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
66
+ checkRegion(image: Buffer, region: RegionPlain, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
67
67
  checkRegionByElement(element: Element, name?: undefined | string, timeout?: undefined | number): Promise<MatchResult>;
68
68
  checkRegionBy(selector: EyesSelector<Selector>, name?: undefined | string, timeout?: undefined | number, fully?: undefined | boolean): Promise<MatchResult>;
69
69
  checkRegionInFrame(frame: number, selector: EyesSelector<Selector>, timeout?: undefined | number, name?: undefined | string, fully?: undefined | boolean): Promise<MatchResult>;
70
70
  checkRegionInFrame(frame: Element, selector: EyesSelector<Selector>, timeout?: undefined | number, name?: undefined | string, fully?: undefined | boolean): Promise<MatchResult>;
71
71
  checkRegionInFrame(frame: EyesSelector<Selector>, selector: EyesSelector<Selector>, timeout?: undefined | number, name?: undefined | string, fully?: undefined | boolean): Promise<MatchResult>;
72
72
  checkImage(image: string, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
73
- checkImage(image: Buffer, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
74
73
  checkImage(image: URL, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
74
+ checkImage(image: Buffer, name?: undefined | string, ignoreMismatch?: undefined | boolean): Promise<MatchResult>;
75
75
  locate<TLocator extends string>(target: {
76
76
  image: string | Uint8Array | URL;
77
77
  size?: undefined | { width: number; height: number; };
@@ -1066,7 +1066,7 @@ export type CheckSettingsImagePlain = {
1066
1066
  };
1067
1067
  export class CheckSettingsImage {
1068
1068
  constructor(settings?: undefined | CheckSettingsImage, target?: undefined | {
1069
- image: string | Buffer | URL;
1069
+ image: string | URL | Buffer;
1070
1070
  name?: undefined | string;
1071
1071
  dom?: undefined | string;
1072
1072
  locationInViewport?: undefined | LocationPlain;
@@ -1074,7 +1074,7 @@ export class CheckSettingsImage {
1074
1074
  fullViewSize?: undefined | RectangleSizePlain;
1075
1075
  });
1076
1076
  constructor(settings?: undefined | CheckSettingsImagePlain, target?: undefined | {
1077
- image: string | Buffer | URL;
1077
+ image: string | URL | Buffer;
1078
1078
  name?: undefined | string;
1079
1079
  dom?: undefined | string;
1080
1080
  locationInViewport?: undefined | LocationPlain;
@@ -1082,8 +1082,8 @@ export class CheckSettingsImage {
1082
1082
  fullViewSize?: undefined | RectangleSizePlain;
1083
1083
  });
1084
1084
  image(image: string): CheckSettingsImage;
1085
- image(image: Buffer): CheckSettingsImage;
1086
1085
  image(image: URL): CheckSettingsImage;
1086
+ image(image: Buffer): CheckSettingsImage;
1087
1087
  buffer(imageBuffer: Buffer): CheckSettingsImage;
1088
1088
  base64(imageBase64: Buffer): CheckSettingsImage;
1089
1089
  path(imagePath: string): CheckSettingsImage;
@@ -1184,8 +1184,8 @@ export class CheckSettingsImage {
1184
1184
  }
1185
1185
  export type TargetImage = {
1186
1186
  image(image: string): CheckSettingsImage;
1187
- image(image: Buffer): CheckSettingsImage;
1188
1187
  image(image: URL): CheckSettingsImage;
1188
+ image(image: Buffer): CheckSettingsImage;
1189
1189
  buffer(imageBuffer: Buffer): CheckSettingsImage;
1190
1190
  base64(imageBase64: string): CheckSettingsImage;
1191
1191
  path(imagePath: string): CheckSettingsImage;
@@ -1194,8 +1194,8 @@ export type TargetImage = {
1194
1194
  };
1195
1195
  export const TargetImage: {
1196
1196
  image(image: string): CheckSettingsImage;
1197
- image(image: Buffer): CheckSettingsImage;
1198
1197
  image(image: URL): CheckSettingsImage;
1198
+ image(image: Buffer): CheckSettingsImage;
1199
1199
  buffer(imageBuffer: Buffer): CheckSettingsImage;
1200
1200
  base64(imageBase64: string): CheckSettingsImage;
1201
1201
  path(imagePath: string): CheckSettingsImage;