@applitools/eyes-puppeteer 1.18.4 → 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 +63 -0
- package/package.json +4 -4
- package/types/index.d.ts +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
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
|
+
|
|
3
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)
|
|
4
67
|
|
|
5
68
|
|
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,11 +42,11 @@
|
|
|
42
42
|
"up:framework": "yarn add --dev --caret puppeteer${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@applitools/eyes": "1.8.
|
|
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
51
|
"@applitools/generic": "^3.3.10",
|
|
52
52
|
"@applitools/test-utils": "^1.5.17",
|
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; };
|
|
@@ -1179,6 +1193,16 @@ export type TargetImage = {
|
|
|
1179
1193
|
url(imageUrl: string): CheckSettingsImage;
|
|
1180
1194
|
url(imageUrl: URL): CheckSettingsImage;
|
|
1181
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
|
+
};
|
|
1182
1206
|
export type CutProviderPlain = { top: number; right: number; bottom: number; left: number; } | { x: number; y: number; width: number; height: number; };
|
|
1183
1207
|
export class CutProvider implements Required<{
|
|
1184
1208
|
x: number;
|