@applitools/eyes 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.
- package/LICENSE +26 -0
- package/dist/BatchClose.js +74 -0
- package/dist/Eyes.js +716 -0
- package/dist/Logger.js +128 -0
- package/dist/Runners.js +126 -0
- package/dist/SDK.js +41 -0
- package/dist/SessionEventHandlers.js +193 -0
- package/dist/enums/AccessibilityGuidelinesVersion.js +8 -0
- package/dist/enums/AccessibilityLevel.js +8 -0
- package/dist/enums/AccessibilityRegionType.js +11 -0
- package/dist/enums/AccessibilityStatus.js +8 -0
- package/dist/enums/AndroidDeviceName.js +31 -0
- package/dist/enums/AndroidVersion.js +8 -0
- package/dist/enums/BrowserType.js +23 -0
- package/dist/enums/CorsIframeHandle.js +10 -0
- package/dist/enums/DeviceName.js +75 -0
- package/dist/enums/FailureReport.js +8 -0
- package/dist/enums/IosDeviceName.js +31 -0
- package/dist/enums/IosVersion.js +10 -0
- package/dist/enums/MatchLevel.js +14 -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 +46 -0
- package/dist/index.js +130 -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 +547 -0
- package/dist/input/Configuration.js +1048 -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/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 +96 -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 +46 -0
- package/dist/output/TestResults.js +365 -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 +68 -0
- package/types/BatchClose.d.ts +23 -0
- package/types/Eyes.d.ts +245 -0
- package/types/Logger.d.ts +32 -0
- package/types/Runners.d.ts +50 -0
- package/types/SDK.d.ts +10 -0
- package/types/SessionEventHandlers.d.ts +78 -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/AndroidDeviceName.d.ts +28 -0
- package/types/enums/AndroidVersion.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 +70 -0
- package/types/enums/FailureReport.d.ts +5 -0
- package/types/enums/IosDeviceName.d.ts +28 -0
- package/types/enums/IosVersion.d.ts +7 -0
- package/types/enums/MatchLevel.d.ts +11 -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 +231 -0
- package/types/input/Configuration.d.ts +368 -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/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 +37 -0
- package/types/input/RunnerOptions.d.ts +16 -0
- package/types/input/VisualLocatorSettings.d.ts +4 -0
- package/types/output/ApiUrls.d.ts +38 -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 +177 -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,96 @@
|
|
|
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.ApiUrlsData = void 0;
|
|
27
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
28
|
+
class ApiUrlsData {
|
|
29
|
+
/** @internal */
|
|
30
|
+
constructor(urls) {
|
|
31
|
+
this._urls = urls instanceof ApiUrlsData ? urls.toJSON() : urls;
|
|
32
|
+
}
|
|
33
|
+
get baselineImage() {
|
|
34
|
+
return this._urls.baselineImage;
|
|
35
|
+
}
|
|
36
|
+
getBaselineImage() {
|
|
37
|
+
return this.baselineImage;
|
|
38
|
+
}
|
|
39
|
+
/** @deprecated */
|
|
40
|
+
setBaselineImage(setBaselineImage) {
|
|
41
|
+
this._urls.baselineImage = setBaselineImage;
|
|
42
|
+
}
|
|
43
|
+
get currentImage() {
|
|
44
|
+
return this._urls.currentImage;
|
|
45
|
+
}
|
|
46
|
+
getCurrentImage() {
|
|
47
|
+
return this.currentImage;
|
|
48
|
+
}
|
|
49
|
+
/** @deprecated */
|
|
50
|
+
setCurrentImage(currentImage) {
|
|
51
|
+
this._urls.currentImage = currentImage;
|
|
52
|
+
}
|
|
53
|
+
get checkpointImage() {
|
|
54
|
+
return this._urls.checkpointImage;
|
|
55
|
+
}
|
|
56
|
+
getCheckpointImage() {
|
|
57
|
+
return this.checkpointImage;
|
|
58
|
+
}
|
|
59
|
+
/** @deprecated */
|
|
60
|
+
setCheckpointImage(checkpointImage) {
|
|
61
|
+
this._urls.checkpointImage = checkpointImage;
|
|
62
|
+
}
|
|
63
|
+
get checkpointImageThumbnail() {
|
|
64
|
+
return this._urls.checkpointImageThumbnail;
|
|
65
|
+
}
|
|
66
|
+
getCheckpointImageThumbnail() {
|
|
67
|
+
return this.checkpointImageThumbnail;
|
|
68
|
+
}
|
|
69
|
+
/** @deprecated */
|
|
70
|
+
setCheckpointImageThumbnail(checkpointImageThumbnail) {
|
|
71
|
+
this._urls.checkpointImageThumbnail = checkpointImageThumbnail;
|
|
72
|
+
}
|
|
73
|
+
get diffImage() {
|
|
74
|
+
return this._urls.diffImage;
|
|
75
|
+
}
|
|
76
|
+
getDiffImage() {
|
|
77
|
+
return this.diffImage;
|
|
78
|
+
}
|
|
79
|
+
/** @deprecated */
|
|
80
|
+
setDiffImage(diffImage) {
|
|
81
|
+
this._urls.diffImage = diffImage;
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
toObject() {
|
|
85
|
+
return this._urls;
|
|
86
|
+
}
|
|
87
|
+
/** @internal */
|
|
88
|
+
toJSON() {
|
|
89
|
+
return utils.general.toJSON(this._urls);
|
|
90
|
+
}
|
|
91
|
+
/** @internal */
|
|
92
|
+
toString() {
|
|
93
|
+
return utils.general.toString(this);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.ApiUrlsData = ApiUrlsData;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.AppUrlsData = void 0;
|
|
27
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
28
|
+
class AppUrlsData {
|
|
29
|
+
/** @internal */
|
|
30
|
+
constructor(urls) {
|
|
31
|
+
this._urls = urls instanceof AppUrlsData ? urls.toJSON() : urls;
|
|
32
|
+
}
|
|
33
|
+
get step() {
|
|
34
|
+
return this._urls.step;
|
|
35
|
+
}
|
|
36
|
+
getStep() {
|
|
37
|
+
return this.step;
|
|
38
|
+
}
|
|
39
|
+
/** @deprecated */
|
|
40
|
+
setStep(step) {
|
|
41
|
+
this._urls.step = step;
|
|
42
|
+
}
|
|
43
|
+
get stepEditor() {
|
|
44
|
+
return this._urls.stepEditor;
|
|
45
|
+
}
|
|
46
|
+
getStepEditor() {
|
|
47
|
+
return this.stepEditor;
|
|
48
|
+
}
|
|
49
|
+
/** @deprecated */
|
|
50
|
+
setStepEditor(stepEditor) {
|
|
51
|
+
this._urls.stepEditor = stepEditor;
|
|
52
|
+
}
|
|
53
|
+
/** @internal */
|
|
54
|
+
toObject() {
|
|
55
|
+
return this._urls;
|
|
56
|
+
}
|
|
57
|
+
/** @internal */
|
|
58
|
+
toJSON() {
|
|
59
|
+
return utils.general.toJSON(this._urls);
|
|
60
|
+
}
|
|
61
|
+
/** @internal */
|
|
62
|
+
toString() {
|
|
63
|
+
return utils.general.toString(this);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.AppUrlsData = AppUrlsData;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.MatchResultData = void 0;
|
|
27
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
28
|
+
class MatchResultData {
|
|
29
|
+
/** @internal */
|
|
30
|
+
constructor(result) {
|
|
31
|
+
this._result = result instanceof MatchResultData ? result.toJSON() : result;
|
|
32
|
+
}
|
|
33
|
+
get asExpected() {
|
|
34
|
+
return this._result.asExpected;
|
|
35
|
+
}
|
|
36
|
+
getAsExpected() {
|
|
37
|
+
return this.asExpected;
|
|
38
|
+
}
|
|
39
|
+
/** @deprecated */
|
|
40
|
+
setAsExpected(asExpected) {
|
|
41
|
+
this._result.asExpected = asExpected;
|
|
42
|
+
}
|
|
43
|
+
get windowId() {
|
|
44
|
+
return this._result.windowId;
|
|
45
|
+
}
|
|
46
|
+
getWindowId() {
|
|
47
|
+
return this.windowId;
|
|
48
|
+
}
|
|
49
|
+
/** @deprecated */
|
|
50
|
+
setWindowId(windowId) {
|
|
51
|
+
this._result.windowId = windowId;
|
|
52
|
+
}
|
|
53
|
+
/** @internal */
|
|
54
|
+
toObject() {
|
|
55
|
+
return this._result;
|
|
56
|
+
}
|
|
57
|
+
/** @internal */
|
|
58
|
+
toJSON() {
|
|
59
|
+
return utils.general.toJSON(this._result);
|
|
60
|
+
}
|
|
61
|
+
/** @internal */
|
|
62
|
+
toString() {
|
|
63
|
+
return utils.general.toString(this);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.MatchResultData = MatchResultData;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.SessionUrlsData = void 0;
|
|
27
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
28
|
+
class SessionUrlsData {
|
|
29
|
+
/** @internal */
|
|
30
|
+
constructor(urls) {
|
|
31
|
+
this._urls = urls instanceof SessionUrlsData ? urls.toJSON() : urls;
|
|
32
|
+
}
|
|
33
|
+
get batch() {
|
|
34
|
+
return this._urls.batch;
|
|
35
|
+
}
|
|
36
|
+
getBatch() {
|
|
37
|
+
return this.batch;
|
|
38
|
+
}
|
|
39
|
+
/** @deprecated */
|
|
40
|
+
setBatch(batch) {
|
|
41
|
+
this._urls.batch = batch;
|
|
42
|
+
}
|
|
43
|
+
get session() {
|
|
44
|
+
return this._urls.session;
|
|
45
|
+
}
|
|
46
|
+
getSession() {
|
|
47
|
+
return this.session;
|
|
48
|
+
}
|
|
49
|
+
/** @deprecated */
|
|
50
|
+
setSession(session) {
|
|
51
|
+
this._urls.session = session;
|
|
52
|
+
}
|
|
53
|
+
/** @internal */
|
|
54
|
+
toObject() {
|
|
55
|
+
return this._urls;
|
|
56
|
+
}
|
|
57
|
+
/** @internal */
|
|
58
|
+
toJSON() {
|
|
59
|
+
return utils.general.toJSON(this._urls);
|
|
60
|
+
}
|
|
61
|
+
/** @internal */
|
|
62
|
+
toString() {
|
|
63
|
+
return utils.general.toString(this);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.SessionUrlsData = SessionUrlsData;
|
|
@@ -0,0 +1,118 @@
|
|
|
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.StepInfoData = void 0;
|
|
27
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
28
|
+
const AppUrls_1 = require("./AppUrls");
|
|
29
|
+
const ApiUrls_1 = require("./ApiUrls");
|
|
30
|
+
class StepInfoData {
|
|
31
|
+
/** @internal */
|
|
32
|
+
constructor(info) {
|
|
33
|
+
this._info = info instanceof StepInfoData ? info.toJSON() : info;
|
|
34
|
+
}
|
|
35
|
+
get name() {
|
|
36
|
+
return this._info.name;
|
|
37
|
+
}
|
|
38
|
+
getName() {
|
|
39
|
+
return this.name;
|
|
40
|
+
}
|
|
41
|
+
/** @deprecated */
|
|
42
|
+
setName(value) {
|
|
43
|
+
this._info.name = value;
|
|
44
|
+
}
|
|
45
|
+
get isDifferent() {
|
|
46
|
+
return this._info.isDifferent;
|
|
47
|
+
}
|
|
48
|
+
getIsDifferent() {
|
|
49
|
+
return this.isDifferent;
|
|
50
|
+
}
|
|
51
|
+
/** @deprecated */
|
|
52
|
+
setIsDifferent(value) {
|
|
53
|
+
this._info.isDifferent = value;
|
|
54
|
+
}
|
|
55
|
+
get hasBaselineImage() {
|
|
56
|
+
return this._info.hasBaselineImage;
|
|
57
|
+
}
|
|
58
|
+
getHasBaselineImage() {
|
|
59
|
+
return this.hasBaselineImage;
|
|
60
|
+
}
|
|
61
|
+
/** @deprecated */
|
|
62
|
+
setHasBaselineImage(value) {
|
|
63
|
+
this._info.hasBaselineImage = value;
|
|
64
|
+
}
|
|
65
|
+
get hasCurrentImage() {
|
|
66
|
+
return this._info.hasCurrentImage;
|
|
67
|
+
}
|
|
68
|
+
getHasCurrentImage() {
|
|
69
|
+
return this.hasCurrentImage;
|
|
70
|
+
}
|
|
71
|
+
/** @deprecated */
|
|
72
|
+
setHasCurrentImage(hasCurrentImage) {
|
|
73
|
+
this._info.hasCurrentImage = hasCurrentImage;
|
|
74
|
+
}
|
|
75
|
+
get appUrls() {
|
|
76
|
+
return this._info.appUrls;
|
|
77
|
+
}
|
|
78
|
+
getAppUrls() {
|
|
79
|
+
return new AppUrls_1.AppUrlsData(this.appUrls);
|
|
80
|
+
}
|
|
81
|
+
/** @deprecated */
|
|
82
|
+
setAppUrls(appUrls) {
|
|
83
|
+
this._info.appUrls = appUrls;
|
|
84
|
+
}
|
|
85
|
+
get apiUrls() {
|
|
86
|
+
return this._info.apiUrls;
|
|
87
|
+
}
|
|
88
|
+
getApiUrls() {
|
|
89
|
+
return new ApiUrls_1.ApiUrlsData(this.apiUrls);
|
|
90
|
+
}
|
|
91
|
+
/** @deprecated */
|
|
92
|
+
setApiUrls(apiUrls) {
|
|
93
|
+
this._info.apiUrls = apiUrls;
|
|
94
|
+
}
|
|
95
|
+
get renderId() {
|
|
96
|
+
return this._info.renderId;
|
|
97
|
+
}
|
|
98
|
+
getRenderId() {
|
|
99
|
+
return this.renderId;
|
|
100
|
+
}
|
|
101
|
+
/** @deprecated */
|
|
102
|
+
setRenderId(renderId) {
|
|
103
|
+
this._info.renderId = renderId;
|
|
104
|
+
}
|
|
105
|
+
/** @internal */
|
|
106
|
+
toObject() {
|
|
107
|
+
return this._info;
|
|
108
|
+
}
|
|
109
|
+
/** @internal */
|
|
110
|
+
toJSON() {
|
|
111
|
+
return utils.general.toJSON(this._info);
|
|
112
|
+
}
|
|
113
|
+
/** @internal */
|
|
114
|
+
toString() {
|
|
115
|
+
return utils.general.toString(this);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.StepInfoData = StepInfoData;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestResultContainerData = void 0;
|
|
4
|
+
const TestResults_1 = require("./TestResults");
|
|
5
|
+
class TestResultContainerData {
|
|
6
|
+
/** @internal */
|
|
7
|
+
constructor(options) {
|
|
8
|
+
this._container = options.container;
|
|
9
|
+
this._deleteTest = options.deleteTest;
|
|
10
|
+
}
|
|
11
|
+
get testResults() {
|
|
12
|
+
return this._container.result;
|
|
13
|
+
}
|
|
14
|
+
getTestResults() {
|
|
15
|
+
return this.testResults && new TestResults_1.TestResultsData({ result: this.testResults, deleteTest: this._deleteTest });
|
|
16
|
+
}
|
|
17
|
+
get exception() {
|
|
18
|
+
return this._container.error;
|
|
19
|
+
}
|
|
20
|
+
getException() {
|
|
21
|
+
return this.exception;
|
|
22
|
+
}
|
|
23
|
+
get browserInfo() {
|
|
24
|
+
return this._container.renderer;
|
|
25
|
+
}
|
|
26
|
+
getBrowserInfo() {
|
|
27
|
+
return this.browserInfo;
|
|
28
|
+
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
toObject() {
|
|
31
|
+
return {
|
|
32
|
+
testResults: this._container.result,
|
|
33
|
+
exception: this._container.error,
|
|
34
|
+
browserInfo: this._container.renderer,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** @internal */
|
|
38
|
+
toJSON() {
|
|
39
|
+
return this._container;
|
|
40
|
+
}
|
|
41
|
+
/** @internal */
|
|
42
|
+
toString() {
|
|
43
|
+
return `${this.testResults ? this.testResults : ''} - ${this.exception ? this.exception : ''}`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.TestResultContainerData = TestResultContainerData;
|