@applitools/eyes-selenium 4.70.0 → 4.71.0

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,154 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.71.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-selenium-v4.70.1...js/eyes-selenium@4.71.0) (2023-10-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * 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))
9
+
10
+
11
+ ### Code Refactoring
12
+
13
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * @applitools/utils bumped to 1.6.2
19
+ #### Code Refactoring
20
+
21
+ * 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))
22
+ * @applitools/logger bumped to 2.0.12
23
+ #### Code Refactoring
24
+
25
+ * 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))
26
+
27
+
28
+
29
+ * @applitools/socket bumped to 1.1.12
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
+
34
+
35
+
36
+ * @applitools/req bumped to 1.6.2
37
+ #### Code Refactoring
38
+
39
+ * 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))
40
+
41
+
42
+
43
+ * @applitools/image bumped to 1.1.7
44
+ #### Bug Fixes
45
+
46
+ * avoid using ascii text decoder ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
47
+
48
+
49
+ #### Code Refactoring
50
+
51
+ * 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))
52
+
53
+
54
+
55
+ * @applitools/spec-driver-selenium bumped to 1.5.62
56
+
57
+ * @applitools/spec-driver-puppeteer bumped to 1.2.4
58
+ #### Code Refactoring
59
+
60
+ * 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))
61
+
62
+
63
+
64
+ * @applitools/ufg-client bumped to 1.9.6
65
+ #### Code Refactoring
66
+
67
+ * 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))
68
+ * drop jsdom dependency ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
69
+
70
+
71
+
72
+ * @applitools/core bumped to 4.0.0
73
+ #### ⚠ BREAKING CHANGES
74
+
75
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936))
76
+
77
+ #### Features
78
+
79
+ * update core to v4 ([#1936](https://github.com/applitools/eyes.sdk.javascript1/issues/1936)) ([1b68d39](https://github.com/applitools/eyes.sdk.javascript1/commit/1b68d3945d96b17b9ab1f1a87d352206fd0c81d6))
80
+
81
+
82
+ #### Bug Fixes
83
+
84
+ * upgrade dom-snapshot ([#1969](https://github.com/applitools/eyes.sdk.javascript1/issues/1969)) ([458beb8](https://github.com/applitools/eyes.sdk.javascript1/commit/458beb803aec3e6d51484a557b3eed8f537a709d))
85
+
86
+
87
+ #### Code Refactoring
88
+
89
+ * 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))
90
+
91
+
92
+
93
+ * @applitools/nml-client bumped to 1.5.14
94
+
95
+ * @applitools/core-base bumped to 1.7.2
96
+ #### Code Refactoring
97
+
98
+ * 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))
99
+
100
+
101
+
102
+ * @applitools/spec-driver-webdriver bumped to 1.0.48
103
+
104
+ * @applitools/driver bumped to 1.14.4
105
+ #### Code Refactoring
106
+
107
+ * 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))
108
+
109
+
110
+
111
+ * @applitools/screenshoter bumped to 3.8.14
112
+ #### Bug Fixes
113
+
114
+ * allow css scrolling when taking screenshot of the webview ([2d3a257](https://github.com/applitools/eyes.sdk.javascript1/commit/2d3a2572768e7f979d16297ca316a79ab2538adb))
115
+
116
+
117
+ #### Code Refactoring
118
+
119
+ * 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))
120
+
121
+
122
+
123
+ * @applitools/tunnel-client bumped to 1.2.4
124
+ #### Code Refactoring
125
+
126
+ * 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))
127
+
128
+
129
+
130
+ * @applitools/ec-client bumped to 1.7.13
131
+ #### Code Refactoring
132
+
133
+ * 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))
134
+
135
+
136
+
137
+ * @applitools/eyes bumped to 1.11.0
138
+ #### Features
139
+
140
+ * added more iOS devices ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
141
+ * 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))
142
+
143
+
144
+ #### Code Refactoring
145
+
146
+ * 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))
147
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
148
+
149
+
150
+
151
+
3
152
  ## [4.70.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-selenium-v4.69.1...js/eyes-selenium@4.70.0) (2023-09-29)
4
153
 
5
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-selenium",
3
- "version": "4.70.0",
3
+ "version": "4.71.0",
4
4
  "description": "Applitools Eyes SDK for Selenium WebDriver",
5
5
  "keywords": [
6
6
  "eyes-selenium",
@@ -32,22 +32,22 @@
32
32
  "scripts": {
33
33
  "lint": "run --top-level eslint '**/*.ts'",
34
34
  "build": "run --top-level tspc --project ./tsconfig.build.json",
35
- "generate:tests": "NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
35
+ "generate:tests": "APPLITOOLS_FRAMEWORK_PROTOCOL=wd NODE_OPTIONS='--experimental-import-meta-resolve --experimental-loader=@applitools/generic/dist/code-loader.js' generic ./test/generic/config.mjs",
36
36
  "test": "run test:coverage",
37
37
  "test:local": "MOCHA_OMIT_TAGS=sauce run test:coverage",
38
38
  "test:sauce": "MOCHA_ONLY_TAGS=sauce run test:coverage",
39
- "test:coverage": "APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-selenium' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' -r @applitools/test-utils/mocha-hooks/docker --parallel --jobs ${MOCHA_JOBS:-15} --exit",
39
+ "test:coverage": "APPLITOOLS_SHOW_LOGS=true APPLITOOLS_LOG_FILE=\"./logs/$(uuidgen).log\" APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-selenium' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' -r @applitools/test-utils/mocha-hooks/docker --parallel --jobs ${MOCHA_JOBS:-15} --exit",
40
40
  "setup": "run --top-level browsers:setup",
41
41
  "up:framework": "yarn add --dev --caret selenium-webdriver${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
42
42
  },
43
43
  "dependencies": {
44
- "@applitools/eyes": "1.10.0",
45
- "@applitools/spec-driver-selenium": "1.5.61"
44
+ "@applitools/eyes": "1.11.0",
45
+ "@applitools/spec-driver-selenium": "1.5.62"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@applitools/api-extractor": "^1.2.22",
49
- "@applitools/bongo": "^5.6.1",
50
- "@applitools/generic": "^3.3.10",
49
+ "@applitools/bongo": "^5.7.0",
50
+ "@applitools/generic": "^3.4.1",
51
51
  "@applitools/test-utils": "^1.5.17",
52
52
  "@types/node": "^12.20.55",
53
53
  "@types/selenium-webdriver": "^4.1.1",
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 | CheckSettingsImagePlain, 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 | CheckSettingsImage, 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;