@applitools/eyes-selenium 4.59.4 → 4.59.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 +11 -0
- package/dist/api.js +3 -5
- package/package.json +8 -9
- package/types/index.d.ts +100 -84
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## 4.59.5 - 2022/9/22
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
- Don't fail `eyes.open` when there is a failure to set viewport size in `UFG`.
|
|
15
|
+
- Added support for lazy loading views in android native apps
|
|
16
|
+
- Using `lazyLoad.waitingTime` as a delay between stitches by default
|
|
17
|
+
- Added `Sony Xperia 10 II` emulation device
|
|
18
|
+
- Added `iPhone 14` and `iPhone 14 Pro Max` ios devices
|
|
19
|
+
### Bug fixes
|
|
20
|
+
- Fixed incorrect calculation of the target element position.
|
|
21
|
+
|
|
11
22
|
## 4.59.4 - 2022/7/28
|
|
12
23
|
|
|
13
24
|
### Features
|
package/dist/api.js
CHANGED
|
@@ -27,14 +27,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.BatchClose = exports.Target = exports.CheckSettings = exports.Configuration = exports.Eyes = void 0;
|
|
30
|
-
const
|
|
30
|
+
const core_1 = require("@applitools/core");
|
|
31
31
|
const api = __importStar(require("@applitools/eyes-api"));
|
|
32
32
|
const spec = __importStar(require("@applitools/spec-driver-selenium"));
|
|
33
|
-
const sdk = (0,
|
|
34
|
-
|
|
35
|
-
version: `${require('../package.json').version}--${process.env.APPLITOOLS_SELENIUM_MAJOR_VERSION}`,
|
|
33
|
+
const sdk = (0, core_1.makeCore)({
|
|
34
|
+
agentId: `eyes-webdriverio/${require('../package.json').version}`,
|
|
36
35
|
spec,
|
|
37
|
-
VisualGridClient: require('@applitools/visual-grid-client'),
|
|
38
36
|
});
|
|
39
37
|
__exportStar(require("@applitools/eyes-api"), exports);
|
|
40
38
|
class Eyes extends api.Eyes {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-selenium",
|
|
3
|
-
"version": "4.59.
|
|
3
|
+
"version": "4.59.5",
|
|
4
4
|
"description": "Applitools Eyes SDK for Selenium WebDriver",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-selenium",
|
|
@@ -65,18 +65,17 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@applitools/
|
|
69
|
-
"@applitools/eyes-
|
|
70
|
-
"@applitools/spec-driver-selenium": "1.3.
|
|
71
|
-
"@applitools/visual-grid-client": "15.13.13"
|
|
68
|
+
"@applitools/core": "1.0.3",
|
|
69
|
+
"@applitools/eyes-api": "1.7.8",
|
|
70
|
+
"@applitools/spec-driver-selenium": "1.3.22"
|
|
72
71
|
},
|
|
73
72
|
"devDependencies": {
|
|
74
73
|
"@applitools/api-extractor": "1.2.9",
|
|
75
|
-
"@applitools/bongo": "^2.
|
|
74
|
+
"@applitools/bongo": "^2.2.0",
|
|
76
75
|
"@applitools/scripts": "1.1.0",
|
|
77
|
-
"@applitools/sdk-coverage-tests": "2.3.
|
|
78
|
-
"@applitools/sdk-shared": "0.9.
|
|
79
|
-
"@applitools/test-utils": "1.
|
|
76
|
+
"@applitools/sdk-coverage-tests": "2.3.20",
|
|
77
|
+
"@applitools/sdk-shared": "0.9.14",
|
|
78
|
+
"@applitools/test-utils": "1.5.1",
|
|
80
79
|
"@types/node": "12",
|
|
81
80
|
"@types/selenium-webdriver": "^4.1.1",
|
|
82
81
|
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
export type Driver =
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type Driver = {
|
|
2
|
+
getExecutor(): {};
|
|
3
|
+
__applitoolsBrand?: never;
|
|
4
|
+
};
|
|
5
|
+
export type Element = {
|
|
6
|
+
getRect(): Promise<{ x: number; y: number; width: number; height: number; }>;
|
|
7
|
+
__applitoolsBrand?: never;
|
|
8
|
+
};
|
|
9
|
+
export type Selector = ({ using: string; value: string; toObject(): Object; } | {} | ({ className: string; } | { css: string; } | { id: string; } | { js: string; } | { linkText: string; } | { name: string; } | { partialLinkText: string; } | { tagName: string; } | { xpath: string; }) | { using: string; value: string; } | ((webdriver: { getExecutor(): {}; }) => Promise<any>)) & { __applitoolsBrand?: never; };
|
|
4
10
|
export class Eyes {
|
|
5
11
|
static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
|
|
6
12
|
constructor(runner?: EyesRunner, config?: ConfigurationPlain);
|
|
@@ -23,7 +29,7 @@ export class Eyes {
|
|
|
23
29
|
check(checkSettings?: CheckSettingsPlain): Promise<MatchResult>;
|
|
24
30
|
locate<TLocator extends string>(settings: VisualLocatorSettings<TLocator>): Promise<Record<TLocator, Array<RegionPlain>>>;
|
|
25
31
|
extractTextRegions<TPattern extends string>(settings: OCRSettings<TPattern>): Promise<Record<TPattern, Array<TextRegion>>>;
|
|
26
|
-
extractText(
|
|
32
|
+
extractText(settings: Array<OCRRegion>): Promise<Array<string>>;
|
|
27
33
|
close(throwErr?: boolean): Promise<TestResults>;
|
|
28
34
|
abort(): Promise<TestResults>;
|
|
29
35
|
getViewportSize(): Promise<RectangleSize>;
|
|
@@ -112,7 +118,14 @@ export type ConfigurationPlain = {
|
|
|
112
118
|
apiKey?: string;
|
|
113
119
|
serverUrl?: string;
|
|
114
120
|
proxy?: ProxySettingsPlain;
|
|
115
|
-
autProxy?: {
|
|
121
|
+
autProxy?: {
|
|
122
|
+
url: string;
|
|
123
|
+
username?: string;
|
|
124
|
+
password?: string;
|
|
125
|
+
isHttpOnly?: boolean;
|
|
126
|
+
mode?: "Allow" | "Block";
|
|
127
|
+
domains?: Array<string>;
|
|
128
|
+
};
|
|
116
129
|
isDisabled?: boolean;
|
|
117
130
|
appName?: string;
|
|
118
131
|
testName?: string;
|
|
@@ -157,7 +170,7 @@ export type ConfigurationPlain = {
|
|
|
157
170
|
disableBrowserFetching?: boolean;
|
|
158
171
|
};
|
|
159
172
|
export class Configuration implements Required<ConfigurationPlain> {
|
|
160
|
-
constructor(config?: ConfigurationPlain);
|
|
173
|
+
constructor(config?: ConfigurationPlain, spec?: { isElement(element: any): element is Element; isSelector(selector: any): selector is Selector; });
|
|
161
174
|
get appName(): string;
|
|
162
175
|
set appName(appName: string);
|
|
163
176
|
getAppName(): string;
|
|
@@ -204,10 +217,38 @@ export class Configuration implements Required<ConfigurationPlain> {
|
|
|
204
217
|
setProxy(proxy: ProxySettingsPlain): Configuration;
|
|
205
218
|
setProxy(url: string, username?: string, password?: string, isHttpOnly?: boolean): Configuration;
|
|
206
219
|
setProxy(isEnabled: false): Configuration;
|
|
207
|
-
get autProxy(): {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
220
|
+
get autProxy(): {
|
|
221
|
+
url: string;
|
|
222
|
+
username?: string;
|
|
223
|
+
password?: string;
|
|
224
|
+
isHttpOnly?: boolean;
|
|
225
|
+
mode?: "Allow" | "Block";
|
|
226
|
+
domains?: Array<string>;
|
|
227
|
+
};
|
|
228
|
+
set autProxy(autProxy: {
|
|
229
|
+
url: string;
|
|
230
|
+
username?: string;
|
|
231
|
+
password?: string;
|
|
232
|
+
isHttpOnly?: boolean;
|
|
233
|
+
mode?: "Allow" | "Block";
|
|
234
|
+
domains?: Array<string>;
|
|
235
|
+
});
|
|
236
|
+
getAutProxy(): {
|
|
237
|
+
url: string;
|
|
238
|
+
username?: string;
|
|
239
|
+
password?: string;
|
|
240
|
+
isHttpOnly?: boolean;
|
|
241
|
+
mode?: "Allow" | "Block";
|
|
242
|
+
domains?: Array<string>;
|
|
243
|
+
};
|
|
244
|
+
setAutProxy(autProxy: {
|
|
245
|
+
url: string;
|
|
246
|
+
username?: string;
|
|
247
|
+
password?: string;
|
|
248
|
+
isHttpOnly?: boolean;
|
|
249
|
+
mode?: "Allow" | "Block";
|
|
250
|
+
domains?: Array<string>;
|
|
251
|
+
}): Configuration;
|
|
211
252
|
get batch(): BatchInfoPlain;
|
|
212
253
|
set batch(batch: BatchInfoPlain);
|
|
213
254
|
getBatch(): BatchInfo;
|
|
@@ -390,13 +431,24 @@ export type CheckSettingsPlain = {
|
|
|
390
431
|
contentRegions?: Array<(RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | { region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); padding?: number | { top?: number; right?: number; bottom?: number; left?: number; }; regionId?: string; }>;
|
|
391
432
|
floatingRegions?: Array<(RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
|
|
392
433
|
region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
|
|
434
|
+
padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
|
|
435
|
+
regionId?: string;
|
|
436
|
+
offset?: { top?: number; bottom?: number; left?: number; right?: number; };
|
|
437
|
+
} | {
|
|
438
|
+
region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
|
|
439
|
+
padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
|
|
440
|
+
regionId?: string;
|
|
393
441
|
maxUpOffset?: number;
|
|
394
442
|
maxDownOffset?: number;
|
|
395
443
|
maxLeftOffset?: number;
|
|
396
444
|
maxRightOffset?: number;
|
|
445
|
+
}>;
|
|
446
|
+
accessibilityRegions?: Array<(RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
|
|
447
|
+
region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
|
|
448
|
+
padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
|
|
397
449
|
regionId?: string;
|
|
450
|
+
type?: AccessibilityRegionTypePlain;
|
|
398
451
|
}>;
|
|
399
|
-
accessibilityRegions?: Array<(RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | { region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); type?: AccessibilityRegionTypePlain; regionId?: string; }>;
|
|
400
452
|
disableBrowserFetching?: boolean;
|
|
401
453
|
layoutBreakpoints?: boolean | Array<number>;
|
|
402
454
|
visualGridOptions?: { [key: string]: any; };
|
|
@@ -409,7 +461,7 @@ export type CheckSettingsPlain = {
|
|
|
409
461
|
lazyLoad?: boolean | { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; };
|
|
410
462
|
};
|
|
411
463
|
export class CheckSettings {
|
|
412
|
-
constructor(settings?: CheckSettingsPlain);
|
|
464
|
+
constructor(settings?: CheckSettings | CheckSettingsPlain, spec?: { isElement(value: any): value is Element; isSelector(value: any): value is Selector; });
|
|
413
465
|
withName(name: string): CheckSettings;
|
|
414
466
|
region(region: LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })))): CheckSettings;
|
|
415
467
|
shadow(selector: string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }): CheckSettings;
|
|
@@ -425,25 +477,40 @@ export class CheckSettings {
|
|
|
425
477
|
contentRegions(...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | { region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); padding?: number | { top?: number; right?: number; bottom?: number; left?: number; }; regionId?: string; }>): CheckSettings;
|
|
426
478
|
floatingRegion(region: {
|
|
427
479
|
region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
|
|
480
|
+
padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
|
|
481
|
+
regionId?: string;
|
|
482
|
+
offset?: { top?: number; bottom?: number; left?: number; right?: number; };
|
|
483
|
+
}): CheckSettings;
|
|
484
|
+
floatingRegion(region: {
|
|
485
|
+
region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
|
|
486
|
+
padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
|
|
487
|
+
regionId?: string;
|
|
428
488
|
maxUpOffset?: number;
|
|
429
489
|
maxDownOffset?: number;
|
|
430
490
|
maxLeftOffset?: number;
|
|
431
491
|
maxRightOffset?: number;
|
|
432
|
-
regionId?: string;
|
|
433
492
|
}): CheckSettings;
|
|
434
493
|
floatingRegion(region: LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))), maxUpOffset?: number, maxDownOffset?: number, maxLeftOffset?: number, maxRightOffset?: number): CheckSettings;
|
|
435
494
|
floatingRegions(...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
|
|
436
495
|
region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
|
|
437
|
-
|
|
438
|
-
maxDownOffset?: number;
|
|
439
|
-
maxLeftOffset?: number;
|
|
440
|
-
maxRightOffset?: number;
|
|
496
|
+
padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
|
|
441
497
|
regionId?: string;
|
|
498
|
+
offset?: { top?: number; bottom?: number; left?: number; right?: number; };
|
|
442
499
|
}>): CheckSettings;
|
|
443
500
|
floatingRegions(maxOffset: number, ...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })))>): CheckSettings;
|
|
444
|
-
accessibilityRegion(region: {
|
|
501
|
+
accessibilityRegion(region: {
|
|
502
|
+
region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
|
|
503
|
+
padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
|
|
504
|
+
regionId?: string;
|
|
505
|
+
type?: AccessibilityRegionTypePlain;
|
|
506
|
+
}): CheckSettings;
|
|
445
507
|
accessibilityRegion(region: LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))), type?: AccessibilityRegionTypePlain): CheckSettings;
|
|
446
|
-
accessibilityRegions(...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
|
|
508
|
+
accessibilityRegions(...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }))) | {
|
|
509
|
+
region: RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }));
|
|
510
|
+
padding?: number | { top?: number; right?: number; bottom?: number; left?: number; };
|
|
511
|
+
regionId?: string;
|
|
512
|
+
type?: AccessibilityRegionTypePlain;
|
|
513
|
+
}>): CheckSettings;
|
|
447
514
|
accessibilityRegions(type: AccessibilityRegionTypePlain, ...regions: Array<LegacyRegionPlain | (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })))>): CheckSettings;
|
|
448
515
|
scrollRootElement(scrollRootElement: Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })): CheckSettings;
|
|
449
516
|
fully(fully?: boolean): CheckSettings;
|
|
@@ -461,14 +528,14 @@ export class CheckSettings {
|
|
|
461
528
|
layoutBreakpoints(layoutBreakpoints?: boolean | Array<number>): CheckSettings;
|
|
462
529
|
hook(name: string, script: string): CheckSettings;
|
|
463
530
|
beforeRenderScreenshotHook(script: string): CheckSettings;
|
|
464
|
-
|
|
465
|
-
|
|
531
|
+
ufgOption(key: string, value: any): CheckSettings;
|
|
532
|
+
ufgOptions(options: { [key: string]: any; }): CheckSettings;
|
|
466
533
|
renderId(renderId: string): CheckSettings;
|
|
467
534
|
pageId(pageId: string): CheckSettings;
|
|
468
535
|
variationGroupId(variationGroupId: string): CheckSettings;
|
|
469
536
|
timeout(timeout: number): CheckSettings;
|
|
470
537
|
waitBeforeCapture(waitBeforeCapture: number): CheckSettings;
|
|
471
|
-
lazyLoad(options
|
|
538
|
+
lazyLoad(options?: boolean | { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; }): CheckSettings;
|
|
472
539
|
}
|
|
473
540
|
export const Target: {
|
|
474
541
|
window(): CheckSettings;
|
|
@@ -535,7 +602,7 @@ export enum CorsIframeHandle {
|
|
|
535
602
|
KEEP = 'KEEP',
|
|
536
603
|
SNAPSHOT = 'SNAPSHOT'
|
|
537
604
|
}
|
|
538
|
-
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";
|
|
605
|
+
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" | "Sony Xperia 10 II";
|
|
539
606
|
export enum DeviceName {
|
|
540
607
|
Blackberry_PlayBook = 'Blackberry PlayBook',
|
|
541
608
|
BlackBerry_Z30 = 'BlackBerry Z30',
|
|
@@ -600,15 +667,18 @@ export enum DeviceName {
|
|
|
600
667
|
Pixel_3_XL = 'Pixel 3 XL',
|
|
601
668
|
Pixel_4 = 'Pixel 4',
|
|
602
669
|
Pixel_4_XL = 'Pixel 4 XL',
|
|
603
|
-
Pixel_5 = 'Pixel 5'
|
|
670
|
+
Pixel_5 = 'Pixel 5',
|
|
671
|
+
Sony_Xperia_10_II = 'Sony Xperia 10 II'
|
|
604
672
|
}
|
|
605
673
|
export type FailureReportPlain = "IMMEDIATE" | "ON_CLOSE";
|
|
606
674
|
export enum FailureReport {
|
|
607
675
|
IMMEDIATE = 'IMMEDIATE',
|
|
608
676
|
ON_CLOSE = 'ON_CLOSE'
|
|
609
677
|
}
|
|
610
|
-
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)";
|
|
678
|
+
export type IosDeviceNamePlain = "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "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)";
|
|
611
679
|
export enum IosDeviceName {
|
|
680
|
+
iPhone_14_Pro_Max = 'iPhone 14 Pro Max',
|
|
681
|
+
iPhone_14 = 'iPhone 14',
|
|
612
682
|
iPhone_13_Pro_Max = 'iPhone 13 Pro Max',
|
|
613
683
|
iPhone_13_Pro = 'iPhone 13 Pro',
|
|
614
684
|
iPhone_13 = 'iPhone 13',
|
|
@@ -1257,71 +1327,17 @@ export class TestResults implements Required<TestResultsPlain> {
|
|
|
1257
1327
|
isPassed(): boolean;
|
|
1258
1328
|
delete(): Promise<void>;
|
|
1259
1329
|
}
|
|
1260
|
-
export type TestResultContainerPlain = { readonly exception
|
|
1261
|
-
readonly id?: string;
|
|
1262
|
-
readonly name?: string;
|
|
1263
|
-
readonly secretToken?: string;
|
|
1264
|
-
readonly status?: "Passed" | "Failed" | "Unresolved";
|
|
1265
|
-
readonly appName?: string;
|
|
1266
|
-
readonly batchId?: string;
|
|
1267
|
-
readonly batchName?: string;
|
|
1268
|
-
readonly branchName?: string;
|
|
1269
|
-
readonly hostOS?: string;
|
|
1270
|
-
readonly hostApp?: string;
|
|
1271
|
-
readonly hostDisplaySize?: { width: number; height: number; };
|
|
1272
|
-
readonly accessibilityStatus?: { readonly level: "AA" | "AAA"; readonly version: "WCAG_2_0" | "WCAG_2_1"; readonly status: "Passed" | "Failed"; };
|
|
1273
|
-
readonly startedAt?: string | Date;
|
|
1274
|
-
readonly duration?: number;
|
|
1275
|
-
readonly isNew?: boolean;
|
|
1276
|
-
readonly isDifferent?: boolean;
|
|
1277
|
-
readonly isAborted?: boolean;
|
|
1278
|
-
readonly appUrls?: { readonly batch?: string; readonly session?: string; };
|
|
1279
|
-
readonly apiUrls?: { readonly batch?: string; readonly session?: string; };
|
|
1280
|
-
readonly stepsInfo?: Array<{
|
|
1281
|
-
readonly name?: string;
|
|
1282
|
-
readonly isDifferent?: boolean;
|
|
1283
|
-
readonly hasBaselineImage?: boolean;
|
|
1284
|
-
readonly hasCurrentImage?: boolean;
|
|
1285
|
-
readonly appUrls?: { readonly step?: string; readonly stepEditor?: string; };
|
|
1286
|
-
readonly apiUrls?: {
|
|
1287
|
-
readonly baselineImage?: string;
|
|
1288
|
-
readonly currentImage?: string;
|
|
1289
|
-
readonly checkpointImage?: string;
|
|
1290
|
-
readonly checkpointImageThumbnail?: string;
|
|
1291
|
-
readonly diffImage?: string;
|
|
1292
|
-
};
|
|
1293
|
-
readonly renderId?: Array<string>;
|
|
1294
|
-
}>;
|
|
1295
|
-
readonly steps?: number;
|
|
1296
|
-
readonly matches?: number;
|
|
1297
|
-
readonly mismatches?: number;
|
|
1298
|
-
readonly missing?: number;
|
|
1299
|
-
readonly exactMatches?: number;
|
|
1300
|
-
readonly strictMatches?: number;
|
|
1301
|
-
readonly contentMatches?: number;
|
|
1302
|
-
readonly layoutMatches?: number;
|
|
1303
|
-
readonly noneMatches?: number;
|
|
1304
|
-
readonly url?: string;
|
|
1305
|
-
}; 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"; }; } | { androidDeviceInfo: { deviceName: "Galaxy Note 10" | "Galaxy Note 10 Plus" | "Galaxy Note 8" | "Galaxy Note 9" | "Galaxy S8" | "Galaxy S8 Plus" | "Galaxy S9" | "Galaxy S9 Plus" | "Galaxy S10" | "Galaxy S10 Plus" | "Galaxy S20" | "Galaxy S22" | "Galaxy Tab S7" | "Pixel 3 XL" | "Pixel 4" | "Pixel 4 XL" | "Pixel 5" | "Pixel 6" | "Galaxy S20 Plus" | "Galaxy S21" | "Galaxy S21 Plus" | "Galaxy S21 Ultra" | "Galaxy S22 Plus" | "Galaxy Tab S8" | "Xiaomi Redmi Note 11" | "Xiaomi Redmi Note 11 Pro"; version?: "latest" | "latest-1" | "latest-2"; screenOrientation?: "portrait" | "landscape"; }; }; };
|
|
1330
|
+
export type TestResultContainerPlain = { readonly exception: Error; readonly testResults: TestResultsPlain; readonly browserInfo: DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo | AndroidDeviceInfo; };
|
|
1306
1331
|
export class TestResultContainer implements Required<TestResultContainerPlain> {
|
|
1307
1332
|
get testResults(): TestResultsPlain;
|
|
1308
1333
|
getTestResults(): TestResults;
|
|
1309
1334
|
get exception(): Error;
|
|
1310
1335
|
getException(): Error;
|
|
1311
|
-
get browserInfo():
|
|
1312
|
-
getBrowserInfo():
|
|
1336
|
+
get browserInfo(): DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo | AndroidDeviceInfo;
|
|
1337
|
+
getBrowserInfo(): DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo | AndroidDeviceInfo;
|
|
1313
1338
|
}
|
|
1314
|
-
export type TestResultsSummaryPlain =
|
|
1315
|
-
|
|
1316
|
-
passed: number;
|
|
1317
|
-
unresolved: number;
|
|
1318
|
-
failed: number;
|
|
1319
|
-
exceptions: number;
|
|
1320
|
-
mismatches: number;
|
|
1321
|
-
missing: number;
|
|
1322
|
-
matches: number;
|
|
1323
|
-
};
|
|
1324
|
-
export class TestResultsSummary implements Iterable<TestResultContainerPlain> {
|
|
1339
|
+
export type TestResultsSummaryPlain = Iterable<TestResultContainerPlain>;
|
|
1340
|
+
export class TestResultsSummary implements Iterable<TestResultContainer> {
|
|
1325
1341
|
getAllResults(): Array<TestResultContainer>;
|
|
1326
1342
|
[Symbol.iterator](): Iterator<TestResultContainer, any, undefined>;
|
|
1327
1343
|
}
|