@applitools/eyes-puppeteer 1.18.3 → 1.18.5
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 +120 -0
- package/package.json +5 -5
- package/types/index.d.ts +78 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,125 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.18.5](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.18.4...js/eyes-puppeteer@1.18.5) (2023-09-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/utils bumped to 1.6.0
|
|
9
|
+
#### Features
|
|
10
|
+
|
|
11
|
+
* add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
|
|
12
|
+
* @applitools/logger bumped to 2.0.10
|
|
13
|
+
|
|
14
|
+
* @applitools/socket bumped to 1.1.10
|
|
15
|
+
|
|
16
|
+
* @applitools/req bumped to 1.6.0
|
|
17
|
+
#### Features
|
|
18
|
+
|
|
19
|
+
* add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
|
|
20
|
+
* update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* @applitools/image bumped to 1.1.5
|
|
25
|
+
|
|
26
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.44
|
|
27
|
+
|
|
28
|
+
* @applitools/spec-driver-selenium bumped to 1.5.58
|
|
29
|
+
|
|
30
|
+
* @applitools/spec-driver-puppeteer bumped to 1.2.0
|
|
31
|
+
#### Features
|
|
32
|
+
|
|
33
|
+
* update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
* @applitools/driver bumped to 1.14.0
|
|
38
|
+
#### Features
|
|
39
|
+
|
|
40
|
+
* update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
* @applitools/screenshoter bumped to 3.8.10
|
|
45
|
+
|
|
46
|
+
* @applitools/nml-client bumped to 1.5.10
|
|
47
|
+
|
|
48
|
+
* @applitools/tunnel-client bumped to 1.2.2
|
|
49
|
+
|
|
50
|
+
* @applitools/ufg-client bumped to 1.8.0
|
|
51
|
+
#### Features
|
|
52
|
+
|
|
53
|
+
* add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
* @applitools/ec-client bumped to 1.7.7
|
|
58
|
+
|
|
59
|
+
* @applitools/core-base bumped to 1.5.3
|
|
60
|
+
|
|
61
|
+
* @applitools/core bumped to 3.10.1
|
|
62
|
+
|
|
63
|
+
* @applitools/eyes bumped to 1.8.1
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## [1.18.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.18.3...js/eyes-puppeteer@1.18.4) (2023-08-30)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Dependencies
|
|
70
|
+
|
|
71
|
+
* @applitools/utils bumped to 1.5.2
|
|
72
|
+
#### Bug Fixes
|
|
73
|
+
|
|
74
|
+
* fixed some types ([498b1d7](https://github.com/applitools/eyes.sdk.javascript1/commit/498b1d7c547df04773b64b66ee39cccb402c093e))
|
|
75
|
+
* @applitools/nml-client bumped to 1.5.9
|
|
76
|
+
#### Bug Fixes
|
|
77
|
+
|
|
78
|
+
* update broker url when server respond with error ([#1882](https://github.com/applitools/eyes.sdk.javascript1/issues/1882)) ([ab5a6ae](https://github.com/applitools/eyes.sdk.javascript1/commit/ab5a6ae8976b061bda8b56a9cc11c149e47d6dea))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
* @applitools/core bumped to 3.10.0
|
|
83
|
+
#### Features
|
|
84
|
+
|
|
85
|
+
* allowed running multiple classic test with different devices for applitoolsified native apps ([#1891](https://github.com/applitools/eyes.sdk.javascript1/issues/1891)) ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
* @applitools/logger bumped to 2.0.9
|
|
90
|
+
|
|
91
|
+
* @applitools/socket bumped to 1.1.9
|
|
92
|
+
|
|
93
|
+
* @applitools/req bumped to 1.5.4
|
|
94
|
+
|
|
95
|
+
* @applitools/image bumped to 1.1.4
|
|
96
|
+
|
|
97
|
+
* @applitools/spec-driver-webdriver bumped to 1.0.43
|
|
98
|
+
|
|
99
|
+
* @applitools/spec-driver-selenium bumped to 1.5.57
|
|
100
|
+
|
|
101
|
+
* @applitools/spec-driver-puppeteer bumped to 1.1.74
|
|
102
|
+
|
|
103
|
+
* @applitools/driver bumped to 1.13.6
|
|
104
|
+
|
|
105
|
+
* @applitools/screenshoter bumped to 3.8.9
|
|
106
|
+
|
|
107
|
+
* @applitools/tunnel-client bumped to 1.2.1
|
|
108
|
+
|
|
109
|
+
* @applitools/ufg-client bumped to 1.7.2
|
|
110
|
+
|
|
111
|
+
* @applitools/ec-client bumped to 1.7.6
|
|
112
|
+
|
|
113
|
+
* @applitools/core-base bumped to 1.5.2
|
|
114
|
+
|
|
115
|
+
* @applitools/eyes bumped to 1.8.0
|
|
116
|
+
#### Features
|
|
117
|
+
|
|
118
|
+
* added more iOS devices ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
3
123
|
## [1.18.3](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-puppeteer@1.18.2...js/eyes-puppeteer@1.18.3) (2023-08-18)
|
|
4
124
|
|
|
5
125
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-puppeteer",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.5",
|
|
4
4
|
"description": "Applitools Eyes SDK for Puppeteer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-puppeteer",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"up:framework": "yarn add --dev --caret puppeteer${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@applitools/eyes": "1.
|
|
46
|
-
"@applitools/spec-driver-puppeteer": "1.
|
|
45
|
+
"@applitools/eyes": "1.8.1",
|
|
46
|
+
"@applitools/spec-driver-puppeteer": "1.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@applitools/api-extractor": "^1.2.
|
|
49
|
+
"@applitools/api-extractor": "^1.2.22",
|
|
50
50
|
"@applitools/bongo": "^5.6.1",
|
|
51
|
-
"@applitools/generic": "^3.3.
|
|
51
|
+
"@applitools/generic": "^3.3.10",
|
|
52
52
|
"@applitools/test-utils": "^1.5.17",
|
|
53
53
|
"@types/node": "^12.20.55",
|
|
54
54
|
"puppeteer": "^19.11.1"
|
package/types/index.d.ts
CHANGED
|
@@ -358,7 +358,21 @@ export type TargetAutomation = {
|
|
|
358
358
|
webview(webview?: undefined | string): CheckSettingsAutomation;
|
|
359
359
|
webview(webview?: undefined | boolean): CheckSettingsAutomation;
|
|
360
360
|
};
|
|
361
|
+
export const TargetAutomation: {
|
|
362
|
+
window(): CheckSettingsAutomation;
|
|
363
|
+
region(region: (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })))): CheckSettingsAutomation;
|
|
364
|
+
region(region: LegacyRegionPlain): CheckSettingsAutomation;
|
|
365
|
+
frame(context: { frame: number | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })); scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })); }): CheckSettingsAutomation;
|
|
366
|
+
frame(frame: number, scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }))): CheckSettingsAutomation;
|
|
367
|
+
frame(frame: (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })), scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }))): CheckSettingsAutomation;
|
|
368
|
+
shadow(selector: string): CheckSettingsAutomation;
|
|
369
|
+
shadow(selector: Selector): CheckSettingsAutomation;
|
|
370
|
+
shadow(selector: { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }): CheckSettingsAutomation;
|
|
371
|
+
webview(webview?: undefined | string): CheckSettingsAutomation;
|
|
372
|
+
webview(webview?: undefined | boolean): CheckSettingsAutomation;
|
|
373
|
+
};
|
|
361
374
|
export type Target = TargetImage & TargetAutomation;
|
|
375
|
+
export const Target: TargetImage & TargetAutomation;
|
|
362
376
|
export type OCRRegion = { target: Element | RegionPlain | EyesSelector<Selector>; hint?: undefined | string; minMatch?: undefined | number; language?: undefined | string; };
|
|
363
377
|
export type ConfigurationPlain = {
|
|
364
378
|
debugScreenshots?: undefined | { save: boolean; path?: undefined | string; prefix?: undefined | string; };
|
|
@@ -775,33 +789,66 @@ export enum FailureReport {
|
|
|
775
789
|
IMMEDIATE = 'IMMEDIATE',
|
|
776
790
|
ON_CLOSE = 'ON_CLOSE'
|
|
777
791
|
}
|
|
778
|
-
export type IosDeviceNamePlain = "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone
|
|
792
|
+
export type IosDeviceNamePlain = "iPad Air 2" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 6s" | "iPhone 6s Plus" | "iPhone 7" | "iPhone 7 Plus" | "iPhone 8" | "iPhone 8 Plus" | "iPhone Xs" | "iPhone Xs Max" | "iPhone 12" | "iPhone 12 mini" | "iPhone 12 Pro" | "iPhone 12 Pro Max" | "iPhone 13" | "iPhone 13 mini" | "iPhone 13 Pro" | "iPhone 13 Pro Max" | "iPhone 14" | "iPhone 14 Plus" | "iPhone 14 Pro" | "iPhone 14 Pro Max" | "iPhone SE (1st generation)" | "iPhone SE (2nd generation)" | "iPhone SE (3rd generation)" | "iPad (5th generation)" | "iPad (6th generation)" | "iPad (7th generation)" | "iPad (8th generation)" | "iPad (9th generation)" | "iPad (10th generation)" | "iPad Air (3rd generation)" | "iPad Air (4th generation)" | "iPad Air (5th generation)" | "iPad mini 4" | "iPad mini (5th generation)" | "iPad mini (6th generation)" | "iPad Pro (9.7-inch)" | "iPad Pro (10.5-inch)" | "iPad Pro (11-inch) (1st generation)" | "iPad Pro (12.9-inch) (1st generation)" | "iPad Pro (11-inch) (2nd generation)" | "iPad Pro (12.9-inch) (2nd generation)" | "iPad Pro (11-inch) (3rd generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad Pro (12.9-inch) (4th generation)" | "iPad Pro (12.9-inch) (5th generation)" | "iPad Pro (12.9-inch) (6th generation)" | "iPod touch (7th generation)";
|
|
779
793
|
export enum IosDeviceName {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
iPhone_13 = 'iPhone 13',
|
|
785
|
-
iPhone_12_Pro_Max = 'iPhone 12 Pro Max',
|
|
786
|
-
iPhone_12_Pro = 'iPhone 12 Pro',
|
|
787
|
-
iPhone_12 = 'iPhone 12',
|
|
788
|
-
iPhone_12_mini = 'iPhone 12 mini',
|
|
789
|
-
iPhone_11_Pro = 'iPhone 11 Pro',
|
|
790
|
-
iPhone_11_Pro_Max = 'iPhone 11 Pro Max',
|
|
791
|
-
iPhone_11 = 'iPhone 11',
|
|
792
|
-
iPhone_XR = 'iPhone XR',
|
|
793
|
-
iPhone_XS = 'iPhone Xs',
|
|
794
|
-
iPhone_X = 'iPhone X',
|
|
794
|
+
iPhone_6s = 'iPhone 6s',
|
|
795
|
+
iPhone_6s_Plus = 'iPhone 6s Plus',
|
|
796
|
+
iPhone_7 = 'iPhone 7',
|
|
797
|
+
iPhone_7_Plus = 'iPhone 7 Plus',
|
|
795
798
|
iPhone_8 = 'iPhone 8',
|
|
796
799
|
iPhone_8_Plus = 'iPhone 8 Plus',
|
|
797
|
-
|
|
800
|
+
iPhone_X = 'iPhone X',
|
|
801
|
+
iPhone_XR = 'iPhone XR',
|
|
802
|
+
iPhone_Xs = 'iPhone Xs',
|
|
803
|
+
iPhone_XS = 'iPhone Xs',
|
|
804
|
+
iPhone_Xs_Max = 'iPhone Xs Max',
|
|
805
|
+
iPhone_11 = 'iPhone 11',
|
|
806
|
+
iPhone_11_Pro = 'iPhone 11 Pro',
|
|
807
|
+
iPhone_11_Pro_Max = 'iPhone 11 Pro Max',
|
|
808
|
+
iPhone_12 = 'iPhone 12',
|
|
809
|
+
iPhone_12_mini = 'iPhone 12 mini',
|
|
810
|
+
iPhone_12_Pro = 'iPhone 12 Pro',
|
|
811
|
+
iPhone_12_Pro_Max = 'iPhone 12 Pro Max',
|
|
812
|
+
iPhone_13 = 'iPhone 13',
|
|
813
|
+
iPhone_13_mini = 'iPhone 13 mini',
|
|
814
|
+
iPhone_13_Pro = 'iPhone 13 Pro',
|
|
815
|
+
iPhone_13_Pro_Max = 'iPhone 13 Pro Max',
|
|
816
|
+
iPhone_14 = 'iPhone 14',
|
|
817
|
+
iPhone_14_Plus = 'iPhone 14 Plus',
|
|
818
|
+
iPhone_14_Pro = 'iPhone 14 Pro',
|
|
819
|
+
iPhone_14_Pro_Max = 'iPhone 14 Pro Max',
|
|
798
820
|
iPhone_SE = 'iPhone SE (1st generation)',
|
|
799
|
-
|
|
800
|
-
|
|
821
|
+
iPhone_SE_1 = 'iPhone SE (1st generation)',
|
|
822
|
+
iPhone_SE_2 = 'iPhone SE (2nd generation)',
|
|
823
|
+
iPhone_SE_3 = 'iPhone SE (3rd generation)',
|
|
824
|
+
iPad_5 = 'iPad (5th generation)',
|
|
825
|
+
iPad_6 = 'iPad (6th generation)',
|
|
801
826
|
iPad_7 = 'iPad (7th generation)',
|
|
827
|
+
iPad_8 = 'iPad (8th generation)',
|
|
802
828
|
iPad_9 = 'iPad (9th generation)',
|
|
803
|
-
|
|
804
|
-
|
|
829
|
+
iPad_10 = 'iPad (10th generation)',
|
|
830
|
+
iPad_Air_2 = 'iPad Air 2',
|
|
831
|
+
iPad_Air_3 = 'iPad Air (3rd generation)',
|
|
832
|
+
iPad_Air_4 = 'iPad Air (4th generation)',
|
|
833
|
+
iPad_Air_5 = 'iPad Air (5th generation)',
|
|
834
|
+
iPad_mini_4 = 'iPad mini 4',
|
|
835
|
+
iPad_mini_5 = 'iPad mini (5th generation)',
|
|
836
|
+
iPad_mini_6 = 'iPad mini (6th generation)',
|
|
837
|
+
iPad_Pro_9_7_inch_1 = 'iPad Pro (9.7-inch)',
|
|
838
|
+
iPad_Pro_10_5_inch_1 = 'iPad Pro (10.5-inch)',
|
|
839
|
+
iPad_Pro_11_inch_1 = 'iPad Pro (11-inch) (1st generation)',
|
|
840
|
+
iPad_Pro_12_9_inch_1 = 'iPad Pro (12.9-inch) (1st generation)',
|
|
841
|
+
iPad_Pro_11_inch_2 = 'iPad Pro (11-inch) (2nd generation)',
|
|
842
|
+
iPad_Pro_12_9_inch_2 = 'iPad Pro (12.9-inch) (2nd generation)',
|
|
843
|
+
iPad_Pro_11_inch_3 = 'iPad Pro (11-inch) (3rd generation)',
|
|
844
|
+
iPad_Pro_12_9_inch_3 = 'iPad Pro (12.9-inch) (3rd generation)',
|
|
845
|
+
iPad_Pro_3 = 'iPad Pro (12.9-inch) (3rd generation)',
|
|
846
|
+
iPad_Pro_11_inch_4 = 'iPad Pro (11-inch) (4th generation)',
|
|
847
|
+
iPad_Pro_4 = 'iPad Pro (11-inch) (4th generation)',
|
|
848
|
+
iPad_Pro_12_9_inch_4 = 'iPad Pro (12.9-inch) (4th generation)',
|
|
849
|
+
iPad_Pro_12_9_inch_5 = 'iPad Pro (12.9-inch) (5th generation)',
|
|
850
|
+
iPad_Pro_12_9_inch_6 = 'iPad Pro (12.9-inch) (6th generation)',
|
|
851
|
+
iPod_touch_7 = 'iPod touch (7th generation)'
|
|
805
852
|
}
|
|
806
853
|
export type IosVersionPlain = AndroidVersionPlain;
|
|
807
854
|
export enum IosVersion {
|
|
@@ -1146,6 +1193,16 @@ export type TargetImage = {
|
|
|
1146
1193
|
url(imageUrl: string): CheckSettingsImage;
|
|
1147
1194
|
url(imageUrl: URL): CheckSettingsImage;
|
|
1148
1195
|
};
|
|
1196
|
+
export const TargetImage: {
|
|
1197
|
+
image(image: string): CheckSettingsImage;
|
|
1198
|
+
image(image: Buffer): CheckSettingsImage;
|
|
1199
|
+
image(image: URL): CheckSettingsImage;
|
|
1200
|
+
buffer(imageBuffer: Buffer): CheckSettingsImage;
|
|
1201
|
+
base64(imageBase64: string): CheckSettingsImage;
|
|
1202
|
+
path(imagePath: string): CheckSettingsImage;
|
|
1203
|
+
url(imageUrl: string): CheckSettingsImage;
|
|
1204
|
+
url(imageUrl: URL): CheckSettingsImage;
|
|
1205
|
+
};
|
|
1149
1206
|
export type CutProviderPlain = { top: number; right: number; bottom: number; left: number; } | { x: number; y: number; width: number; height: number; };
|
|
1150
1207
|
export class CutProvider implements Required<{
|
|
1151
1208
|
x: number;
|