@applitools/eyes 1.33.3 → 1.34.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.
- package/CHANGELOG.md +96 -0
- 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 +702 -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 +4 -3
- 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 +280 -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,378 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.TestResultsData = void 0;
|
|
27
|
+
const TestResultsStatus_1 = require("../enums/TestResultsStatus");
|
|
28
|
+
const RectangleSize_1 = require("../input/RectangleSize");
|
|
29
|
+
const SessionUrls_1 = require("./SessionUrls");
|
|
30
|
+
const StepInfo_1 = require("./StepInfo");
|
|
31
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
32
|
+
class TestResultsData {
|
|
33
|
+
/** @internal */
|
|
34
|
+
constructor(options) {
|
|
35
|
+
var _a;
|
|
36
|
+
this._result = (_a = options.result) !== null && _a !== void 0 ? _a : {};
|
|
37
|
+
this._core = options.core;
|
|
38
|
+
}
|
|
39
|
+
get id() {
|
|
40
|
+
return this._result.id;
|
|
41
|
+
}
|
|
42
|
+
getId() {
|
|
43
|
+
return this.id;
|
|
44
|
+
}
|
|
45
|
+
/** @deprecated */
|
|
46
|
+
setId(_id) {
|
|
47
|
+
// DEPRECATED
|
|
48
|
+
}
|
|
49
|
+
get name() {
|
|
50
|
+
return this._result.name;
|
|
51
|
+
}
|
|
52
|
+
getName() {
|
|
53
|
+
return this.name;
|
|
54
|
+
}
|
|
55
|
+
/** @deprecated */
|
|
56
|
+
setName(_name) {
|
|
57
|
+
// DEPRECATED
|
|
58
|
+
}
|
|
59
|
+
get secretToken() {
|
|
60
|
+
return this._result.secretToken;
|
|
61
|
+
}
|
|
62
|
+
getSecretToken() {
|
|
63
|
+
return this.secretToken;
|
|
64
|
+
}
|
|
65
|
+
/** @deprecated */
|
|
66
|
+
setSecretToken(_secretToken) {
|
|
67
|
+
// DEPRECATED
|
|
68
|
+
}
|
|
69
|
+
get status() {
|
|
70
|
+
return this._result.status;
|
|
71
|
+
}
|
|
72
|
+
getStatus() {
|
|
73
|
+
return this.status;
|
|
74
|
+
}
|
|
75
|
+
/** @deprecated */
|
|
76
|
+
setStatus(_status) {
|
|
77
|
+
// DEPRECATED
|
|
78
|
+
}
|
|
79
|
+
get appName() {
|
|
80
|
+
return this._result.appName;
|
|
81
|
+
}
|
|
82
|
+
getAppName() {
|
|
83
|
+
return this.appName;
|
|
84
|
+
}
|
|
85
|
+
/** @deprecated */
|
|
86
|
+
setAppName(_appName) {
|
|
87
|
+
// DEPRECATED
|
|
88
|
+
}
|
|
89
|
+
get batchName() {
|
|
90
|
+
return this._result.batchName;
|
|
91
|
+
}
|
|
92
|
+
getBatchName() {
|
|
93
|
+
return this.batchName;
|
|
94
|
+
}
|
|
95
|
+
/** @deprecated */
|
|
96
|
+
setBatchName(_batchName) {
|
|
97
|
+
// DEPRECATED
|
|
98
|
+
}
|
|
99
|
+
get batchId() {
|
|
100
|
+
return this._result.batchId;
|
|
101
|
+
}
|
|
102
|
+
getBatchId() {
|
|
103
|
+
return this.batchId;
|
|
104
|
+
}
|
|
105
|
+
/** @deprecated */
|
|
106
|
+
setBatchId(_batchId) {
|
|
107
|
+
// DEPRECATED
|
|
108
|
+
}
|
|
109
|
+
get branchName() {
|
|
110
|
+
return this._result.batchName;
|
|
111
|
+
}
|
|
112
|
+
getBranchName() {
|
|
113
|
+
return this.branchName;
|
|
114
|
+
}
|
|
115
|
+
/** @deprecated */
|
|
116
|
+
setBranchName(_branchName) {
|
|
117
|
+
// DEPRECATED
|
|
118
|
+
}
|
|
119
|
+
get hostOS() {
|
|
120
|
+
return this._result.hostOS;
|
|
121
|
+
}
|
|
122
|
+
getHostOS() {
|
|
123
|
+
return this.hostOS;
|
|
124
|
+
}
|
|
125
|
+
/** @deprecated */
|
|
126
|
+
setHostOS(_hostOS) {
|
|
127
|
+
// DEPRECATED
|
|
128
|
+
}
|
|
129
|
+
get hostApp() {
|
|
130
|
+
return this._result.hostApp;
|
|
131
|
+
}
|
|
132
|
+
getHostApp() {
|
|
133
|
+
return this.hostApp;
|
|
134
|
+
}
|
|
135
|
+
/** @deprecated */
|
|
136
|
+
setHostApp(_hostApp) {
|
|
137
|
+
// DEPRECATED
|
|
138
|
+
}
|
|
139
|
+
get hostDisplaySize() {
|
|
140
|
+
return this._result.hostDisplaySize;
|
|
141
|
+
}
|
|
142
|
+
getHostDisplaySize() {
|
|
143
|
+
return new RectangleSize_1.RectangleSizeData(this.hostDisplaySize);
|
|
144
|
+
}
|
|
145
|
+
/** @deprecated */
|
|
146
|
+
setHostDisplaySize(_hostDisplaySize) {
|
|
147
|
+
// DEPRECATED
|
|
148
|
+
}
|
|
149
|
+
get accessibilityStatus() {
|
|
150
|
+
return this._result.accessibilityStatus;
|
|
151
|
+
}
|
|
152
|
+
getAccessibilityStatus() {
|
|
153
|
+
return this.accessibilityStatus;
|
|
154
|
+
}
|
|
155
|
+
/** @deprecated */
|
|
156
|
+
setAccessibilityStatus(_accessibilityStatus) {
|
|
157
|
+
// DEPRECATED
|
|
158
|
+
}
|
|
159
|
+
get startedAt() {
|
|
160
|
+
return this._result.startedAt;
|
|
161
|
+
}
|
|
162
|
+
getStartedAt() {
|
|
163
|
+
return new Date(this.startedAt);
|
|
164
|
+
}
|
|
165
|
+
/** @deprecated */
|
|
166
|
+
setStartedAt(_startedAt) {
|
|
167
|
+
// DEPRECATED
|
|
168
|
+
}
|
|
169
|
+
get duration() {
|
|
170
|
+
return this._result.duration;
|
|
171
|
+
}
|
|
172
|
+
getDuration() {
|
|
173
|
+
return this.duration;
|
|
174
|
+
}
|
|
175
|
+
/** @deprecated */
|
|
176
|
+
setDuration(_duration) {
|
|
177
|
+
// DEPRECATED
|
|
178
|
+
}
|
|
179
|
+
get isNew() {
|
|
180
|
+
return this._result.isNew;
|
|
181
|
+
}
|
|
182
|
+
getIsNew() {
|
|
183
|
+
return this.isNew;
|
|
184
|
+
}
|
|
185
|
+
/** @deprecated */
|
|
186
|
+
setIsNew(_isNew) {
|
|
187
|
+
// DEPRECATED
|
|
188
|
+
}
|
|
189
|
+
get isDifferent() {
|
|
190
|
+
return this._result.isDifferent;
|
|
191
|
+
}
|
|
192
|
+
getIsDifferent() {
|
|
193
|
+
return this.isDifferent;
|
|
194
|
+
}
|
|
195
|
+
/** @deprecated */
|
|
196
|
+
setIsDifferent(_isDifferent) {
|
|
197
|
+
// DEPRECATED
|
|
198
|
+
}
|
|
199
|
+
get isAborted() {
|
|
200
|
+
return this._result.isAborted;
|
|
201
|
+
}
|
|
202
|
+
getIsAborted() {
|
|
203
|
+
return this.isAborted;
|
|
204
|
+
}
|
|
205
|
+
/** @deprecated */
|
|
206
|
+
setIsAborted(_isAborted) {
|
|
207
|
+
// DEPRECATED
|
|
208
|
+
}
|
|
209
|
+
get appUrls() {
|
|
210
|
+
return this._result.appUrls;
|
|
211
|
+
}
|
|
212
|
+
getAppUrls() {
|
|
213
|
+
return new SessionUrls_1.SessionUrlsData(this.appUrls);
|
|
214
|
+
}
|
|
215
|
+
/** @deprecated */
|
|
216
|
+
setAppUrls(_appUrls) {
|
|
217
|
+
// DEPRECATED
|
|
218
|
+
}
|
|
219
|
+
get apiUrls() {
|
|
220
|
+
return this._result.apiUrls;
|
|
221
|
+
}
|
|
222
|
+
getApiUrls() {
|
|
223
|
+
return new SessionUrls_1.SessionUrlsData(this.apiUrls);
|
|
224
|
+
}
|
|
225
|
+
/** @deprecated */
|
|
226
|
+
setApiUrls(_apiUrls) {
|
|
227
|
+
// DEPRECATED
|
|
228
|
+
}
|
|
229
|
+
get stepsInfo() {
|
|
230
|
+
return this._result.stepsInfo;
|
|
231
|
+
}
|
|
232
|
+
getStepsInfo() {
|
|
233
|
+
return this.stepsInfo.map(info => new StepInfo_1.StepInfoData(info));
|
|
234
|
+
}
|
|
235
|
+
/** @deprecated */
|
|
236
|
+
setStepsInfo(_stepInfo) {
|
|
237
|
+
// DEPRECATED
|
|
238
|
+
}
|
|
239
|
+
get steps() {
|
|
240
|
+
return this._result.steps;
|
|
241
|
+
}
|
|
242
|
+
getSteps() {
|
|
243
|
+
return this.steps;
|
|
244
|
+
}
|
|
245
|
+
/** @deprecated */
|
|
246
|
+
setSteps(_steps) {
|
|
247
|
+
// DEPRECATED
|
|
248
|
+
}
|
|
249
|
+
get matches() {
|
|
250
|
+
return this._result.matches;
|
|
251
|
+
}
|
|
252
|
+
getMatches() {
|
|
253
|
+
return this.matches;
|
|
254
|
+
}
|
|
255
|
+
/** @deprecated */
|
|
256
|
+
setMatches(_matches) {
|
|
257
|
+
// DEPRECATED
|
|
258
|
+
}
|
|
259
|
+
get mismatches() {
|
|
260
|
+
return this._result.mismatches;
|
|
261
|
+
}
|
|
262
|
+
getMismatches() {
|
|
263
|
+
return this.mismatches;
|
|
264
|
+
}
|
|
265
|
+
/** @deprecated */
|
|
266
|
+
setMismatches(_mismatches) {
|
|
267
|
+
// DEPRECATED
|
|
268
|
+
}
|
|
269
|
+
get missing() {
|
|
270
|
+
return this._result.missing;
|
|
271
|
+
}
|
|
272
|
+
getMissing() {
|
|
273
|
+
return this.missing;
|
|
274
|
+
}
|
|
275
|
+
/** @deprecated */
|
|
276
|
+
setMissing(_missing) {
|
|
277
|
+
// DEPRECATED
|
|
278
|
+
}
|
|
279
|
+
get exactMatches() {
|
|
280
|
+
return this._result.exactMatches;
|
|
281
|
+
}
|
|
282
|
+
getExactMatches() {
|
|
283
|
+
return this.exactMatches;
|
|
284
|
+
}
|
|
285
|
+
/** @deprecated */
|
|
286
|
+
setExactMatches(_exactMatches) {
|
|
287
|
+
// DEPRECATED
|
|
288
|
+
}
|
|
289
|
+
get strictMatches() {
|
|
290
|
+
return this._result.strictMatches;
|
|
291
|
+
}
|
|
292
|
+
getStrictMatches() {
|
|
293
|
+
return this.strictMatches;
|
|
294
|
+
}
|
|
295
|
+
/** @deprecated */
|
|
296
|
+
setStrictMatches(_strictMatches) {
|
|
297
|
+
// DEPRECATED
|
|
298
|
+
}
|
|
299
|
+
get contentMatches() {
|
|
300
|
+
return this._result.contentMatches;
|
|
301
|
+
}
|
|
302
|
+
getContentMatches() {
|
|
303
|
+
return this.contentMatches;
|
|
304
|
+
}
|
|
305
|
+
/** @deprecated */
|
|
306
|
+
setContentMatches(_contentMatches) {
|
|
307
|
+
// DEPRECATED
|
|
308
|
+
}
|
|
309
|
+
get layoutMatches() {
|
|
310
|
+
return this._result.layoutMatches;
|
|
311
|
+
}
|
|
312
|
+
getLayoutMatches() {
|
|
313
|
+
return this.layoutMatches;
|
|
314
|
+
}
|
|
315
|
+
/** @deprecated */
|
|
316
|
+
setLayoutMatches(_layoutMatches) {
|
|
317
|
+
// DEPRECATED
|
|
318
|
+
}
|
|
319
|
+
get noneMatches() {
|
|
320
|
+
return this._result.noneMatches;
|
|
321
|
+
}
|
|
322
|
+
getNoneMatches() {
|
|
323
|
+
return this.noneMatches;
|
|
324
|
+
}
|
|
325
|
+
/** @deprecated */
|
|
326
|
+
setNoneMatches(_noneMatches) {
|
|
327
|
+
// DEPRECATED
|
|
328
|
+
}
|
|
329
|
+
get url() {
|
|
330
|
+
return this._result.url;
|
|
331
|
+
}
|
|
332
|
+
getUrl() {
|
|
333
|
+
return this.url;
|
|
334
|
+
}
|
|
335
|
+
/** @deprecated */
|
|
336
|
+
setUrl(_url) {
|
|
337
|
+
// DEPRECATED
|
|
338
|
+
}
|
|
339
|
+
get server() {
|
|
340
|
+
return this._result.eyesServer;
|
|
341
|
+
}
|
|
342
|
+
get keepIfDuplicate() {
|
|
343
|
+
return this._result.keepIfDuplicate;
|
|
344
|
+
}
|
|
345
|
+
isPassed() {
|
|
346
|
+
return this._result.status === TestResultsStatus_1.TestResultsStatusEnum.Passed;
|
|
347
|
+
}
|
|
348
|
+
async delete() {
|
|
349
|
+
var _a;
|
|
350
|
+
return (_a = this._core) === null || _a === void 0 ? void 0 : _a.deleteTest({
|
|
351
|
+
settings: {
|
|
352
|
+
eyesServerUrl: this._result.eyesServer.eyesServerUrl,
|
|
353
|
+
apiKey: this._result.eyesServer.apiKey,
|
|
354
|
+
proxy: this._result.eyesServer.proxy,
|
|
355
|
+
testId: this._result.id,
|
|
356
|
+
batchId: this._result.batchId,
|
|
357
|
+
secretToken: this._result.secretToken,
|
|
358
|
+
},
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
/** @deprecated */
|
|
362
|
+
async deleteSession() {
|
|
363
|
+
await this.delete();
|
|
364
|
+
}
|
|
365
|
+
/** @internal */
|
|
366
|
+
toObject() {
|
|
367
|
+
return this._result;
|
|
368
|
+
}
|
|
369
|
+
/** @internal */
|
|
370
|
+
toJSON() {
|
|
371
|
+
return this._result;
|
|
372
|
+
}
|
|
373
|
+
/** @internal */
|
|
374
|
+
toString() {
|
|
375
|
+
return utils.general.toString(this);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
exports.TestResultsData = TestResultsData;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestResultsSummaryData = void 0;
|
|
4
|
+
const TestResultContainer_1 = require("./TestResultContainer");
|
|
5
|
+
class TestResultsSummaryData {
|
|
6
|
+
/** @internal */
|
|
7
|
+
constructor(options) {
|
|
8
|
+
this._summary = options === null || options === void 0 ? void 0 : options.summary;
|
|
9
|
+
this._core = options === null || options === void 0 ? void 0 : options.core;
|
|
10
|
+
}
|
|
11
|
+
getAllResults() {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
return ((_b = (_a = this._summary) === null || _a === void 0 ? void 0 : _a.results.map(container => {
|
|
14
|
+
return new TestResultContainer_1.TestResultContainerData({ container, core: this._core });
|
|
15
|
+
})) !== null && _b !== void 0 ? _b : []);
|
|
16
|
+
}
|
|
17
|
+
[Symbol.iterator]() {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
return ((_b = (_a = this._summary) === null || _a === void 0 ? void 0 : _a.results.map(container => {
|
|
20
|
+
return new TestResultContainer_1.TestResultContainerData({ container, core: this._core });
|
|
21
|
+
})[Symbol.iterator]()) !== null && _b !== void 0 ? _b : [][Symbol.iterator]());
|
|
22
|
+
}
|
|
23
|
+
/** @internal */
|
|
24
|
+
toJSON() {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
return (_b = (_a = this._summary) === null || _a === void 0 ? void 0 : _a.results) !== null && _b !== void 0 ? _b : [];
|
|
27
|
+
}
|
|
28
|
+
/** @internal */
|
|
29
|
+
toString() {
|
|
30
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
31
|
+
return ('result summary {' +
|
|
32
|
+
'\n\tpassed=' +
|
|
33
|
+
((_a = this._summary) === null || _a === void 0 ? void 0 : _a.passed) +
|
|
34
|
+
'\n\tunresolved=' +
|
|
35
|
+
((_b = this._summary) === null || _b === void 0 ? void 0 : _b.unresolved) +
|
|
36
|
+
'\n\tfailed=' +
|
|
37
|
+
((_c = this._summary) === null || _c === void 0 ? void 0 : _c.failed) +
|
|
38
|
+
'\n\texceptions=' +
|
|
39
|
+
((_d = this._summary) === null || _d === void 0 ? void 0 : _d.exceptions) +
|
|
40
|
+
'\n\tmismatches=' +
|
|
41
|
+
((_e = this._summary) === null || _e === void 0 ? void 0 : _e.mismatches) +
|
|
42
|
+
'\n\tmissing=' +
|
|
43
|
+
((_f = this._summary) === null || _f === void 0 ? void 0 : _f.missing) +
|
|
44
|
+
'\n\tmatches=' +
|
|
45
|
+
((_g = this._summary) === null || _g === void 0 ? void 0 : _g.matches) +
|
|
46
|
+
'\n}');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.TestResultsSummaryData = TestResultsSummaryData;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ValidationInfoData = void 0;
|
|
27
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
28
|
+
/** @undocumented */
|
|
29
|
+
class ValidationInfoData {
|
|
30
|
+
/** @internal */
|
|
31
|
+
constructor(info) {
|
|
32
|
+
this._info = {};
|
|
33
|
+
this._info = info instanceof ValidationInfoData ? info.toJSON() : info;
|
|
34
|
+
}
|
|
35
|
+
get validationId() {
|
|
36
|
+
return this._info.validationId;
|
|
37
|
+
}
|
|
38
|
+
getValidationId() {
|
|
39
|
+
return this.validationId;
|
|
40
|
+
}
|
|
41
|
+
get tag() {
|
|
42
|
+
return this._info.tag;
|
|
43
|
+
}
|
|
44
|
+
getTag() {
|
|
45
|
+
return this.tag;
|
|
46
|
+
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
toObject() {
|
|
49
|
+
return this._info;
|
|
50
|
+
}
|
|
51
|
+
/** @internal */
|
|
52
|
+
toJSON() {
|
|
53
|
+
return utils.general.toJSON(this._info);
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
toString() {
|
|
57
|
+
return utils.general.toString(this);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.ValidationInfoData = ValidationInfoData;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ValidationResultData = void 0;
|
|
27
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
28
|
+
/** @undocumented */
|
|
29
|
+
class ValidationResultData {
|
|
30
|
+
/** @internal */
|
|
31
|
+
constructor(result) {
|
|
32
|
+
this._result = result instanceof ValidationResultData ? result.toJSON() : result;
|
|
33
|
+
}
|
|
34
|
+
get asExpected() {
|
|
35
|
+
return this._result.asExpected;
|
|
36
|
+
}
|
|
37
|
+
getAsExpected() {
|
|
38
|
+
return this.asExpected;
|
|
39
|
+
}
|
|
40
|
+
/** @internal */
|
|
41
|
+
toObject() {
|
|
42
|
+
return this._result;
|
|
43
|
+
}
|
|
44
|
+
/** @internal */
|
|
45
|
+
toJSON() {
|
|
46
|
+
return utils.general.toJSON(this._result);
|
|
47
|
+
}
|
|
48
|
+
/** @internal */
|
|
49
|
+
toString() {
|
|
50
|
+
return utils.general.toString(this);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.ValidationResultData = ValidationResultData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -46,10 +46,11 @@
|
|
|
46
46
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@applitools/core": "4.
|
|
49
|
+
"@applitools/core": "4.37.0",
|
|
50
50
|
"@applitools/logger": "2.1.2",
|
|
51
51
|
"@applitools/utils": "1.8.0",
|
|
52
|
-
"chalk": "4.1.2"
|
|
52
|
+
"chalk": "4.1.2",
|
|
53
|
+
"yargs": "17.7.2"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@applitools/req": "^1.7.10",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type SDK } from './SDK';
|
|
2
|
+
import { ProxySettings } from './input/ProxySettings';
|
|
3
|
+
type BatchCloseOptions = {
|
|
4
|
+
batchIds: string[];
|
|
5
|
+
serverUrl: string;
|
|
6
|
+
apiKey: string;
|
|
7
|
+
proxy?: ProxySettings;
|
|
8
|
+
};
|
|
9
|
+
export declare function closeBatch(sdk: SDK): (options: BatchCloseOptions) => Promise<void>;
|
|
10
|
+
export declare class BatchClose {
|
|
11
|
+
protected static readonly _sdk: SDK;
|
|
12
|
+
protected get _sdk(): SDK;
|
|
13
|
+
private _core;
|
|
14
|
+
private _settings;
|
|
15
|
+
static close(settings: BatchCloseOptions): Promise<void>;
|
|
16
|
+
constructor(options?: BatchCloseOptions);
|
|
17
|
+
close(): Promise<void>;
|
|
18
|
+
setBatchIds(batchIds: string[]): this;
|
|
19
|
+
setUrl(serverUrl: string): this;
|
|
20
|
+
setApiKey(apiKey: string): this;
|
|
21
|
+
setProxy(proxy: ProxySettings): this;
|
|
22
|
+
}
|
|
23
|
+
export {};
|