@applitools/eyes 1.33.3 → 1.33.4
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/dist/BatchClose.js +84 -0
- package/dist/Eyes.js +750 -0
- package/dist/Logger.js +122 -0
- package/dist/Runners.js +130 -0
- package/dist/SDK.js +45 -0
- package/dist/SessionEventHandlers.js +193 -0
- package/dist/cli/cli.js +56 -0
- package/dist/cli/load-config.js +73 -0
- package/dist/enums/AccessibilityGuidelinesVersion.js +9 -0
- package/dist/enums/AccessibilityLevel.js +9 -0
- package/dist/enums/AccessibilityRegionType.js +12 -0
- package/dist/enums/AccessibilityStatus.js +9 -0
- package/dist/enums/BrowserType.js +23 -0
- package/dist/enums/CorsIframeHandle.js +10 -0
- package/dist/enums/DeviceName.js +105 -0
- package/dist/enums/DynamicTextType.js +13 -0
- package/dist/enums/FailureReport.js +8 -0
- package/dist/enums/IosDeviceName.js +47 -0
- package/dist/enums/IosMultiDeviceTarget.js +30 -0
- package/dist/enums/IosVersion.js +10 -0
- package/dist/enums/MatchLevel.js +15 -0
- package/dist/enums/ScreenOrientation.js +8 -0
- package/dist/enums/SessionType.js +8 -0
- package/dist/enums/StitchMode.js +11 -0
- package/dist/enums/TestResultsStatus.js +9 -0
- package/dist/errors/DiffsFoundError.js +38 -0
- package/dist/errors/EyesError.js +6 -0
- package/dist/errors/NewTestError.js +38 -0
- package/dist/errors/TestFailedError.js +47 -0
- package/dist/index.js +128 -0
- package/dist/input/AUTProxySettings.js +2 -0
- package/dist/input/AccessibilityMatchSettings.js +109 -0
- package/dist/input/AccessibilitySettings.js +2 -0
- package/dist/input/BatchInfo.js +153 -0
- package/dist/input/CheckSettings.js +663 -0
- package/dist/input/Configuration.js +1179 -0
- package/dist/input/CutProvider.js +132 -0
- package/dist/input/DebugScreenshotProvider.js +2 -0
- package/dist/input/DensityMetrics.js +2 -0
- package/dist/input/ExactMatchSettings.js +102 -0
- package/dist/input/EyesSelector.js +2 -0
- package/dist/input/FloatingMatchSettings.js +152 -0
- package/dist/input/Image.js +2 -0
- package/dist/input/ImageMatchSettings.js +271 -0
- package/dist/input/ImageRotation.js +59 -0
- package/dist/input/LatestCommitInfo.js +2 -0
- package/dist/input/LazyLoadOptions.js +2 -0
- package/dist/input/Location.js +74 -0
- package/dist/input/LogHandler.js +90 -0
- package/dist/input/OCRRegion.js +2 -0
- package/dist/input/OCRSettings.js +2 -0
- package/dist/input/PropertyData.js +76 -0
- package/dist/input/ProxySettings.js +77 -0
- package/dist/input/RectangleSize.js +74 -0
- package/dist/input/Region.js +135 -0
- package/dist/input/RenderInfo.js +2 -0
- package/dist/input/RunnerOptions.js +56 -0
- package/dist/input/VisualLocatorSettings.js +2 -0
- package/dist/output/ApiUrls.js +102 -0
- package/dist/output/AppUrls.js +66 -0
- package/dist/output/MatchResult.js +66 -0
- package/dist/output/SessionUrls.js +66 -0
- package/dist/output/StepInfo.js +118 -0
- package/dist/output/TestAccessibilityStatus.js +2 -0
- package/dist/output/TestResultContainer.js +49 -0
- package/dist/output/TestResults.js +378 -0
- package/dist/output/TestResultsSummary.js +49 -0
- package/dist/output/TextRegion.js +2 -0
- package/dist/output/ValidationInfo.js +60 -0
- package/dist/output/ValidationResult.js +53 -0
- package/package.json +1 -1
- package/types/BatchClose.d.ts +23 -0
- package/types/Eyes.d.ts +255 -0
- package/types/Logger.d.ts +30 -0
- package/types/Runners.d.ts +41 -0
- package/types/SDK.d.ts +20 -0
- package/types/SessionEventHandlers.d.ts +78 -0
- package/types/cli/cli.d.ts +2 -0
- package/types/cli/load-config.d.ts +1 -0
- package/types/enums/AccessibilityGuidelinesVersion.d.ts +5 -0
- package/types/enums/AccessibilityLevel.d.ts +5 -0
- package/types/enums/AccessibilityRegionType.d.ts +8 -0
- package/types/enums/AccessibilityStatus.d.ts +5 -0
- package/types/enums/BrowserType.d.ts +20 -0
- package/types/enums/CorsIframeHandle.d.ts +7 -0
- package/types/enums/DeviceName.d.ts +101 -0
- package/types/enums/DynamicTextType.d.ts +9 -0
- package/types/enums/FailureReport.d.ts +5 -0
- package/types/enums/IosDeviceName.d.ts +43 -0
- package/types/enums/IosMultiDeviceTarget.d.ts +26 -0
- package/types/enums/IosVersion.d.ts +7 -0
- package/types/enums/MatchLevel.d.ts +12 -0
- package/types/enums/ScreenOrientation.d.ts +5 -0
- package/types/enums/SessionType.d.ts +5 -0
- package/types/enums/StitchMode.d.ts +8 -0
- package/types/enums/TestResultsStatus.d.ts +6 -0
- package/types/errors/DiffsFoundError.d.ts +6 -0
- package/types/errors/EyesError.d.ts +2 -0
- package/types/errors/NewTestError.d.ts +6 -0
- package/types/errors/TestFailedError.d.ts +9 -0
- package/types/index.d.ts +60 -0
- package/types/input/AUTProxySettings.d.ts +5 -0
- package/types/input/AccessibilityMatchSettings.d.ts +34 -0
- package/types/input/AccessibilitySettings.d.ts +6 -0
- package/types/input/BatchInfo.d.ts +47 -0
- package/types/input/CheckSettings.d.ts +266 -0
- package/types/input/Configuration.d.ts +437 -0
- package/types/input/CutProvider.d.ts +44 -0
- package/types/input/DebugScreenshotProvider.d.ts +5 -0
- package/types/input/DensityMetrics.d.ts +5 -0
- package/types/input/ExactMatchSettings.d.ts +34 -0
- package/types/input/EyesSelector.d.ts +6 -0
- package/types/input/FloatingMatchSettings.d.ts +50 -0
- package/types/input/Image.d.ts +11 -0
- package/types/input/ImageMatchSettings.d.ts +95 -0
- package/types/input/ImageRotation.d.ts +15 -0
- package/types/input/LatestCommitInfo.d.ts +4 -0
- package/types/input/LazyLoadOptions.d.ts +5 -0
- package/types/input/Location.d.ts +23 -0
- package/types/input/LogHandler.d.ts +45 -0
- package/types/input/OCRRegion.d.ts +9 -0
- package/types/input/OCRSettings.d.ts +6 -0
- package/types/input/PropertyData.d.ts +23 -0
- package/types/input/ProxySettings.d.ts +25 -0
- package/types/input/RectangleSize.d.ts +23 -0
- package/types/input/Region.d.ts +46 -0
- package/types/input/RenderInfo.d.ts +47 -0
- package/types/input/RunnerOptions.d.ts +21 -0
- package/types/input/VisualLocatorSettings.d.ts +4 -0
- package/types/output/ApiUrls.d.ts +41 -0
- package/types/output/AppUrls.d.ts +23 -0
- package/types/output/MatchResult.d.ts +23 -0
- package/types/output/SessionUrls.d.ts +23 -0
- package/types/output/StepInfo.d.ts +50 -0
- package/types/output/TestAccessibilityStatus.d.ts +8 -0
- package/types/output/TestResultContainer.d.ts +31 -0
- package/types/output/TestResults.d.ts +186 -0
- package/types/output/TestResultsSummary.d.ts +18 -0
- package/types/output/TextRegion.d.ts +7 -0
- package/types/output/ValidationInfo.d.ts +21 -0
- package/types/output/ValidationResult.d.ts +18 -0
|
@@ -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,21 @@
|
|
|
1
|
+
/** @undocumented */
|
|
2
|
+
export type ValidationInfo = {
|
|
3
|
+
readonly validationId: number;
|
|
4
|
+
readonly tag: string;
|
|
5
|
+
};
|
|
6
|
+
/** @undocumented */
|
|
7
|
+
export declare class ValidationInfoData implements Required<ValidationInfo> {
|
|
8
|
+
private _info;
|
|
9
|
+
/** @internal */
|
|
10
|
+
constructor(info: ValidationInfo);
|
|
11
|
+
get validationId(): number;
|
|
12
|
+
getValidationId(): number;
|
|
13
|
+
get tag(): string;
|
|
14
|
+
getTag(): string;
|
|
15
|
+
/** @internal */
|
|
16
|
+
toObject(): ValidationInfo;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toJSON(): ValidationInfo;
|
|
19
|
+
/** @internal */
|
|
20
|
+
toString(): string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** @undocumented */
|
|
2
|
+
export type ValidationResult = {
|
|
3
|
+
readonly asExpected: boolean;
|
|
4
|
+
};
|
|
5
|
+
/** @undocumented */
|
|
6
|
+
export declare class ValidationResultData implements Required<ValidationResult> {
|
|
7
|
+
private _result;
|
|
8
|
+
/** @internal */
|
|
9
|
+
constructor(result: ValidationResult);
|
|
10
|
+
get asExpected(): boolean;
|
|
11
|
+
getAsExpected(): boolean;
|
|
12
|
+
/** @internal */
|
|
13
|
+
toObject(): ValidationResult;
|
|
14
|
+
/** @internal */
|
|
15
|
+
toJSON(): ValidationResult;
|
|
16
|
+
/** @internal */
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|