@applitools/eyes-browser 1.0.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/LICENSE +26 -0
  3. package/dist/index.js +93180 -0
  4. package/package.json +75 -0
  5. package/types/BatchClose.d.ts +23 -0
  6. package/types/Eyes.d.ts +249 -0
  7. package/types/Logger.d.ts +30 -0
  8. package/types/Runners.d.ts +40 -0
  9. package/types/SDK.d.ts +11 -0
  10. package/types/SessionEventHandlers.d.ts +78 -0
  11. package/types/enums/AccessibilityGuidelinesVersion.d.ts +5 -0
  12. package/types/enums/AccessibilityLevel.d.ts +5 -0
  13. package/types/enums/AccessibilityRegionType.d.ts +8 -0
  14. package/types/enums/AccessibilityStatus.d.ts +5 -0
  15. package/types/enums/AndroidDeviceName.d.ts +28 -0
  16. package/types/enums/AndroidVersion.d.ts +5 -0
  17. package/types/enums/BrowserType.d.ts +20 -0
  18. package/types/enums/CorsIframeHandle.d.ts +7 -0
  19. package/types/enums/DeviceName.d.ts +73 -0
  20. package/types/enums/FailureReport.d.ts +5 -0
  21. package/types/enums/IosDeviceName.d.ts +64 -0
  22. package/types/enums/IosVersion.d.ts +7 -0
  23. package/types/enums/MatchLevel.d.ts +11 -0
  24. package/types/enums/ScreenOrientation.d.ts +5 -0
  25. package/types/enums/SessionType.d.ts +5 -0
  26. package/types/enums/StitchMode.d.ts +8 -0
  27. package/types/enums/TestResultsStatus.d.ts +6 -0
  28. package/types/errors/DiffsFoundError.d.ts +6 -0
  29. package/types/errors/EyesError.d.ts +2 -0
  30. package/types/errors/NewTestError.d.ts +6 -0
  31. package/types/errors/TestFailedError.d.ts +9 -0
  32. package/types/index.d.ts +61 -0
  33. package/types/input/AUTProxySettings.d.ts +5 -0
  34. package/types/input/AccessibilityMatchSettings.d.ts +34 -0
  35. package/types/input/AccessibilitySettings.d.ts +6 -0
  36. package/types/input/BatchInfo.d.ts +47 -0
  37. package/types/input/CheckSettings.d.ts +239 -0
  38. package/types/input/Configuration.d.ts +383 -0
  39. package/types/input/CutProvider.d.ts +44 -0
  40. package/types/input/DebugScreenshotProvider.d.ts +5 -0
  41. package/types/input/DensityMetrics.d.ts +5 -0
  42. package/types/input/ExactMatchSettings.d.ts +34 -0
  43. package/types/input/EyesSelector.d.ts +6 -0
  44. package/types/input/FloatingMatchSettings.d.ts +50 -0
  45. package/types/input/Image.d.ts +11 -0
  46. package/types/input/ImageMatchSettings.d.ts +95 -0
  47. package/types/input/ImageRotation.d.ts +15 -0
  48. package/types/input/LazyLoadOptions.d.ts +5 -0
  49. package/types/input/Location.d.ts +23 -0
  50. package/types/input/LogHandler.d.ts +45 -0
  51. package/types/input/OCRRegion.d.ts +9 -0
  52. package/types/input/OCRSettings.d.ts +6 -0
  53. package/types/input/PropertyData.d.ts +23 -0
  54. package/types/input/ProxySettings.d.ts +25 -0
  55. package/types/input/RectangleSize.d.ts +23 -0
  56. package/types/input/Region.d.ts +46 -0
  57. package/types/input/RenderInfo.d.ts +37 -0
  58. package/types/input/RunnerOptions.d.ts +20 -0
  59. package/types/input/VisualLocatorSettings.d.ts +4 -0
  60. package/types/output/ApiUrls.d.ts +38 -0
  61. package/types/output/AppUrls.d.ts +23 -0
  62. package/types/output/MatchResult.d.ts +23 -0
  63. package/types/output/SessionUrls.d.ts +23 -0
  64. package/types/output/StepInfo.d.ts +50 -0
  65. package/types/output/TestAccessibilityStatus.d.ts +8 -0
  66. package/types/output/TestResultContainer.d.ts +31 -0
  67. package/types/output/TestResults.d.ts +186 -0
  68. package/types/output/TestResultsSummary.d.ts +18 -0
  69. package/types/output/TextRegion.d.ts +7 -0
  70. package/types/output/ValidationInfo.d.ts +21 -0
  71. package/types/output/ValidationResult.d.ts +18 -0
@@ -0,0 +1,45 @@
1
+ import * as logger from '@applitools/logger';
2
+ export type LogHandler = CustomLogHandler | FileLogHandler | ConsoleLogHandler;
3
+ export type CustomLogHandler = logger.CustomHandler;
4
+ export type FileLogHandler = logger.FileHandler;
5
+ export type ConsoleLogHandler = logger.ConsoleHandler;
6
+ export declare abstract class LogHandlerData implements CustomLogHandler {
7
+ private _verbose;
8
+ constructor(verbose?: boolean);
9
+ get verbose(): boolean;
10
+ set verbose(verbose: boolean);
11
+ getIsVerbose(): boolean;
12
+ setIsVerbose(verbose: boolean): void;
13
+ log(message: string): void;
14
+ abstract onMessage(message: string): void;
15
+ abstract open(): void;
16
+ abstract close(): void;
17
+ /** @internal */
18
+ toJSON(): LogHandler;
19
+ }
20
+ export declare class FileLogHandlerData extends LogHandlerData implements FileLogHandler {
21
+ readonly type = "file";
22
+ readonly filename: string;
23
+ readonly append: boolean;
24
+ constructor(verbose?: boolean, filename?: string, append?: boolean);
25
+ onMessage(): void;
26
+ open(): void;
27
+ close(): void;
28
+ /** @internal */
29
+ toJSON(): LogHandler;
30
+ }
31
+ export declare class ConsoleLogHandlerData extends LogHandlerData implements ConsoleLogHandler {
32
+ readonly type = "console";
33
+ onMessage(): void;
34
+ open(): void;
35
+ close(): void;
36
+ /** @internal */
37
+ toJSON(): LogHandler;
38
+ }
39
+ export declare class NullLogHandlerData extends LogHandlerData {
40
+ onMessage(): void;
41
+ open(): void;
42
+ close(): void;
43
+ /** @internal */
44
+ toJSON(): LogHandler;
45
+ }
@@ -0,0 +1,9 @@
1
+ import type { SpecType } from '@applitools/core';
2
+ import { EyesSelector } from './EyesSelector';
3
+ import { Region } from './Region';
4
+ export type OCRRegion<TSpec extends SpecType = SpecType> = {
5
+ target: Region | TSpec['element'] | EyesSelector<TSpec['selector']>;
6
+ hint?: string;
7
+ minMatch?: number;
8
+ language?: string;
9
+ };
@@ -0,0 +1,6 @@
1
+ export type OCRSettings<TPattern extends string = string> = {
2
+ patterns: TPattern[];
3
+ ignoreCase?: boolean;
4
+ firstOnly?: boolean;
5
+ language?: string;
6
+ };
@@ -0,0 +1,23 @@
1
+ export type PropertyData = {
2
+ name: string;
3
+ value: string;
4
+ };
5
+ export declare class PropertyDataData implements Required<PropertyData> {
6
+ private _property;
7
+ constructor(property: PropertyData);
8
+ constructor(name: string, value: string);
9
+ get name(): string;
10
+ set name(name: string);
11
+ getName(): string;
12
+ setName(name: string): void;
13
+ get value(): string;
14
+ set value(value: string);
15
+ getValue(): string;
16
+ setValue(value: string): void;
17
+ /** @internal */
18
+ toObject(): PropertyData;
19
+ /** @internal */
20
+ toJSON(): PropertyData;
21
+ /** @internal */
22
+ toString(): string;
23
+ }
@@ -0,0 +1,25 @@
1
+ export type ProxySettings = {
2
+ url: string;
3
+ username?: string;
4
+ password?: string;
5
+ };
6
+ export declare class ProxySettingsData implements Required<ProxySettings> {
7
+ private _proxy;
8
+ constructor(proxy: ProxySettings);
9
+ constructor(url: string, username?: string, password?: string, deprecatedIsHttpOnly?: boolean);
10
+ get url(): string;
11
+ getUri(): string;
12
+ getUrl(): string;
13
+ get username(): string;
14
+ getUsername(): string;
15
+ get password(): string;
16
+ getPassword(): string;
17
+ get isHttpOnly(): boolean;
18
+ getIsHttpOnly(): boolean;
19
+ /** @internal */
20
+ toObject(): ProxySettings;
21
+ /** @internal */
22
+ toJSON(): ProxySettings;
23
+ /** @internal */
24
+ toString(): string;
25
+ }
@@ -0,0 +1,23 @@
1
+ export type RectangleSize = {
2
+ width: number;
3
+ height: number;
4
+ };
5
+ export declare class RectangleSizeData implements Required<RectangleSize> {
6
+ private _size;
7
+ constructor(size: RectangleSize);
8
+ constructor(width: number, height: number);
9
+ get width(): number;
10
+ set width(width: number);
11
+ getWidth(): number;
12
+ setWidth(width: number): void;
13
+ get height(): number;
14
+ set height(height: number);
15
+ getHeight(): number;
16
+ setHeight(height: number): void;
17
+ /** @internal */
18
+ toObject(): RectangleSize;
19
+ /** @internal */
20
+ toJSON(): RectangleSize;
21
+ /** @internal */
22
+ toString(): string;
23
+ }
@@ -0,0 +1,46 @@
1
+ import { Location } from './Location';
2
+ import { RectangleSize } from './RectangleSize';
3
+ /** @deprecated */
4
+ export type LegacyRegion = {
5
+ left: number;
6
+ top: number;
7
+ width: number;
8
+ height: number;
9
+ };
10
+ export type Region = Location & RectangleSize;
11
+ export declare class RegionData implements Required<Region> {
12
+ private _region;
13
+ constructor(region: Region);
14
+ constructor(location: Location, size: RectangleSize);
15
+ constructor(x: number, y: number, width: number, height: number);
16
+ get x(): number;
17
+ set x(x: number);
18
+ get left(): number;
19
+ set left(left: number);
20
+ getX(): number;
21
+ setX(x: number): void;
22
+ getLeft(): number;
23
+ setLeft(left: number): void;
24
+ get y(): number;
25
+ set y(y: number);
26
+ get top(): number;
27
+ set top(top: number);
28
+ getY(): number;
29
+ setY(y: number): void;
30
+ getTop(): number;
31
+ setTop(top: number): void;
32
+ get width(): number;
33
+ set width(width: number);
34
+ getWidth(): number;
35
+ setWidth(width: number): void;
36
+ get height(): number;
37
+ set height(height: number);
38
+ getHeight(): number;
39
+ setHeight(height: number): void;
40
+ /** @internal */
41
+ toObject(): Region;
42
+ /** @internal */
43
+ toJSON(): Region;
44
+ /** @internal */
45
+ toString(): string;
46
+ }
@@ -0,0 +1,37 @@
1
+ import { BrowserType } from '../enums/BrowserType';
2
+ import { DeviceName } from '../enums/DeviceName';
3
+ import { IosDeviceName } from '../enums/IosDeviceName';
4
+ import { IosVersion } from '../enums/IosVersion';
5
+ import { AndroidDeviceName } from '../enums/AndroidDeviceName';
6
+ import { AndroidVersion } from '../enums/AndroidVersion';
7
+ import { ScreenOrientation } from '../enums/ScreenOrientation';
8
+ export type DesktopBrowserInfo = {
9
+ name?: BrowserType;
10
+ width: number;
11
+ height: number;
12
+ };
13
+ export type ChromeEmulationInfo = {
14
+ chromeEmulationInfo: {
15
+ deviceName: DeviceName;
16
+ screenOrientation?: ScreenOrientation;
17
+ };
18
+ };
19
+ /** @deprecated */
20
+ export type ChromeEmulationInfoLegacy = {
21
+ deviceName: DeviceName;
22
+ screenOrientation?: ScreenOrientation;
23
+ };
24
+ export type IOSDeviceInfo = {
25
+ iosDeviceInfo: {
26
+ deviceName: IosDeviceName;
27
+ iosVersion?: IosVersion;
28
+ screenOrientation?: ScreenOrientation;
29
+ };
30
+ };
31
+ export type AndroidDeviceInfo = {
32
+ androidDeviceInfo: {
33
+ deviceName: AndroidDeviceName;
34
+ version?: AndroidVersion;
35
+ screenOrientation?: ScreenOrientation;
36
+ };
37
+ };
@@ -0,0 +1,20 @@
1
+ export type RunnerOptions = {
2
+ testConcurrency?: number;
3
+ fetchConcurrency?: number;
4
+ /** @internal */
5
+ legacyConcurrency?: number;
6
+ removeDuplicateTests?: boolean;
7
+ };
8
+ /** @deprecated */
9
+ export declare class RunnerOptionsFluent {
10
+ private _options;
11
+ testConcurrency(concurrency: number): this;
12
+ /** @internal */
13
+ toObject(): RunnerOptions;
14
+ /** @internal */
15
+ toJSON(): RunnerOptions;
16
+ /** @internal */
17
+ toString(): string;
18
+ }
19
+ /** @deprecated */
20
+ export declare function RunnerOptionsFluentInit(): RunnerOptionsFluent;
@@ -0,0 +1,4 @@
1
+ export type VisualLocatorSettings<TLocator extends string = string> = {
2
+ locatorNames: TLocator[];
3
+ firstOnly: boolean;
4
+ };
@@ -0,0 +1,38 @@
1
+ export type ApiUrls = {
2
+ readonly baselineImage: string;
3
+ readonly currentImage: string;
4
+ readonly checkpointImage: string;
5
+ readonly checkpointImageThumbnail: string;
6
+ readonly diffImage: string;
7
+ };
8
+ export declare class ApiUrlsData implements Required<ApiUrls> {
9
+ private _urls;
10
+ /** @internal */
11
+ constructor(urls: ApiUrls);
12
+ get baselineImage(): string;
13
+ getBaselineImage(): string;
14
+ /** @deprecated */
15
+ setBaselineImage(setBaselineImage: string): void;
16
+ get currentImage(): string;
17
+ getCurrentImage(): string;
18
+ /** @deprecated */
19
+ setCurrentImage(currentImage: string): void;
20
+ get checkpointImage(): string;
21
+ getCheckpointImage(): string;
22
+ /** @deprecated */
23
+ setCheckpointImage(checkpointImage: string): void;
24
+ get checkpointImageThumbnail(): string;
25
+ getCheckpointImageThumbnail(): string;
26
+ /** @deprecated */
27
+ setCheckpointImageThumbnail(checkpointImageThumbnail: string): void;
28
+ get diffImage(): string;
29
+ getDiffImage(): string;
30
+ /** @deprecated */
31
+ setDiffImage(diffImage: string): void;
32
+ /** @internal */
33
+ toObject(): ApiUrls;
34
+ /** @internal */
35
+ toJSON(): ApiUrls;
36
+ /** @internal */
37
+ toString(): string;
38
+ }
@@ -0,0 +1,23 @@
1
+ export type AppUrls = {
2
+ readonly step: string;
3
+ readonly stepEditor: string;
4
+ };
5
+ export declare class AppUrlsData implements Required<AppUrls> {
6
+ private _urls;
7
+ /** @internal */
8
+ constructor(urls: AppUrls);
9
+ get step(): string;
10
+ getStep(): string;
11
+ /** @deprecated */
12
+ setStep(step: string): void;
13
+ get stepEditor(): string;
14
+ getStepEditor(): string;
15
+ /** @deprecated */
16
+ setStepEditor(stepEditor: string): void;
17
+ /** @internal */
18
+ toObject(): AppUrls;
19
+ /** @internal */
20
+ toJSON(): AppUrls;
21
+ /** @internal */
22
+ toString(): string;
23
+ }
@@ -0,0 +1,23 @@
1
+ export type MatchResult = {
2
+ readonly asExpected?: boolean;
3
+ readonly windowId?: number;
4
+ };
5
+ export declare class MatchResultData implements Required<MatchResult> {
6
+ private _result;
7
+ /** @internal */
8
+ constructor(result: MatchResult);
9
+ get asExpected(): boolean;
10
+ getAsExpected(): boolean;
11
+ /** @deprecated */
12
+ setAsExpected(asExpected: boolean): void;
13
+ get windowId(): number;
14
+ getWindowId(): number;
15
+ /** @deprecated */
16
+ setWindowId(windowId: number): void;
17
+ /** @internal */
18
+ toObject(): MatchResult;
19
+ /** @internal */
20
+ toJSON(): MatchResult;
21
+ /** @internal */
22
+ toString(): string;
23
+ }
@@ -0,0 +1,23 @@
1
+ export type SessionUrls = {
2
+ readonly batch: string;
3
+ readonly session: string;
4
+ };
5
+ export declare class SessionUrlsData implements Required<SessionUrls> {
6
+ private _urls;
7
+ /** @internal */
8
+ constructor(urls: SessionUrls);
9
+ get batch(): string;
10
+ getBatch(): string;
11
+ /** @deprecated */
12
+ setBatch(batch: string): void;
13
+ get session(): string;
14
+ getSession(): string;
15
+ /** @deprecated */
16
+ setSession(session: string): void;
17
+ /** @internal */
18
+ toObject(): SessionUrls;
19
+ /** @internal */
20
+ toJSON(): SessionUrls;
21
+ /** @internal */
22
+ toString(): string;
23
+ }
@@ -0,0 +1,50 @@
1
+ import { AppUrls, AppUrlsData } from './AppUrls';
2
+ import { ApiUrls, ApiUrlsData } from './ApiUrls';
3
+ export type StepInfo = {
4
+ readonly name: string;
5
+ readonly isDifferent: boolean;
6
+ readonly hasBaselineImage: boolean;
7
+ readonly hasCurrentImage: boolean;
8
+ readonly appUrls: AppUrls;
9
+ readonly apiUrls: ApiUrls;
10
+ readonly renderId: string[];
11
+ };
12
+ export declare class StepInfoData implements Required<StepInfo> {
13
+ private _info;
14
+ /** @internal */
15
+ constructor(info: StepInfo);
16
+ get name(): string;
17
+ getName(): string;
18
+ /** @deprecated */
19
+ setName(value: string): void;
20
+ get isDifferent(): boolean;
21
+ getIsDifferent(): boolean;
22
+ /** @deprecated */
23
+ setIsDifferent(value: boolean): void;
24
+ get hasBaselineImage(): boolean;
25
+ getHasBaselineImage(): boolean;
26
+ /** @deprecated */
27
+ setHasBaselineImage(value: boolean): void;
28
+ get hasCurrentImage(): boolean;
29
+ getHasCurrentImage(): boolean;
30
+ /** @deprecated */
31
+ setHasCurrentImage(hasCurrentImage: boolean): void;
32
+ get appUrls(): AppUrls;
33
+ getAppUrls(): AppUrlsData;
34
+ /** @deprecated */
35
+ setAppUrls(appUrls: AppUrls): void;
36
+ get apiUrls(): ApiUrls;
37
+ getApiUrls(): ApiUrlsData;
38
+ /** @deprecated */
39
+ setApiUrls(apiUrls: ApiUrls): void;
40
+ get renderId(): string[];
41
+ getRenderId(): string[];
42
+ /** @deprecated */
43
+ setRenderId(renderId: string[]): void;
44
+ /** @internal */
45
+ toObject(): StepInfo;
46
+ /** @internal */
47
+ toJSON(): StepInfo;
48
+ /** @internal */
49
+ toString(): string;
50
+ }
@@ -0,0 +1,8 @@
1
+ import { AccessibilityStatus } from '../enums/AccessibilityStatus';
2
+ import { AccessibilityLevel } from '../enums/AccessibilityLevel';
3
+ import { AccessibilityGuidelinesVersion } from '../enums/AccessibilityGuidelinesVersion';
4
+ export type TestAccessibilityStatus = {
5
+ readonly status: AccessibilityStatus;
6
+ readonly level: AccessibilityLevel;
7
+ readonly version: AccessibilityGuidelinesVersion;
8
+ };
@@ -0,0 +1,31 @@
1
+ import type * as Core from '@applitools/core';
2
+ import { TestResults, TestResultsData } from './TestResults';
3
+ import { AndroidDeviceInfo, ChromeEmulationInfo, ChromeEmulationInfoLegacy, DesktopBrowserInfo, IOSDeviceInfo } from '../input/RenderInfo';
4
+ type RenderInfo = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | ChromeEmulationInfoLegacy;
5
+ export type TestResultContainer = {
6
+ readonly exception?: Error;
7
+ readonly testResults?: TestResults;
8
+ readonly browserInfo?: RenderInfo;
9
+ };
10
+ export declare class TestResultContainerData implements Required<TestResultContainer> {
11
+ private _container;
12
+ private _core?;
13
+ /** @internal */
14
+ constructor(options: {
15
+ container: Core.TestResultContainer<'classic' | 'ufg'>;
16
+ core?: Core.Core<Core.SpecType, 'classic' | 'ufg'>;
17
+ });
18
+ get testResults(): TestResults;
19
+ getTestResults(): TestResultsData;
20
+ get exception(): Error;
21
+ getException(): Error;
22
+ get browserInfo(): RenderInfo;
23
+ getBrowserInfo(): RenderInfo;
24
+ /** @internal */
25
+ toObject(): TestResultContainer;
26
+ /** @internal */
27
+ toJSON(): Core.TestResultContainer<'classic' | 'ufg'>;
28
+ /** @internal */
29
+ toString(): string;
30
+ }
31
+ export {};
@@ -0,0 +1,186 @@
1
+ import type * as Core from '@applitools/core';
2
+ import { TestResultsStatus, TestResultsStatusEnum } from '../enums/TestResultsStatus';
3
+ import { ProxySettings } from '../input/ProxySettings';
4
+ import { RectangleSize, RectangleSizeData } from '../input/RectangleSize';
5
+ import { TestAccessibilityStatus } from './TestAccessibilityStatus';
6
+ import { SessionUrls, SessionUrlsData } from './SessionUrls';
7
+ import { StepInfo, StepInfoData } from './StepInfo';
8
+ export type TestResults = {
9
+ readonly id?: string;
10
+ readonly name?: string;
11
+ readonly secretToken?: string;
12
+ readonly status?: TestResultsStatus;
13
+ readonly appName?: string;
14
+ readonly batchId?: string;
15
+ readonly batchName?: string;
16
+ readonly branchName?: string;
17
+ readonly hostOS?: string;
18
+ readonly hostApp?: string;
19
+ readonly hostDisplaySize?: RectangleSize;
20
+ readonly accessibilityStatus?: TestAccessibilityStatus;
21
+ readonly startedAt?: string;
22
+ readonly duration?: number;
23
+ readonly isNew?: boolean;
24
+ readonly isDifferent?: boolean;
25
+ readonly isAborted?: boolean;
26
+ readonly appUrls?: SessionUrls;
27
+ readonly apiUrls?: SessionUrls;
28
+ readonly stepsInfo?: StepInfo[];
29
+ readonly steps?: number;
30
+ readonly matches?: number;
31
+ readonly mismatches?: number;
32
+ readonly missing?: number;
33
+ readonly exactMatches?: number;
34
+ readonly strictMatches?: number;
35
+ readonly contentMatches?: number;
36
+ readonly layoutMatches?: number;
37
+ readonly noneMatches?: number;
38
+ readonly url?: string;
39
+ readonly server?: {
40
+ eyesServerUrl: string;
41
+ apiKey: string;
42
+ proxy?: ProxySettings;
43
+ };
44
+ readonly keepIfDuplicate?: boolean;
45
+ };
46
+ export declare class TestResultsData implements Required<TestResults> {
47
+ private _core?;
48
+ private _result;
49
+ /** @internal */
50
+ constructor(options: {
51
+ result?: Partial<Core.TestResult<'classic' | 'ufg'>>;
52
+ core?: Core.Core<Core.SpecType, 'classic' | 'ufg'>;
53
+ });
54
+ get id(): string;
55
+ getId(): string;
56
+ /** @deprecated */
57
+ setId(_id: string): void;
58
+ get name(): string;
59
+ getName(): string;
60
+ /** @deprecated */
61
+ setName(_name: string): void;
62
+ get secretToken(): string;
63
+ getSecretToken(): string;
64
+ /** @deprecated */
65
+ setSecretToken(_secretToken: string): void;
66
+ get status(): TestResultsStatus;
67
+ getStatus(): TestResultsStatusEnum;
68
+ /** @deprecated */
69
+ setStatus(_status: TestResultsStatusEnum): void;
70
+ get appName(): string;
71
+ getAppName(): string;
72
+ /** @deprecated */
73
+ setAppName(_appName: string): void;
74
+ get batchName(): string;
75
+ getBatchName(): string;
76
+ /** @deprecated */
77
+ setBatchName(_batchName: string): void;
78
+ get batchId(): string;
79
+ getBatchId(): string;
80
+ /** @deprecated */
81
+ setBatchId(_batchId: string): void;
82
+ get branchName(): string;
83
+ getBranchName(): string;
84
+ /** @deprecated */
85
+ setBranchName(_branchName: string): void;
86
+ get hostOS(): string;
87
+ getHostOS(): string;
88
+ /** @deprecated */
89
+ setHostOS(_hostOS: string): void;
90
+ get hostApp(): string;
91
+ getHostApp(): string;
92
+ /** @deprecated */
93
+ setHostApp(_hostApp: string): void;
94
+ get hostDisplaySize(): RectangleSize;
95
+ getHostDisplaySize(): RectangleSizeData;
96
+ /** @deprecated */
97
+ setHostDisplaySize(_hostDisplaySize: RectangleSize): void;
98
+ get accessibilityStatus(): TestAccessibilityStatus;
99
+ getAccessibilityStatus(): TestAccessibilityStatus;
100
+ /** @deprecated */
101
+ setAccessibilityStatus(_accessibilityStatus: TestAccessibilityStatus): void;
102
+ get startedAt(): string;
103
+ getStartedAt(): Date;
104
+ /** @deprecated */
105
+ setStartedAt(_startedAt: Date | string): void;
106
+ get duration(): number;
107
+ getDuration(): number;
108
+ /** @deprecated */
109
+ setDuration(_duration: number): void;
110
+ get isNew(): boolean;
111
+ getIsNew(): boolean;
112
+ /** @deprecated */
113
+ setIsNew(_isNew: boolean): void;
114
+ get isDifferent(): boolean;
115
+ getIsDifferent(): boolean;
116
+ /** @deprecated */
117
+ setIsDifferent(_isDifferent: boolean): void;
118
+ get isAborted(): boolean;
119
+ getIsAborted(): boolean;
120
+ /** @deprecated */
121
+ setIsAborted(_isAborted: boolean): void;
122
+ get appUrls(): SessionUrls;
123
+ getAppUrls(): SessionUrlsData;
124
+ /** @deprecated */
125
+ setAppUrls(_appUrls: SessionUrls): void;
126
+ get apiUrls(): SessionUrls;
127
+ getApiUrls(): SessionUrlsData;
128
+ /** @deprecated */
129
+ setApiUrls(_apiUrls: SessionUrls): void;
130
+ get stepsInfo(): StepInfo[];
131
+ getStepsInfo(): StepInfoData[];
132
+ /** @deprecated */
133
+ setStepsInfo(_stepInfo: StepInfo[]): void;
134
+ get steps(): number;
135
+ getSteps(): number;
136
+ /** @deprecated */
137
+ setSteps(_steps: number): void;
138
+ get matches(): number;
139
+ getMatches(): number;
140
+ /** @deprecated */
141
+ setMatches(_matches: number): void;
142
+ get mismatches(): number;
143
+ getMismatches(): number;
144
+ /** @deprecated */
145
+ setMismatches(_mismatches: number): void;
146
+ get missing(): number;
147
+ getMissing(): number;
148
+ /** @deprecated */
149
+ setMissing(_missing: number): void;
150
+ get exactMatches(): number;
151
+ getExactMatches(): number;
152
+ /** @deprecated */
153
+ setExactMatches(_exactMatches: number): void;
154
+ get strictMatches(): number;
155
+ getStrictMatches(): number;
156
+ /** @deprecated */
157
+ setStrictMatches(_strictMatches: number): void;
158
+ get contentMatches(): number;
159
+ getContentMatches(): number;
160
+ /** @deprecated */
161
+ setContentMatches(_contentMatches: number): void;
162
+ get layoutMatches(): number;
163
+ getLayoutMatches(): number;
164
+ /** @deprecated */
165
+ setLayoutMatches(_layoutMatches: number): void;
166
+ get noneMatches(): number;
167
+ getNoneMatches(): number;
168
+ /** @deprecated */
169
+ setNoneMatches(_noneMatches: number): void;
170
+ get url(): string;
171
+ getUrl(): string;
172
+ /** @deprecated */
173
+ setUrl(_url: string): void;
174
+ get server(): Core.EyesServerSettings;
175
+ get keepIfDuplicate(): boolean;
176
+ isPassed(): boolean;
177
+ delete(): Promise<void>;
178
+ /** @deprecated */
179
+ deleteSession(): Promise<void>;
180
+ /** @internal */
181
+ toObject(): TestResults;
182
+ /** @internal */
183
+ toJSON(): Core.TestResult<'classic' | 'ufg'>;
184
+ /** @internal */
185
+ toString(): string;
186
+ }
@@ -0,0 +1,18 @@
1
+ import type * as Core from '@applitools/core';
2
+ import { TestResultContainer, TestResultContainerData } from './TestResultContainer';
3
+ export type TestResultsSummary = Iterable<TestResultContainer>;
4
+ export declare class TestResultsSummaryData implements Iterable<TestResultContainerData> {
5
+ private _summary?;
6
+ private _core?;
7
+ /** @internal */
8
+ constructor(options?: {
9
+ summary?: Core.TestResultSummary<'classic' | 'ufg'>;
10
+ core?: Core.Core<Core.SpecType, 'classic' | 'ufg'>;
11
+ });
12
+ getAllResults(): TestResultContainerData[];
13
+ [Symbol.iterator](): Iterator<TestResultContainerData>;
14
+ /** @internal */
15
+ toJSON(): Core.TestResultContainer<'classic' | 'ufg'>[];
16
+ /** @internal */
17
+ toString(): string;
18
+ }
@@ -0,0 +1,7 @@
1
+ export type TextRegion = {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ text: string;
7
+ };