@applitools/eyes-webdriverio 5.34.12 → 5.34.15
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 +35 -0
- package/package.json +10 -9
- package/types/index.d.ts +73 -40
- package/types/service.d.ts +20 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## 5.34.15 - 2022/5/23
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
- Support iPhone SE `IosDeviceName.iPhone_SE` and iPhone 8 Plus `IosDeviceName.iPhone_8_Plus` iOS devices
|
|
15
|
+
- Support Galaxy S22 `DeviceName.Galaxy_S22` emulation device
|
|
16
|
+
### Bug fixes
|
|
17
|
+
- Fixed handling of navigation bar size on various devices
|
|
18
|
+
- Allow running with self-signed certificates
|
|
19
|
+
- Fixed bug in native apps when screenshot of the element was taken only for the small visible part of the element
|
|
20
|
+
- Fixed bug when navigation bar was presented in screenshot on Android 12
|
|
21
|
+
|
|
22
|
+
## 5.34.14 - 2022/5/5
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
- Support UFG for native mobile
|
|
26
|
+
### Bug fixes
|
|
27
|
+
- `extractText` now supports regions that don't use hints while using `x`/`y` coordinates
|
|
28
|
+
- accept ios and android lowercase as driver platformName capability when using custom grid
|
|
29
|
+
- Fixed check region fully in classic execution when using CSS stitching
|
|
30
|
+
- Support data urls in iframes
|
|
31
|
+
- Account for an Appium bug when calculating system bars height
|
|
32
|
+
|
|
33
|
+
## 5.34.13 - 2022/3/25
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
- `runner.getAllTestResults` returns the corresponding UFG browser/device configuration for each test. This is available as `runner.getAllTestResults()[i].browserInfo`.
|
|
37
|
+
### Bug fixes
|
|
38
|
+
- `runner.getAllTestResults` now aborts unclosed tests
|
|
39
|
+
- `runner.getAllTestResults` now returns all results, including aborted tests
|
|
40
|
+
|
|
6
41
|
## 5.34.12 - 2022/2/16
|
|
7
42
|
|
|
8
43
|
- fix image scaling on pages without viewport metatag
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-webdriverio",
|
|
3
|
-
"version": "5.34.
|
|
3
|
+
"version": "5.34.15",
|
|
4
4
|
"description": "Applitools Eyes SDK for WebdriverIO",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-webdriverio",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"types": "./types/v5-sync.d.ts"
|
|
55
55
|
},
|
|
56
56
|
"./dist/*": "./dist/*.js",
|
|
57
|
+
"./types/*": "./dist/*.d.ts",
|
|
57
58
|
"./package.json": "./package.json"
|
|
58
59
|
},
|
|
59
60
|
"typesVersions": {
|
|
@@ -100,8 +101,8 @@
|
|
|
100
101
|
"gh:test": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='wdio wdio(node:14) wdio(node:12) wdio(protocol:cdp) wdio(framework:6) wdio(framework:5)'",
|
|
101
102
|
"gh:test:links": "gh workflow run test.yml --ref $(git rev-parse --abbrev-ref HEAD) -f packages='wdio wdio+cdp wdio@6 wdio@5' -f links='types test-utils sdk-shared eyes-sdk-core visual-grid-client eyes-api spec-driver-webdriverio utils driver snippets screenshoter' -f linking-depth=3",
|
|
102
103
|
"gh:publish": "gh workflow run publish-webdriverio.yml --ref $(git rev-parse --abbrev-ref HEAD)",
|
|
103
|
-
"preversion": "bongo preversion && yarn build",
|
|
104
|
-
"version": "bongo version",
|
|
104
|
+
"preversion": "bongo preversion --verifyPendingChanges && yarn build",
|
|
105
|
+
"version": "bongo version --withPendingChanges",
|
|
105
106
|
"postversion": "bongo postversion"
|
|
106
107
|
},
|
|
107
108
|
"husky": {
|
|
@@ -110,18 +111,18 @@
|
|
|
110
111
|
}
|
|
111
112
|
},
|
|
112
113
|
"dependencies": {
|
|
113
|
-
"@applitools/eyes-api": "1.1
|
|
114
|
-
"@applitools/eyes-sdk-core": "13.
|
|
115
|
-
"@applitools/spec-driver-webdriverio": "1.2.
|
|
116
|
-
"@applitools/visual-grid-client": "15.
|
|
114
|
+
"@applitools/eyes-api": "1.4.1",
|
|
115
|
+
"@applitools/eyes-sdk-core": "13.6.19",
|
|
116
|
+
"@applitools/spec-driver-webdriverio": "1.2.9",
|
|
117
|
+
"@applitools/visual-grid-client": "15.12.31"
|
|
117
118
|
},
|
|
118
119
|
"devDependencies": {
|
|
119
120
|
"@applitools/api-extractor": "1.2.7",
|
|
121
|
+
"@applitools/bongo": "^2.1.0",
|
|
120
122
|
"@applitools/scripts": "1.1.0",
|
|
121
123
|
"@applitools/sdk-coverage-tests": "^2.3.18",
|
|
122
|
-
"@applitools/sdk-release-kit": "^0.13.11",
|
|
123
124
|
"@applitools/sdk-shared": "0.9.11",
|
|
124
|
-
"@applitools/test-utils": "1.
|
|
125
|
+
"@applitools/test-utils": "1.3.2",
|
|
125
126
|
"@types/mocha": "^9.0.0",
|
|
126
127
|
"@typescript-eslint/eslint-plugin": "^4.15.1",
|
|
127
128
|
"@typescript-eslint/parser": "^4.15.1",
|
package/types/index.d.ts
CHANGED
|
@@ -157,6 +157,7 @@ export type ConfigurationPlain = {
|
|
|
157
157
|
apiKey?: string;
|
|
158
158
|
serverUrl?: string;
|
|
159
159
|
proxy?: ProxySettingsPlain;
|
|
160
|
+
autProxy?: { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; };
|
|
160
161
|
isDisabled?: boolean;
|
|
161
162
|
connectionTimeout?: number;
|
|
162
163
|
removeSession?: boolean;
|
|
@@ -267,6 +268,10 @@ export class Configuration implements Required<ConfigurationPlain> {
|
|
|
267
268
|
setProxy(proxy: ProxySettingsPlain): Configuration;
|
|
268
269
|
setProxy(url: string, username?: string, password?: string, isHttpOnly?: boolean): Configuration;
|
|
269
270
|
setProxy(isEnabled: false): Configuration;
|
|
271
|
+
get autProxy(): { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; };
|
|
272
|
+
set autProxy(autProxy: { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; });
|
|
273
|
+
getAutProxy(): { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; };
|
|
274
|
+
setAutProxy(autProxy: { proxy: { url: string; username?: string; password?: string; isHttpOnly?: boolean; }; domains?: Array<string>; AUTProxyMode?: "Allow" | "Block"; }): Configuration;
|
|
270
275
|
get connectionTimeout(): number;
|
|
271
276
|
set connectionTimeout(connectionTimeout: number);
|
|
272
277
|
getConnectionTimeout(): number;
|
|
@@ -478,6 +483,7 @@ export type CheckSettingsPlain = {
|
|
|
478
483
|
visualGridOptions?: { [key: string]: any; };
|
|
479
484
|
hooks?: { beforeCaptureScreenshot: string; };
|
|
480
485
|
renderId?: string;
|
|
486
|
+
pageId?: string;
|
|
481
487
|
variationGroupId?: string;
|
|
482
488
|
timeout?: number;
|
|
483
489
|
waitBeforeCapture?: number;
|
|
@@ -557,6 +563,7 @@ export class CheckSettings {
|
|
|
557
563
|
visualGridOption(key: string, value: any): CheckSettings;
|
|
558
564
|
visualGridOptions(options: { [key: string]: any; }): CheckSettings;
|
|
559
565
|
renderId(renderId: string): CheckSettings;
|
|
566
|
+
pageId(pageId: string): CheckSettings;
|
|
560
567
|
variationGroupId(variationGroupId: string): CheckSettings;
|
|
561
568
|
timeout(timeout: number): CheckSettings;
|
|
562
569
|
waitBeforeCapture(waitBeforeCapture: number): CheckSettings;
|
|
@@ -626,7 +633,7 @@ export enum CorsIframeHandle {
|
|
|
626
633
|
KEEP = 'KEEP',
|
|
627
634
|
SNAPSHOT = 'SNAPSHOT'
|
|
628
635
|
}
|
|
629
|
-
export type DeviceNamePlain = "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5";
|
|
636
|
+
export type DeviceNamePlain = "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5";
|
|
630
637
|
export enum DeviceName {
|
|
631
638
|
Blackberry_PlayBook = 'Blackberry PlayBook',
|
|
632
639
|
BlackBerry_Z30 = 'BlackBerry Z30',
|
|
@@ -647,6 +654,7 @@ export enum DeviceName {
|
|
|
647
654
|
Galaxy_S10 = 'Galaxy S10',
|
|
648
655
|
Galaxy_S10_Plus = 'Galaxy S10 Plus',
|
|
649
656
|
Galaxy_S20 = 'Galaxy S20',
|
|
657
|
+
Galaxy_S22 = 'Galaxy S22',
|
|
650
658
|
Galaxy_Tab_S7 = 'Galaxy Tab S7',
|
|
651
659
|
iPad = 'iPad',
|
|
652
660
|
iPad_6th_Gen = 'iPad 6th Gen',
|
|
@@ -697,7 +705,7 @@ export enum FailureReport {
|
|
|
697
705
|
IMMEDIATE = 'IMMEDIATE',
|
|
698
706
|
ON_CLOSE = 'ON_CLOSE'
|
|
699
707
|
}
|
|
700
|
-
export type IosDeviceNamePlain = "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 7" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)";
|
|
708
|
+
export type IosDeviceNamePlain = "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)";
|
|
701
709
|
export enum IosDeviceName {
|
|
702
710
|
iPhone_13_Pro_Max = 'iPhone 13 Pro Max',
|
|
703
711
|
iPhone_13_Pro = 'iPhone 13 Pro',
|
|
@@ -713,7 +721,9 @@ export enum IosDeviceName {
|
|
|
713
721
|
iPhone_XS = 'iPhone Xs',
|
|
714
722
|
iPhone_X = 'iPhone X',
|
|
715
723
|
iPhone_8 = 'iPhone 8',
|
|
724
|
+
iPhone_8_Plus = 'iPhone 8 Plus',
|
|
716
725
|
iPhone_7 = 'iPhone 7',
|
|
726
|
+
iPhone_SE = 'iPhone SE (1st generation)',
|
|
717
727
|
iPad_Pro_3 = 'iPad Pro (12.9-inch) (3rd generation)',
|
|
718
728
|
iPad_7 = 'iPad (7th generation)',
|
|
719
729
|
iPad_9 = 'iPad (9th generation)',
|
|
@@ -1358,15 +1368,71 @@ export class TestResults implements Required<TestResultsPlain> {
|
|
|
1358
1368
|
delete(): Promise<void>;
|
|
1359
1369
|
deleteSession(): Promise<void>;
|
|
1360
1370
|
}
|
|
1361
|
-
export type TestResultContainerPlain = { readonly exception
|
|
1371
|
+
export type TestResultContainerPlain = { readonly exception?: Error; readonly testResults?: {
|
|
1372
|
+
readonly id?: string;
|
|
1373
|
+
readonly name?: string;
|
|
1374
|
+
readonly secretToken?: string;
|
|
1375
|
+
readonly status?: "Passed" | "Failed" | "Unresolved";
|
|
1376
|
+
readonly appName?: string;
|
|
1377
|
+
readonly batchId?: string;
|
|
1378
|
+
readonly batchName?: string;
|
|
1379
|
+
readonly branchName?: string;
|
|
1380
|
+
readonly hostOS?: string;
|
|
1381
|
+
readonly hostApp?: string;
|
|
1382
|
+
readonly hostDisplaySize?: { width: number; height: number; };
|
|
1383
|
+
readonly accessibilityStatus?: { readonly level: "AA" | "AAA"; readonly version: "WCAG_2_0" | "WCAG_2_1"; readonly status: "Passed" | "Failed"; };
|
|
1384
|
+
readonly startedAt?: string | Date;
|
|
1385
|
+
readonly duration?: number;
|
|
1386
|
+
readonly isNew?: boolean;
|
|
1387
|
+
readonly isDifferent?: boolean;
|
|
1388
|
+
readonly isAborted?: boolean;
|
|
1389
|
+
readonly appUrls?: { readonly batch?: string; readonly session?: string; };
|
|
1390
|
+
readonly apiUrls?: { readonly batch?: string; readonly session?: string; };
|
|
1391
|
+
readonly stepsInfo?: Array<{
|
|
1392
|
+
readonly name?: string;
|
|
1393
|
+
readonly isDifferent?: boolean;
|
|
1394
|
+
readonly hasBaselineImage?: boolean;
|
|
1395
|
+
readonly hasCurrentImage?: boolean;
|
|
1396
|
+
readonly appUrls?: { readonly step?: string; readonly stepEditor?: string; };
|
|
1397
|
+
readonly apiUrls?: {
|
|
1398
|
+
readonly baselineImage?: string;
|
|
1399
|
+
readonly currentImage?: string;
|
|
1400
|
+
readonly checkpointImage?: string;
|
|
1401
|
+
readonly checkpointImageThumbnail?: string;
|
|
1402
|
+
readonly diffImage?: string;
|
|
1403
|
+
};
|
|
1404
|
+
readonly renderId?: Array<string>;
|
|
1405
|
+
}>;
|
|
1406
|
+
readonly steps?: number;
|
|
1407
|
+
readonly matches?: number;
|
|
1408
|
+
readonly mismatches?: number;
|
|
1409
|
+
readonly missing?: number;
|
|
1410
|
+
readonly exactMatches?: number;
|
|
1411
|
+
readonly strictMatches?: number;
|
|
1412
|
+
readonly contentMatches?: number;
|
|
1413
|
+
readonly layoutMatches?: number;
|
|
1414
|
+
readonly noneMatches?: number;
|
|
1415
|
+
readonly url?: string;
|
|
1416
|
+
}; readonly browserInfo?: { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "portrait" | "landscape"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "portrait" | "landscape"; }; }; };
|
|
1362
1417
|
export class TestResultContainer implements Required<TestResultContainerPlain> {
|
|
1363
1418
|
get testResults(): TestResultsPlain;
|
|
1364
1419
|
getTestResults(): TestResults;
|
|
1365
1420
|
get exception(): Error;
|
|
1366
1421
|
getException(): Error;
|
|
1422
|
+
get browserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "portrait" | "landscape"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "portrait" | "landscape"; }; };
|
|
1423
|
+
getBrowserInfo(): { name?: "chrome" | "chrome-one-version-back" | "chrome-two-versions-back" | "firefox" | "firefox-one-version-back" | "firefox-two-versions-back" | "ie" | "ie10" | "edge" | "edgechromium" | "edgelegacy" | "edgechromium-one-version-back" | "edgechromium-two-versions-back" | "safari" | "safari-earlyaccess" | "safari-one-version-back" | "safari-two-versions-back"; width: number; height: number; } | { chromeEmulationInfo: { deviceName: "Blackberry PlayBook" | "BlackBerry Z30" | "Galaxy A5" | "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 2" | "Galaxy Note 3" | "Galaxy Note 4" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S3" | "Galaxy S5" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "iPad" | "iPad 6th Gen" | "iPad 7th Gen" | "iPad Air 2" | "iPad Mini" | "iPad Pro" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone 4" | "iPhone 5/SE" | "iPhone 6/7/8" | "iPhone 6/7/8 Plus" | "iPhone X" | "iPhone XR" | "iPhone XS" | "iPhone XS Max" | "Kindle Fire HDX" | "Laptop with HiDPI screen" | "Laptop with MDPI screen" | "Laptop with touch" | "LG G6" | "LG Optimus L70" | "Microsoft Lumia 550" | "Microsoft Lumia 950" | "Nexus 10" | "Nexus 4" | "Nexus 5" | "Nexus 5X" | "Nexus 6" | "Nexus 6P" | "Nexus 7" | "Nokia Lumia 520" | "Nokia N9" | "OnePlus 7T" | "OnePlus 7T Pro" | "Pixel 2" | "Pixel 2 XL" | "Pixel 3" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5"; screenOrientation?: "portrait" | "landscape"; }; } | { iosDeviceInfo: { deviceName: "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)"; iosVersion?: "latest" | "latest-1"; screenOrientation?: "portrait" | "landscape"; }; };
|
|
1367
1424
|
}
|
|
1368
|
-
export type TestResultsSummaryPlain =
|
|
1369
|
-
|
|
1425
|
+
export type TestResultsSummaryPlain = {
|
|
1426
|
+
results: Array<TestResultContainerPlain>;
|
|
1427
|
+
passed: number;
|
|
1428
|
+
unresolved: number;
|
|
1429
|
+
failed: number;
|
|
1430
|
+
exceptions: number;
|
|
1431
|
+
mismatches: number;
|
|
1432
|
+
missing: number;
|
|
1433
|
+
matches: number;
|
|
1434
|
+
};
|
|
1435
|
+
export class TestResultsSummary implements Iterable<TestResultContainerPlain> {
|
|
1370
1436
|
getAllResults(): Array<TestResultContainer>;
|
|
1371
1437
|
[Symbol.iterator](): Iterator<TestResultContainer, any, undefined>;
|
|
1372
1438
|
}
|
|
@@ -1402,41 +1468,8 @@ export class Logger {
|
|
|
1402
1468
|
fatal(...messages: Array<any>): void;
|
|
1403
1469
|
open(): void;
|
|
1404
1470
|
close(): void;
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
type: "rolling file";
|
|
1408
|
-
dirname?: string;
|
|
1409
|
-
name?: string;
|
|
1410
|
-
maxFileLength?: number;
|
|
1411
|
-
maxFileNumber?: number;
|
|
1412
|
-
};
|
|
1413
|
-
format?: (message: any, options: {
|
|
1414
|
-
formatting?: boolean;
|
|
1415
|
-
label?: string;
|
|
1416
|
-
timestamp?: Date;
|
|
1417
|
-
level?: "silent" | "fatal" | "error" | "warn" | "info";
|
|
1418
|
-
tags?: Record<string, unknown>;
|
|
1419
|
-
color?: string | Array<string>;
|
|
1420
|
-
colors?: { timestamp?: string | Array<string>; level?: {
|
|
1421
|
-
silent?: string | Array<string>;
|
|
1422
|
-
fatal?: string | Array<string>;
|
|
1423
|
-
error?: string | Array<string>;
|
|
1424
|
-
warn?: string | Array<string>;
|
|
1425
|
-
info?: string | Array<string>;
|
|
1426
|
-
}; tags?: string | Array<string>; message?: string | Array<string>; };
|
|
1427
|
-
}) => string;
|
|
1428
|
-
label?: string;
|
|
1429
|
-
timestamp?: false;
|
|
1430
|
-
level?: number | ("silent" | "fatal" | "error" | "warn" | "info");
|
|
1431
|
-
colors?: boolean | { timestamp?: string | Array<string>; level?: {
|
|
1432
|
-
silent?: string | Array<string>;
|
|
1433
|
-
fatal?: string | Array<string>;
|
|
1434
|
-
error?: string | Array<string>;
|
|
1435
|
-
warn?: string | Array<string>;
|
|
1436
|
-
info?: string | Array<string>;
|
|
1437
|
-
}; tags?: string | Array<string>; message?: string | Array<string>; };
|
|
1438
|
-
console?: boolean | CustomLogHandlerPlain;
|
|
1439
|
-
}, "handler">): Logger;
|
|
1471
|
+
tag(name: string, value: any): void;
|
|
1472
|
+
extend(options?: import('node_modules/@applitools/logger/types/logger.d.ts').ExtendOptions): Logger;
|
|
1440
1473
|
extend(label?: string): Logger;
|
|
1441
1474
|
}
|
|
1442
1475
|
export function closeBatch(spec: { closeBatches(options: { settings: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }; }): Promise<void>; }): (options: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }) => Promise<void>;
|
package/types/service.d.ts
CHANGED
|
@@ -10,22 +10,25 @@ import type {
|
|
|
10
10
|
TestResultsSummary,
|
|
11
11
|
} from './index'
|
|
12
12
|
|
|
13
|
-
declare
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
13
|
+
declare global {
|
|
14
|
+
namespace WebdriverIO {
|
|
15
|
+
interface ServiceOption extends ConfigurationPlain {
|
|
16
|
+
useVisualGrid?: boolean
|
|
17
|
+
concurrency?: number
|
|
18
|
+
eyes?: ServiceOption
|
|
19
|
+
}
|
|
20
|
+
interface Browser {
|
|
21
|
+
getEyes(): Eyes
|
|
22
|
+
eyesCheck(checkSettings?: CheckSettingsPlain): Promise<void>
|
|
23
|
+
eyesCheck(title: string, checkSettings: CheckSettings): Promise<void>
|
|
24
|
+
eyesSetScrollRootElement(element: Element | Selector): void
|
|
25
|
+
eyesAddProperty(key: string, value: string): void
|
|
26
|
+
eyesClearProperties(): void
|
|
27
|
+
eyesGetTestResults(): Promise<TestResults>
|
|
28
|
+
eyesSetConfiguration(configuration: ConfigurationPlain): void
|
|
29
|
+
eyesGetConfiguration(): Configuration
|
|
30
|
+
eyesGetIsOpen(): boolean
|
|
31
|
+
eyesGetAllTestResults(throwErr: boolean): Promise<TestResultsSummary>
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
}
|