@applitools/eyes 1.33.1 → 1.33.3
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 +10 -0
- package/package.json +3 -3
- package/dist/BatchClose.js +0 -84
- package/dist/Eyes.js +0 -750
- package/dist/Logger.js +0 -122
- package/dist/Runners.js +0 -130
- package/dist/SDK.js +0 -45
- package/dist/SessionEventHandlers.js +0 -193
- package/dist/cli/cli.js +0 -56
- package/dist/cli/load-config.js +0 -73
- package/dist/enums/AccessibilityGuidelinesVersion.js +0 -9
- package/dist/enums/AccessibilityLevel.js +0 -9
- package/dist/enums/AccessibilityRegionType.js +0 -12
- package/dist/enums/AccessibilityStatus.js +0 -9
- package/dist/enums/BrowserType.js +0 -23
- package/dist/enums/CorsIframeHandle.js +0 -10
- package/dist/enums/DeviceName.js +0 -105
- package/dist/enums/DynamicTextType.js +0 -13
- package/dist/enums/FailureReport.js +0 -8
- package/dist/enums/IosDeviceName.js +0 -47
- package/dist/enums/IosMultiDeviceTarget.js +0 -30
- package/dist/enums/IosVersion.js +0 -10
- package/dist/enums/MatchLevel.js +0 -15
- package/dist/enums/ScreenOrientation.js +0 -8
- package/dist/enums/SessionType.js +0 -8
- package/dist/enums/StitchMode.js +0 -11
- package/dist/enums/TestResultsStatus.js +0 -9
- package/dist/errors/DiffsFoundError.js +0 -38
- package/dist/errors/EyesError.js +0 -6
- package/dist/errors/NewTestError.js +0 -38
- package/dist/errors/TestFailedError.js +0 -47
- package/dist/index.js +0 -128
- package/dist/input/AUTProxySettings.js +0 -2
- package/dist/input/AccessibilityMatchSettings.js +0 -109
- package/dist/input/AccessibilitySettings.js +0 -2
- package/dist/input/BatchInfo.js +0 -153
- package/dist/input/CheckSettings.js +0 -663
- package/dist/input/Configuration.js +0 -1179
- package/dist/input/CutProvider.js +0 -132
- package/dist/input/DebugScreenshotProvider.js +0 -2
- package/dist/input/DensityMetrics.js +0 -2
- package/dist/input/ExactMatchSettings.js +0 -102
- package/dist/input/EyesSelector.js +0 -2
- package/dist/input/FloatingMatchSettings.js +0 -152
- package/dist/input/Image.js +0 -2
- package/dist/input/ImageMatchSettings.js +0 -271
- package/dist/input/ImageRotation.js +0 -59
- package/dist/input/LatestCommitInfo.js +0 -2
- package/dist/input/LazyLoadOptions.js +0 -2
- package/dist/input/Location.js +0 -74
- package/dist/input/LogHandler.js +0 -90
- package/dist/input/OCRRegion.js +0 -2
- package/dist/input/OCRSettings.js +0 -2
- package/dist/input/PropertyData.js +0 -76
- package/dist/input/ProxySettings.js +0 -77
- package/dist/input/RectangleSize.js +0 -74
- package/dist/input/Region.js +0 -135
- package/dist/input/RenderInfo.js +0 -2
- package/dist/input/RunnerOptions.js +0 -56
- package/dist/input/VisualLocatorSettings.js +0 -2
- package/dist/output/ApiUrls.js +0 -102
- package/dist/output/AppUrls.js +0 -66
- package/dist/output/MatchResult.js +0 -66
- package/dist/output/SessionUrls.js +0 -66
- package/dist/output/StepInfo.js +0 -118
- package/dist/output/TestAccessibilityStatus.js +0 -2
- package/dist/output/TestResultContainer.js +0 -49
- package/dist/output/TestResults.js +0 -378
- package/dist/output/TestResultsSummary.js +0 -49
- package/dist/output/TextRegion.js +0 -2
- package/dist/output/ValidationInfo.js +0 -60
- package/dist/output/ValidationResult.js +0 -53
- package/types/BatchClose.d.ts +0 -23
- package/types/Eyes.d.ts +0 -255
- package/types/Logger.d.ts +0 -30
- package/types/Runners.d.ts +0 -41
- package/types/SDK.d.ts +0 -20
- package/types/SessionEventHandlers.d.ts +0 -78
- package/types/cli/cli.d.ts +0 -2
- package/types/cli/load-config.d.ts +0 -1
- package/types/enums/AccessibilityGuidelinesVersion.d.ts +0 -5
- package/types/enums/AccessibilityLevel.d.ts +0 -5
- package/types/enums/AccessibilityRegionType.d.ts +0 -8
- package/types/enums/AccessibilityStatus.d.ts +0 -5
- package/types/enums/BrowserType.d.ts +0 -20
- package/types/enums/CorsIframeHandle.d.ts +0 -7
- package/types/enums/DeviceName.d.ts +0 -101
- package/types/enums/DynamicTextType.d.ts +0 -9
- package/types/enums/FailureReport.d.ts +0 -5
- package/types/enums/IosDeviceName.d.ts +0 -43
- package/types/enums/IosMultiDeviceTarget.d.ts +0 -26
- package/types/enums/IosVersion.d.ts +0 -7
- package/types/enums/MatchLevel.d.ts +0 -12
- package/types/enums/ScreenOrientation.d.ts +0 -5
- package/types/enums/SessionType.d.ts +0 -5
- package/types/enums/StitchMode.d.ts +0 -8
- package/types/enums/TestResultsStatus.d.ts +0 -6
- package/types/errors/DiffsFoundError.d.ts +0 -6
- package/types/errors/EyesError.d.ts +0 -2
- package/types/errors/NewTestError.d.ts +0 -6
- package/types/errors/TestFailedError.d.ts +0 -9
- package/types/index.d.ts +0 -60
- package/types/input/AUTProxySettings.d.ts +0 -5
- package/types/input/AccessibilityMatchSettings.d.ts +0 -34
- package/types/input/AccessibilitySettings.d.ts +0 -6
- package/types/input/BatchInfo.d.ts +0 -47
- package/types/input/CheckSettings.d.ts +0 -266
- package/types/input/Configuration.d.ts +0 -437
- package/types/input/CutProvider.d.ts +0 -44
- package/types/input/DebugScreenshotProvider.d.ts +0 -5
- package/types/input/DensityMetrics.d.ts +0 -5
- package/types/input/ExactMatchSettings.d.ts +0 -34
- package/types/input/EyesSelector.d.ts +0 -6
- package/types/input/FloatingMatchSettings.d.ts +0 -50
- package/types/input/Image.d.ts +0 -11
- package/types/input/ImageMatchSettings.d.ts +0 -95
- package/types/input/ImageRotation.d.ts +0 -15
- package/types/input/LatestCommitInfo.d.ts +0 -4
- package/types/input/LazyLoadOptions.d.ts +0 -5
- package/types/input/Location.d.ts +0 -23
- package/types/input/LogHandler.d.ts +0 -45
- package/types/input/OCRRegion.d.ts +0 -9
- package/types/input/OCRSettings.d.ts +0 -6
- package/types/input/PropertyData.d.ts +0 -23
- package/types/input/ProxySettings.d.ts +0 -25
- package/types/input/RectangleSize.d.ts +0 -23
- package/types/input/Region.d.ts +0 -46
- package/types/input/RenderInfo.d.ts +0 -47
- package/types/input/RunnerOptions.d.ts +0 -21
- package/types/input/VisualLocatorSettings.d.ts +0 -4
- package/types/output/ApiUrls.d.ts +0 -41
- package/types/output/AppUrls.d.ts +0 -23
- package/types/output/MatchResult.d.ts +0 -23
- package/types/output/SessionUrls.d.ts +0 -23
- package/types/output/StepInfo.d.ts +0 -50
- package/types/output/TestAccessibilityStatus.d.ts +0 -8
- package/types/output/TestResultContainer.d.ts +0 -31
- package/types/output/TestResults.d.ts +0 -186
- package/types/output/TestResultsSummary.d.ts +0 -18
- package/types/output/TextRegion.d.ts +0 -7
- package/types/output/ValidationInfo.d.ts +0 -21
- package/types/output/ValidationResult.d.ts +0 -18
|
@@ -1,1179 +0,0 @@
|
|
|
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.ConfigurationData = void 0;
|
|
27
|
-
const StitchMode_1 = require("../enums/StitchMode");
|
|
28
|
-
const MatchLevel_1 = require("../enums/MatchLevel");
|
|
29
|
-
const BrowserType_1 = require("../enums/BrowserType");
|
|
30
|
-
const ScreenOrientation_1 = require("../enums/ScreenOrientation");
|
|
31
|
-
const RectangleSize_1 = require("./RectangleSize");
|
|
32
|
-
const ImageRotation_1 = require("./ImageRotation");
|
|
33
|
-
const ProxySettings_1 = require("./ProxySettings");
|
|
34
|
-
const BatchInfo_1 = require("./BatchInfo");
|
|
35
|
-
const PropertyData_1 = require("./PropertyData");
|
|
36
|
-
const ImageMatchSettings_1 = require("./ImageMatchSettings");
|
|
37
|
-
const utils = __importStar(require("@applitools/utils"));
|
|
38
|
-
class ConfigurationData {
|
|
39
|
-
_isElementReference(value) {
|
|
40
|
-
var _a, _b, _c;
|
|
41
|
-
const spec = (_a = this._spec) !== null && _a !== void 0 ? _a : this.constructor._spec;
|
|
42
|
-
return !!((_b = spec.isElement) === null || _b === void 0 ? void 0 : _b.call(spec, value)) || !!((_c = spec.isSecondaryElement) === null || _c === void 0 ? void 0 : _c.call(spec, value)) || this._isSelectorReference(value);
|
|
43
|
-
}
|
|
44
|
-
_isSelectorReference(selector) {
|
|
45
|
-
var _a, _b, _c, _d, _e;
|
|
46
|
-
const spec = (_a = this._spec) !== null && _a !== void 0 ? _a : this.constructor._spec;
|
|
47
|
-
return (!!((_b = spec.isSelector) === null || _b === void 0 ? void 0 : _b.call(spec, selector)) ||
|
|
48
|
-
!!((_c = spec.isSecondarySelector) === null || _c === void 0 ? void 0 : _c.call(spec, selector)) ||
|
|
49
|
-
utils.types.isString(selector) ||
|
|
50
|
-
(utils.types.isPlainObject(selector) &&
|
|
51
|
-
utils.types.has(selector, 'selector') &&
|
|
52
|
-
(utils.types.isString(selector.selector) ||
|
|
53
|
-
!!((_d = spec.isSelector) === null || _d === void 0 ? void 0 : _d.call(spec, selector.selector)) ||
|
|
54
|
-
!!((_e = spec.isSecondarySelector) === null || _e === void 0 ? void 0 : _e.call(spec, selector.selector)))));
|
|
55
|
-
}
|
|
56
|
-
constructor(config, spec) {
|
|
57
|
-
this._config = {};
|
|
58
|
-
config = utils.types.instanceOf(config, ConfigurationData) ? config.toObject() : config !== null && config !== void 0 ? config : {};
|
|
59
|
-
this._spec = spec;
|
|
60
|
-
for (const [key, value] of Object.entries(config)) {
|
|
61
|
-
;
|
|
62
|
-
this[key] = value;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
get accessibilityValidation() {
|
|
66
|
-
return this.defaultMatchSettings.accessibilitySettings;
|
|
67
|
-
}
|
|
68
|
-
set accessibilityValidation(accessibilityValidation) {
|
|
69
|
-
if (!this.defaultMatchSettings)
|
|
70
|
-
this.defaultMatchSettings = {};
|
|
71
|
-
this.defaultMatchSettings.accessibilitySettings = accessibilityValidation;
|
|
72
|
-
}
|
|
73
|
-
getAccessibilityValidation() {
|
|
74
|
-
return this.accessibilityValidation;
|
|
75
|
-
}
|
|
76
|
-
setAccessibilityValidation(accessibilityValidation) {
|
|
77
|
-
this.accessibilityValidation = accessibilityValidation;
|
|
78
|
-
return this;
|
|
79
|
-
}
|
|
80
|
-
get agentId() {
|
|
81
|
-
return this._config.agentId;
|
|
82
|
-
}
|
|
83
|
-
set agentId(agentId) {
|
|
84
|
-
utils.guard.isString(agentId, { name: 'agentId' });
|
|
85
|
-
this._config.agentId = agentId;
|
|
86
|
-
}
|
|
87
|
-
getAgentId() {
|
|
88
|
-
return this.agentId;
|
|
89
|
-
}
|
|
90
|
-
setAgentId(agentId) {
|
|
91
|
-
this.agentId = agentId;
|
|
92
|
-
return this;
|
|
93
|
-
}
|
|
94
|
-
get apiKey() {
|
|
95
|
-
return this._config.apiKey;
|
|
96
|
-
}
|
|
97
|
-
set apiKey(apiKey) {
|
|
98
|
-
utils.guard.isString(apiKey, { name: 'apiKey', alpha: true, numeric: true });
|
|
99
|
-
this._config.apiKey = apiKey;
|
|
100
|
-
}
|
|
101
|
-
getApiKey() {
|
|
102
|
-
var _a;
|
|
103
|
-
return (_a = this.apiKey) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('API_KEY');
|
|
104
|
-
}
|
|
105
|
-
setApiKey(apiKey) {
|
|
106
|
-
this.apiKey = apiKey;
|
|
107
|
-
return this;
|
|
108
|
-
}
|
|
109
|
-
get appName() {
|
|
110
|
-
return this._config.appName;
|
|
111
|
-
}
|
|
112
|
-
set appName(appName) {
|
|
113
|
-
utils.guard.isString(appName, { name: 'appName', strict: false });
|
|
114
|
-
this._config.appName = appName;
|
|
115
|
-
}
|
|
116
|
-
getAppName() {
|
|
117
|
-
return this.appName;
|
|
118
|
-
}
|
|
119
|
-
setAppName(appName) {
|
|
120
|
-
this.appName = appName;
|
|
121
|
-
return this;
|
|
122
|
-
}
|
|
123
|
-
get autProxy() {
|
|
124
|
-
return this._config.autProxy;
|
|
125
|
-
}
|
|
126
|
-
set autProxy(autProxy) {
|
|
127
|
-
this._config.autProxy = autProxy;
|
|
128
|
-
}
|
|
129
|
-
getAutProxy() {
|
|
130
|
-
return this.autProxy;
|
|
131
|
-
}
|
|
132
|
-
setAutProxy(autProxy) {
|
|
133
|
-
this.autProxy = autProxy;
|
|
134
|
-
return this;
|
|
135
|
-
}
|
|
136
|
-
get baselineBranchName() {
|
|
137
|
-
return this._config.baselineBranchName;
|
|
138
|
-
}
|
|
139
|
-
set baselineBranchName(baselineBranchName) {
|
|
140
|
-
utils.guard.isString(baselineBranchName, { name: 'baselineBranchName' });
|
|
141
|
-
this._config.baselineBranchName = baselineBranchName;
|
|
142
|
-
}
|
|
143
|
-
getBaselineBranchName() {
|
|
144
|
-
var _a;
|
|
145
|
-
return (_a = this.baselineBranchName) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('BASELINE_BRANCH_NAME');
|
|
146
|
-
}
|
|
147
|
-
setBaselineBranchName(baselineBranchName) {
|
|
148
|
-
this.baselineBranchName = baselineBranchName;
|
|
149
|
-
return this;
|
|
150
|
-
}
|
|
151
|
-
get baselineEnvName() {
|
|
152
|
-
return this._config.baselineEnvName;
|
|
153
|
-
}
|
|
154
|
-
set baselineEnvName(baselineEnvName) {
|
|
155
|
-
utils.guard.isString(baselineEnvName, { name: 'baselineEnvName', strict: false });
|
|
156
|
-
this._config.baselineEnvName = baselineEnvName ? baselineEnvName.trim() : undefined;
|
|
157
|
-
}
|
|
158
|
-
getBaselineEnvName() {
|
|
159
|
-
return this.baselineEnvName;
|
|
160
|
-
}
|
|
161
|
-
setBaselineEnvName(baselineEnvName) {
|
|
162
|
-
this.baselineEnvName = baselineEnvName;
|
|
163
|
-
return this;
|
|
164
|
-
}
|
|
165
|
-
get batch() {
|
|
166
|
-
return this._config.batch;
|
|
167
|
-
}
|
|
168
|
-
set batch(batch) {
|
|
169
|
-
this._config.batch = batch;
|
|
170
|
-
}
|
|
171
|
-
getBatch() {
|
|
172
|
-
return new BatchInfo_1.BatchInfoData(this.batch);
|
|
173
|
-
}
|
|
174
|
-
setBatch(batch) {
|
|
175
|
-
this.batch = batch;
|
|
176
|
-
return this;
|
|
177
|
-
}
|
|
178
|
-
get branchName() {
|
|
179
|
-
return this._config.branchName;
|
|
180
|
-
}
|
|
181
|
-
set branchName(branchName) {
|
|
182
|
-
utils.guard.isString(branchName, { name: 'branchName' });
|
|
183
|
-
this._config.branchName = branchName;
|
|
184
|
-
}
|
|
185
|
-
getBranchName() {
|
|
186
|
-
var _a;
|
|
187
|
-
return (_a = this.branchName) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('BRANCH');
|
|
188
|
-
}
|
|
189
|
-
setBranchName(branchName) {
|
|
190
|
-
this.branchName = branchName;
|
|
191
|
-
return this;
|
|
192
|
-
}
|
|
193
|
-
get browsersInfo() {
|
|
194
|
-
return this._config.browsersInfo;
|
|
195
|
-
}
|
|
196
|
-
set browsersInfo(browsersInfo) {
|
|
197
|
-
utils.guard.isArray(browsersInfo, { name: 'browsersInfo' });
|
|
198
|
-
this._config.browsersInfo = browsersInfo;
|
|
199
|
-
}
|
|
200
|
-
getBrowsersInfo() {
|
|
201
|
-
return this.browsersInfo;
|
|
202
|
-
}
|
|
203
|
-
setBrowsersInfo(browsersInfo) {
|
|
204
|
-
this.browsersInfo = browsersInfo.map(browserInfo => utils.types.has(browserInfo, 'deviceName') ? { chromeEmulationInfo: browserInfo } : browserInfo);
|
|
205
|
-
return this;
|
|
206
|
-
}
|
|
207
|
-
addBrowsers(...browsersInfo) {
|
|
208
|
-
for (const [index, browserInfo] of browsersInfo.entries()) {
|
|
209
|
-
utils.guard.isObject(browserInfo, { name: `addBrowsers( arg${index} )` });
|
|
210
|
-
}
|
|
211
|
-
if (!this.browsersInfo)
|
|
212
|
-
this.browsersInfo = [];
|
|
213
|
-
this.browsersInfo.push(...browsersInfo.map(browserInfo => utils.types.has(browserInfo, 'deviceName') ? { chromeEmulationInfo: browserInfo } : browserInfo));
|
|
214
|
-
return this;
|
|
215
|
-
}
|
|
216
|
-
addBrowser(browserInfoOrWidth, height, name = BrowserType_1.BrowserTypeEnum.CHROME) {
|
|
217
|
-
if (utils.types.isObject(browserInfoOrWidth))
|
|
218
|
-
return this.addBrowsers(browserInfoOrWidth);
|
|
219
|
-
else
|
|
220
|
-
return this.addBrowsers({ width: browserInfoOrWidth, height: height, name });
|
|
221
|
-
}
|
|
222
|
-
addDeviceEmulation(deviceName, screenOrientation = ScreenOrientation_1.ScreenOrientationEnum.PORTRAIT) {
|
|
223
|
-
if (!this.browsersInfo)
|
|
224
|
-
this.browsersInfo = [];
|
|
225
|
-
this.browsersInfo.push({ chromeEmulationInfo: { deviceName, screenOrientation } });
|
|
226
|
-
return this;
|
|
227
|
-
}
|
|
228
|
-
addMultiDeviceTarget(deviceName) {
|
|
229
|
-
if (!this.browsersInfo)
|
|
230
|
-
this.browsersInfo = [];
|
|
231
|
-
this.browsersInfo.push({ iosDeviceInfo: { deviceName } });
|
|
232
|
-
return this;
|
|
233
|
-
}
|
|
234
|
-
get captureStatusBar() {
|
|
235
|
-
return this._config.captureStatusBar;
|
|
236
|
-
}
|
|
237
|
-
set captureStatusBar(captureStatusBar) {
|
|
238
|
-
this._config.captureStatusBar = captureStatusBar;
|
|
239
|
-
}
|
|
240
|
-
getCaptureStatusBar() {
|
|
241
|
-
return this.disableNMLUrlCache;
|
|
242
|
-
}
|
|
243
|
-
setCaptureStatusBar(captureStatusBar) {
|
|
244
|
-
this.captureStatusBar = captureStatusBar;
|
|
245
|
-
return this;
|
|
246
|
-
}
|
|
247
|
-
get compareWithParentBranch() {
|
|
248
|
-
return this._config.compareWithParentBranch;
|
|
249
|
-
}
|
|
250
|
-
set compareWithParentBranch(compareWithParentBranch) {
|
|
251
|
-
utils.guard.isBoolean(compareWithParentBranch, { name: 'compareWithParentBranch' });
|
|
252
|
-
this._config.compareWithParentBranch = compareWithParentBranch;
|
|
253
|
-
}
|
|
254
|
-
getCompareWithParentBranch() {
|
|
255
|
-
return this.compareWithParentBranch;
|
|
256
|
-
}
|
|
257
|
-
setCompareWithParentBranch(compareWithParentBranch) {
|
|
258
|
-
this.compareWithParentBranch = compareWithParentBranch;
|
|
259
|
-
return this;
|
|
260
|
-
}
|
|
261
|
-
/** @undocumented */
|
|
262
|
-
get concurrentSessions() {
|
|
263
|
-
return this._config.concurrentSessions;
|
|
264
|
-
}
|
|
265
|
-
/** @undocumented */
|
|
266
|
-
set concurrentSessions(concurrentSessions) {
|
|
267
|
-
this._config.concurrentSessions = concurrentSessions;
|
|
268
|
-
}
|
|
269
|
-
/** @undocumented */
|
|
270
|
-
getConcurrentSessions() {
|
|
271
|
-
return this.concurrentSessions;
|
|
272
|
-
}
|
|
273
|
-
/** @undocumented */
|
|
274
|
-
setConcurrentSessions(concurrentSessions) {
|
|
275
|
-
this.concurrentSessions = concurrentSessions;
|
|
276
|
-
return this;
|
|
277
|
-
}
|
|
278
|
-
/** @undocumented */
|
|
279
|
-
get connectionTimeout() {
|
|
280
|
-
return this._config.connectionTimeout;
|
|
281
|
-
}
|
|
282
|
-
/** @undocumented */
|
|
283
|
-
set connectionTimeout(connectionTimeout) {
|
|
284
|
-
utils.guard.isInteger(connectionTimeout, { name: 'connectionTimeout', gte: 0 });
|
|
285
|
-
this._config.connectionTimeout = connectionTimeout;
|
|
286
|
-
}
|
|
287
|
-
/** @undocumented */
|
|
288
|
-
getConnectionTimeout() {
|
|
289
|
-
return this.connectionTimeout;
|
|
290
|
-
}
|
|
291
|
-
/** @undocumented */
|
|
292
|
-
setConnectionTimeout(connectionTimeout) {
|
|
293
|
-
this.connectionTimeout = connectionTimeout;
|
|
294
|
-
return this;
|
|
295
|
-
}
|
|
296
|
-
get cut() {
|
|
297
|
-
return this._config.cut;
|
|
298
|
-
}
|
|
299
|
-
set cut(cut) {
|
|
300
|
-
this._config.cut = cut;
|
|
301
|
-
}
|
|
302
|
-
getCut() {
|
|
303
|
-
return this._config.cut;
|
|
304
|
-
}
|
|
305
|
-
setCut(cut) {
|
|
306
|
-
this.cut = cut;
|
|
307
|
-
return this;
|
|
308
|
-
}
|
|
309
|
-
/** @undocumented */
|
|
310
|
-
get debugScreenshots() {
|
|
311
|
-
return this._config.debugScreenshots;
|
|
312
|
-
}
|
|
313
|
-
/** @undocumented */
|
|
314
|
-
set debugScreenshots(debugScreenshots) {
|
|
315
|
-
this._config.debugScreenshots = debugScreenshots;
|
|
316
|
-
}
|
|
317
|
-
/** @undocumented */
|
|
318
|
-
getSaveDebugScreenshots() {
|
|
319
|
-
var _a, _b;
|
|
320
|
-
return (_b = (_a = this.debugScreenshots) === null || _a === void 0 ? void 0 : _a.save) !== null && _b !== void 0 ? _b : false;
|
|
321
|
-
}
|
|
322
|
-
/** @undocumented */
|
|
323
|
-
setSaveDebugScreenshots(save) {
|
|
324
|
-
this.debugScreenshots = { ...this.debugScreenshots, save };
|
|
325
|
-
return this;
|
|
326
|
-
}
|
|
327
|
-
/** @undocumented */
|
|
328
|
-
getDebugScreenshotsPath() {
|
|
329
|
-
return this.debugScreenshots.path;
|
|
330
|
-
}
|
|
331
|
-
/** @undocumented */
|
|
332
|
-
setDebugScreenshotsPath(path) {
|
|
333
|
-
this.debugScreenshots = { ...this.debugScreenshots, path };
|
|
334
|
-
return this;
|
|
335
|
-
}
|
|
336
|
-
/** @undocumented */
|
|
337
|
-
getDebugScreenshotsPrefix() {
|
|
338
|
-
return this.debugScreenshots.prefix;
|
|
339
|
-
}
|
|
340
|
-
/** @undocumented */
|
|
341
|
-
setDebugScreenshotsPrefix(prefix) {
|
|
342
|
-
this.debugScreenshots = { ...this.debugScreenshots, prefix };
|
|
343
|
-
return this;
|
|
344
|
-
}
|
|
345
|
-
get defaultMatchSettings() {
|
|
346
|
-
return this._config.defaultMatchSettings;
|
|
347
|
-
}
|
|
348
|
-
set defaultMatchSettings(defaultMatchSettings) {
|
|
349
|
-
utils.guard.notNull(defaultMatchSettings, { name: 'defaultMatchSettings' });
|
|
350
|
-
this._config.defaultMatchSettings = defaultMatchSettings;
|
|
351
|
-
}
|
|
352
|
-
getDefaultMatchSettings() {
|
|
353
|
-
return new ImageMatchSettings_1.ImageMatchSettingsData(this.defaultMatchSettings);
|
|
354
|
-
}
|
|
355
|
-
setDefaultMatchSettings(defaultMatchSettings) {
|
|
356
|
-
this.defaultMatchSettings = defaultMatchSettings;
|
|
357
|
-
return this;
|
|
358
|
-
}
|
|
359
|
-
get deviceInfo() {
|
|
360
|
-
return this._config.deviceInfo;
|
|
361
|
-
}
|
|
362
|
-
set deviceInfo(deviceInfo) {
|
|
363
|
-
this._config.deviceInfo = deviceInfo ? deviceInfo.trim() : undefined;
|
|
364
|
-
}
|
|
365
|
-
getDeviceInfo() {
|
|
366
|
-
return this.deviceInfo;
|
|
367
|
-
}
|
|
368
|
-
setDeviceInfo(deviceInfo) {
|
|
369
|
-
this.deviceInfo = deviceInfo;
|
|
370
|
-
return this;
|
|
371
|
-
}
|
|
372
|
-
get disableBrowserFetching() {
|
|
373
|
-
return this._config.disableBrowserFetching;
|
|
374
|
-
}
|
|
375
|
-
set disableBrowserFetching(disableBrowserFetching) {
|
|
376
|
-
this._config.disableBrowserFetching = disableBrowserFetching;
|
|
377
|
-
}
|
|
378
|
-
getDisableBrowserFetching() {
|
|
379
|
-
return this.disableBrowserFetching;
|
|
380
|
-
}
|
|
381
|
-
setDisableBrowserFetching(disableBrowserFetching) {
|
|
382
|
-
this.disableBrowserFetching = disableBrowserFetching;
|
|
383
|
-
return this;
|
|
384
|
-
}
|
|
385
|
-
get disableNMLUrlCache() {
|
|
386
|
-
return this._config.disableNMLUrlCache;
|
|
387
|
-
}
|
|
388
|
-
set disableNMLUrlCache(disableNMLUrlCache) {
|
|
389
|
-
this._config.disableNMLUrlCache = disableNMLUrlCache;
|
|
390
|
-
}
|
|
391
|
-
getDisableNMLUrlCache() {
|
|
392
|
-
return this.disableNMLUrlCache;
|
|
393
|
-
}
|
|
394
|
-
setDisableNMLUrlCache(disableNMLUrlCache) {
|
|
395
|
-
this.disableNMLUrlCache = disableNMLUrlCache;
|
|
396
|
-
return this;
|
|
397
|
-
}
|
|
398
|
-
get displayName() {
|
|
399
|
-
return this._config.displayName;
|
|
400
|
-
}
|
|
401
|
-
set displayName(displayName) {
|
|
402
|
-
utils.guard.isString(displayName, { name: 'displayName', strict: false });
|
|
403
|
-
this._config.displayName = displayName;
|
|
404
|
-
}
|
|
405
|
-
getDisplayName() {
|
|
406
|
-
return this.displayName;
|
|
407
|
-
}
|
|
408
|
-
setDisplayName(displayName) {
|
|
409
|
-
this.displayName = displayName;
|
|
410
|
-
return this;
|
|
411
|
-
}
|
|
412
|
-
/** @undocumented */
|
|
413
|
-
get dontCloseBatches() {
|
|
414
|
-
return this._config.dontCloseBatches;
|
|
415
|
-
}
|
|
416
|
-
/** @undocumented */
|
|
417
|
-
set dontCloseBatches(dontCloseBatches) {
|
|
418
|
-
this._config.dontCloseBatches = dontCloseBatches;
|
|
419
|
-
}
|
|
420
|
-
/** @undocumented */
|
|
421
|
-
getDontCloseBatches() {
|
|
422
|
-
var _a;
|
|
423
|
-
return (_a = this.dontCloseBatches) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('DONT_CLOSE_BATCHES', 'boolean');
|
|
424
|
-
}
|
|
425
|
-
/** @undocumented */
|
|
426
|
-
setDontCloseBatches(dontCloseBatches) {
|
|
427
|
-
this.dontCloseBatches = dontCloseBatches;
|
|
428
|
-
return this;
|
|
429
|
-
}
|
|
430
|
-
get enablePatterns() {
|
|
431
|
-
return this.defaultMatchSettings.enablePatterns;
|
|
432
|
-
}
|
|
433
|
-
set enablePatterns(enablePatterns) {
|
|
434
|
-
if (!this.defaultMatchSettings)
|
|
435
|
-
this.defaultMatchSettings = {};
|
|
436
|
-
this.defaultMatchSettings.enablePatterns = enablePatterns;
|
|
437
|
-
}
|
|
438
|
-
getEnablePatterns() {
|
|
439
|
-
return this.defaultMatchSettings.enablePatterns;
|
|
440
|
-
}
|
|
441
|
-
setEnablePatterns(enablePatterns) {
|
|
442
|
-
this.enablePatterns = enablePatterns;
|
|
443
|
-
return this;
|
|
444
|
-
}
|
|
445
|
-
get environmentName() {
|
|
446
|
-
return this._config.environmentName;
|
|
447
|
-
}
|
|
448
|
-
set environmentName(environmentName) {
|
|
449
|
-
utils.guard.isString(environmentName, { name: 'environmentName', strict: false });
|
|
450
|
-
this._config.environmentName = environmentName ? environmentName.trim() : undefined;
|
|
451
|
-
}
|
|
452
|
-
getEnvironmentName() {
|
|
453
|
-
return this.environmentName;
|
|
454
|
-
}
|
|
455
|
-
setEnvironmentName(environmentName) {
|
|
456
|
-
this.environmentName = environmentName;
|
|
457
|
-
return this;
|
|
458
|
-
}
|
|
459
|
-
get forceFullPageScreenshot() {
|
|
460
|
-
return this._config.forceFullPageScreenshot;
|
|
461
|
-
}
|
|
462
|
-
set forceFullPageScreenshot(forceFullPageScreenshot) {
|
|
463
|
-
this._config.forceFullPageScreenshot = forceFullPageScreenshot;
|
|
464
|
-
}
|
|
465
|
-
getForceFullPageScreenshot() {
|
|
466
|
-
return this.forceFullPageScreenshot;
|
|
467
|
-
}
|
|
468
|
-
setForceFullPageScreenshot(forceFullPageScreenshot) {
|
|
469
|
-
this.forceFullPageScreenshot = forceFullPageScreenshot;
|
|
470
|
-
return this;
|
|
471
|
-
}
|
|
472
|
-
get gitMergeBaseTimestamp() {
|
|
473
|
-
return this._config.gitMergeBaseTimestamp;
|
|
474
|
-
}
|
|
475
|
-
set gitMergeBaseTimestamp(gitMergeBaseTimestamp) {
|
|
476
|
-
utils.guard.isString(gitMergeBaseTimestamp, { name: 'gitMergeBaseTimestamp' });
|
|
477
|
-
this._config.gitMergeBaseTimestamp = gitMergeBaseTimestamp;
|
|
478
|
-
}
|
|
479
|
-
getGitMergeBaseTimestamp() {
|
|
480
|
-
return this.gitMergeBaseTimestamp;
|
|
481
|
-
}
|
|
482
|
-
setGitMergeBaseTimestamp(gitMergeBaseTimestamp) {
|
|
483
|
-
this.gitMergeBaseTimestamp = gitMergeBaseTimestamp;
|
|
484
|
-
return this;
|
|
485
|
-
}
|
|
486
|
-
get latestCommitInfo() {
|
|
487
|
-
return this._config.latestCommitInfo;
|
|
488
|
-
}
|
|
489
|
-
set latestCommitInfo(latestCommitInfo) {
|
|
490
|
-
if (latestCommitInfo) {
|
|
491
|
-
utils.guard.isString(latestCommitInfo.sha, { name: 'latestCommitInfo.sha' });
|
|
492
|
-
// TODO implement utils.guard.isISODate (didn't do it to avoid releasing utils and then all packages for this small thing)
|
|
493
|
-
utils.guard.custom(latestCommitInfo.timestamp, (timestamp) => isISODate(timestamp), {
|
|
494
|
-
name: 'latestCommitInfo.timestamp',
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
this._config.latestCommitInfo = latestCommitInfo;
|
|
498
|
-
}
|
|
499
|
-
getLatestCommitInfo() {
|
|
500
|
-
return this.latestCommitInfo;
|
|
501
|
-
}
|
|
502
|
-
setLatestCommitInfo(latestCommitInfo) {
|
|
503
|
-
this.latestCommitInfo = latestCommitInfo;
|
|
504
|
-
return this;
|
|
505
|
-
}
|
|
506
|
-
get hideCaret() {
|
|
507
|
-
return this._config.hideCaret;
|
|
508
|
-
}
|
|
509
|
-
set hideCaret(hideCaret) {
|
|
510
|
-
this._config.hideCaret = hideCaret;
|
|
511
|
-
}
|
|
512
|
-
getHideCaret() {
|
|
513
|
-
return this.hideCaret;
|
|
514
|
-
}
|
|
515
|
-
setHideCaret(hideCaret) {
|
|
516
|
-
this.hideCaret = hideCaret;
|
|
517
|
-
return this;
|
|
518
|
-
}
|
|
519
|
-
get hideScrollbars() {
|
|
520
|
-
return this._config.hideScrollbars;
|
|
521
|
-
}
|
|
522
|
-
set hideScrollbars(hideScrollbars) {
|
|
523
|
-
this._config.hideScrollbars = hideScrollbars;
|
|
524
|
-
}
|
|
525
|
-
getHideScrollbars() {
|
|
526
|
-
return this.hideScrollbars;
|
|
527
|
-
}
|
|
528
|
-
setHideScrollbars(hideScrollbars) {
|
|
529
|
-
this.hideScrollbars = hideScrollbars;
|
|
530
|
-
return this;
|
|
531
|
-
}
|
|
532
|
-
get hostApp() {
|
|
533
|
-
return this._config.hostApp;
|
|
534
|
-
}
|
|
535
|
-
set hostApp(hostApp) {
|
|
536
|
-
this._config.hostApp = hostApp ? hostApp.trim() : undefined;
|
|
537
|
-
}
|
|
538
|
-
getHostApp() {
|
|
539
|
-
return this.hostApp;
|
|
540
|
-
}
|
|
541
|
-
setHostApp(hostApp) {
|
|
542
|
-
this.hostApp = hostApp;
|
|
543
|
-
return this;
|
|
544
|
-
}
|
|
545
|
-
get hostAppInfo() {
|
|
546
|
-
return this._config.hostAppInfo;
|
|
547
|
-
}
|
|
548
|
-
set hostAppInfo(hostAppInfo) {
|
|
549
|
-
this._config.hostAppInfo = hostAppInfo ? hostAppInfo.trim() : undefined;
|
|
550
|
-
}
|
|
551
|
-
getHostAppInfo() {
|
|
552
|
-
return this.hostAppInfo;
|
|
553
|
-
}
|
|
554
|
-
setHostAppInfo(hostAppInfo) {
|
|
555
|
-
this.hostAppInfo = hostAppInfo;
|
|
556
|
-
return this;
|
|
557
|
-
}
|
|
558
|
-
get hostOS() {
|
|
559
|
-
return this._config.hostOS;
|
|
560
|
-
}
|
|
561
|
-
set hostOS(hostOS) {
|
|
562
|
-
this._config.hostOS = hostOS ? hostOS.trim() : undefined;
|
|
563
|
-
}
|
|
564
|
-
getHostOS() {
|
|
565
|
-
return this.hostOS;
|
|
566
|
-
}
|
|
567
|
-
setHostOS(hostOS) {
|
|
568
|
-
this.hostOS = hostOS;
|
|
569
|
-
return this;
|
|
570
|
-
}
|
|
571
|
-
get hostOSInfo() {
|
|
572
|
-
return this._config.hostOSInfo;
|
|
573
|
-
}
|
|
574
|
-
set hostOSInfo(hostOSInfo) {
|
|
575
|
-
this._config.hostOSInfo = hostOSInfo ? hostOSInfo.trim() : undefined;
|
|
576
|
-
}
|
|
577
|
-
getHostOSInfo() {
|
|
578
|
-
return this.hostOSInfo;
|
|
579
|
-
}
|
|
580
|
-
setHostOSInfo(hostOSInfo) {
|
|
581
|
-
this.hostOSInfo = hostOSInfo;
|
|
582
|
-
return this;
|
|
583
|
-
}
|
|
584
|
-
get ignoreBaseline() {
|
|
585
|
-
return this._config.ignoreBaseline;
|
|
586
|
-
}
|
|
587
|
-
set ignoreBaseline(ignoreBaseline) {
|
|
588
|
-
utils.guard.isBoolean(ignoreBaseline, { name: 'ignoreBaseline' });
|
|
589
|
-
this._config.ignoreBaseline = ignoreBaseline;
|
|
590
|
-
}
|
|
591
|
-
getIgnoreBaseline() {
|
|
592
|
-
return this.ignoreBaseline;
|
|
593
|
-
}
|
|
594
|
-
setIgnoreBaseline(ignoreBaseline) {
|
|
595
|
-
this.ignoreBaseline = ignoreBaseline;
|
|
596
|
-
return this;
|
|
597
|
-
}
|
|
598
|
-
get ignoreCaret() {
|
|
599
|
-
return this.defaultMatchSettings.ignoreCaret;
|
|
600
|
-
}
|
|
601
|
-
set ignoreCaret(ignoreCaret) {
|
|
602
|
-
if (!this.defaultMatchSettings)
|
|
603
|
-
this.defaultMatchSettings = {};
|
|
604
|
-
this.defaultMatchSettings.ignoreCaret = ignoreCaret;
|
|
605
|
-
}
|
|
606
|
-
getIgnoreCaret() {
|
|
607
|
-
return this.defaultMatchSettings.ignoreCaret;
|
|
608
|
-
}
|
|
609
|
-
setIgnoreCaret(ignoreCaret) {
|
|
610
|
-
this.ignoreCaret = ignoreCaret;
|
|
611
|
-
return this;
|
|
612
|
-
}
|
|
613
|
-
get ignoreDisplacements() {
|
|
614
|
-
return this.defaultMatchSettings.ignoreDisplacements;
|
|
615
|
-
}
|
|
616
|
-
set ignoreDisplacements(ignoreDisplacements) {
|
|
617
|
-
if (!this.defaultMatchSettings)
|
|
618
|
-
this.defaultMatchSettings = {};
|
|
619
|
-
this.defaultMatchSettings.ignoreDisplacements = ignoreDisplacements;
|
|
620
|
-
}
|
|
621
|
-
getIgnoreDisplacements() {
|
|
622
|
-
return this.ignoreDisplacements;
|
|
623
|
-
}
|
|
624
|
-
setIgnoreDisplacements(ignoreDisplacements) {
|
|
625
|
-
this.ignoreDisplacements = ignoreDisplacements;
|
|
626
|
-
return this;
|
|
627
|
-
}
|
|
628
|
-
get ignoreGitMergeBase() {
|
|
629
|
-
return this._config.ignoreGitMergeBase;
|
|
630
|
-
}
|
|
631
|
-
set ignoreGitMergeBase(ignoreGitMergeBase) {
|
|
632
|
-
utils.guard.isBoolean(ignoreGitMergeBase, { name: 'ignoreGitMergeBase' });
|
|
633
|
-
this._config.ignoreGitMergeBase = ignoreGitMergeBase;
|
|
634
|
-
}
|
|
635
|
-
getIgnoreGitMergeBase() {
|
|
636
|
-
return this.ignoreGitMergeBase;
|
|
637
|
-
}
|
|
638
|
-
setIgnoreGitMergeBase(ignoreGitMergeBase) {
|
|
639
|
-
this.ignoreGitMergeBase = ignoreGitMergeBase;
|
|
640
|
-
return this;
|
|
641
|
-
}
|
|
642
|
-
get isDisabled() {
|
|
643
|
-
return this._config.isDisabled;
|
|
644
|
-
}
|
|
645
|
-
set isDisabled(isDisabled) {
|
|
646
|
-
utils.guard.isBoolean(isDisabled, { name: 'isDisabled', strict: false });
|
|
647
|
-
this._config.isDisabled = isDisabled;
|
|
648
|
-
}
|
|
649
|
-
getIsDisabled() {
|
|
650
|
-
return this.isDisabled;
|
|
651
|
-
}
|
|
652
|
-
setIsDisabled(isDisabled) {
|
|
653
|
-
this.isDisabled = isDisabled;
|
|
654
|
-
return this;
|
|
655
|
-
}
|
|
656
|
-
get layoutBreakpoints() {
|
|
657
|
-
return this._config.layoutBreakpoints;
|
|
658
|
-
}
|
|
659
|
-
set layoutBreakpoints(layoutBreakpoints) {
|
|
660
|
-
utils.guard.notNull(layoutBreakpoints, { name: 'layoutBreakpoints' });
|
|
661
|
-
if (utils.types.isArray(layoutBreakpoints)) {
|
|
662
|
-
this._config.layoutBreakpoints = layoutBreakpoints.length > 0 ? layoutBreakpoints : false;
|
|
663
|
-
}
|
|
664
|
-
else {
|
|
665
|
-
this._config.layoutBreakpoints = layoutBreakpoints;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
getLayoutBreakpoints() {
|
|
669
|
-
return this.layoutBreakpoints;
|
|
670
|
-
}
|
|
671
|
-
setLayoutBreakpoints(layoutBreakpoints) {
|
|
672
|
-
this.layoutBreakpoints = layoutBreakpoints;
|
|
673
|
-
return this;
|
|
674
|
-
}
|
|
675
|
-
get matchLevel() {
|
|
676
|
-
return this.defaultMatchSettings.matchLevel;
|
|
677
|
-
}
|
|
678
|
-
set matchLevel(matchLevel) {
|
|
679
|
-
utils.guard.isEnumValue(matchLevel, MatchLevel_1.MatchLevelEnum, { name: 'matchLevel' });
|
|
680
|
-
if (!this.defaultMatchSettings)
|
|
681
|
-
this.defaultMatchSettings = {};
|
|
682
|
-
this.defaultMatchSettings.matchLevel = matchLevel;
|
|
683
|
-
}
|
|
684
|
-
getMatchLevel() {
|
|
685
|
-
return this.matchLevel;
|
|
686
|
-
}
|
|
687
|
-
setMatchLevel(matchLevel) {
|
|
688
|
-
this.matchLevel = matchLevel;
|
|
689
|
-
return this;
|
|
690
|
-
}
|
|
691
|
-
get matchTimeout() {
|
|
692
|
-
return this._config.matchTimeout;
|
|
693
|
-
}
|
|
694
|
-
set matchTimeout(matchTimeout) {
|
|
695
|
-
utils.guard.isInteger(matchTimeout, { name: 'matchTimeout' });
|
|
696
|
-
this._config.matchTimeout = matchTimeout;
|
|
697
|
-
}
|
|
698
|
-
getMatchTimeout() {
|
|
699
|
-
return this.matchTimeout;
|
|
700
|
-
}
|
|
701
|
-
setMatchTimeout(matchTimeout) {
|
|
702
|
-
this.matchTimeout = matchTimeout;
|
|
703
|
-
return this;
|
|
704
|
-
}
|
|
705
|
-
get mobileOptions() {
|
|
706
|
-
return this._config.mobileOptions;
|
|
707
|
-
}
|
|
708
|
-
set mobileOptions(mobileOptions) {
|
|
709
|
-
this._config.mobileOptions = mobileOptions;
|
|
710
|
-
}
|
|
711
|
-
getMobileOptions() {
|
|
712
|
-
return this.mobileOptions;
|
|
713
|
-
}
|
|
714
|
-
setMobileOptions(mobileOptions) {
|
|
715
|
-
this.mobileOptions = mobileOptions;
|
|
716
|
-
return this;
|
|
717
|
-
}
|
|
718
|
-
get parentBranchName() {
|
|
719
|
-
return this._config.parentBranchName;
|
|
720
|
-
}
|
|
721
|
-
set parentBranchName(parentBranchName) {
|
|
722
|
-
utils.guard.isString(parentBranchName, { name: 'parentBranchName' });
|
|
723
|
-
this._config.parentBranchName = parentBranchName;
|
|
724
|
-
}
|
|
725
|
-
getParentBranchName() {
|
|
726
|
-
var _a;
|
|
727
|
-
return (_a = this.parentBranchName) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('PARENT_BRANCH');
|
|
728
|
-
}
|
|
729
|
-
setParentBranchName(parentBranchName) {
|
|
730
|
-
this.parentBranchName = parentBranchName;
|
|
731
|
-
return this;
|
|
732
|
-
}
|
|
733
|
-
get properties() {
|
|
734
|
-
return this._config.properties;
|
|
735
|
-
}
|
|
736
|
-
set properties(properties) {
|
|
737
|
-
utils.guard.isArray(properties, { name: 'properties' });
|
|
738
|
-
this._config.properties = properties;
|
|
739
|
-
}
|
|
740
|
-
getProperties() {
|
|
741
|
-
var _a, _b;
|
|
742
|
-
return (_b = (_a = this.properties) === null || _a === void 0 ? void 0 : _a.map(property => new PropertyData_1.PropertyDataData(property))) !== null && _b !== void 0 ? _b : [];
|
|
743
|
-
}
|
|
744
|
-
setProperties(properties) {
|
|
745
|
-
this.properties = properties;
|
|
746
|
-
return this;
|
|
747
|
-
}
|
|
748
|
-
addProperty(propOrName, value) {
|
|
749
|
-
const property = utils.types.isString(propOrName) ? { name: propOrName, value: value } : propOrName;
|
|
750
|
-
if (!this.properties)
|
|
751
|
-
this.properties = [];
|
|
752
|
-
this.properties.push(property);
|
|
753
|
-
return this;
|
|
754
|
-
}
|
|
755
|
-
clearProperties() {
|
|
756
|
-
this.properties = [];
|
|
757
|
-
return this;
|
|
758
|
-
}
|
|
759
|
-
get proxy() {
|
|
760
|
-
return this._config.proxy;
|
|
761
|
-
}
|
|
762
|
-
set proxy(proxy) {
|
|
763
|
-
this._config.proxy = proxy;
|
|
764
|
-
}
|
|
765
|
-
getProxy() {
|
|
766
|
-
return new ProxySettings_1.ProxySettingsData(this.proxy);
|
|
767
|
-
}
|
|
768
|
-
setProxy(proxyOrUrlOrIsEnabled, username, password) {
|
|
769
|
-
if (proxyOrUrlOrIsEnabled === false) {
|
|
770
|
-
this.proxy = undefined;
|
|
771
|
-
}
|
|
772
|
-
else if (utils.types.isString(proxyOrUrlOrIsEnabled)) {
|
|
773
|
-
this.proxy = { url: proxyOrUrlOrIsEnabled, username, password };
|
|
774
|
-
}
|
|
775
|
-
else {
|
|
776
|
-
this.proxy = proxyOrUrlOrIsEnabled;
|
|
777
|
-
}
|
|
778
|
-
return this;
|
|
779
|
-
}
|
|
780
|
-
/** @undocumented */
|
|
781
|
-
get removeSession() {
|
|
782
|
-
return this._config.removeSession;
|
|
783
|
-
}
|
|
784
|
-
/** @undocumented */
|
|
785
|
-
set removeSession(removeSession) {
|
|
786
|
-
utils.guard.isBoolean(removeSession, { name: 'removeSession' });
|
|
787
|
-
this._config.removeSession = removeSession;
|
|
788
|
-
}
|
|
789
|
-
/** @undocumented */
|
|
790
|
-
getRemoveSession() {
|
|
791
|
-
return this.removeSession;
|
|
792
|
-
}
|
|
793
|
-
/** @undocumented */
|
|
794
|
-
setRemoveSession(removeSession) {
|
|
795
|
-
this.removeSession = removeSession;
|
|
796
|
-
return this;
|
|
797
|
-
}
|
|
798
|
-
get rotation() {
|
|
799
|
-
return this._config.rotation;
|
|
800
|
-
}
|
|
801
|
-
set rotation(rotation) {
|
|
802
|
-
this._config.rotation = rotation;
|
|
803
|
-
}
|
|
804
|
-
getRotation() {
|
|
805
|
-
return new ImageRotation_1.ImageRotationData(this.rotation);
|
|
806
|
-
}
|
|
807
|
-
setRotation(rotation) {
|
|
808
|
-
this.rotation = utils.types.isNumber(rotation) ? rotation : rotation.rotation;
|
|
809
|
-
return this;
|
|
810
|
-
}
|
|
811
|
-
get saveDiffs() {
|
|
812
|
-
return this._config.saveDiffs;
|
|
813
|
-
}
|
|
814
|
-
set saveDiffs(saveDiffs) {
|
|
815
|
-
utils.guard.isBoolean(saveDiffs, { name: 'saveDiffs' });
|
|
816
|
-
this._config.saveDiffs = saveDiffs;
|
|
817
|
-
}
|
|
818
|
-
getSaveDiffs() {
|
|
819
|
-
return this.saveDiffs;
|
|
820
|
-
}
|
|
821
|
-
setSaveDiffs(saveDiffs) {
|
|
822
|
-
this.saveDiffs = saveDiffs;
|
|
823
|
-
return this;
|
|
824
|
-
}
|
|
825
|
-
get saveFailedTests() {
|
|
826
|
-
return this._config.saveFailedTests;
|
|
827
|
-
}
|
|
828
|
-
set saveFailedTests(saveFailedTests) {
|
|
829
|
-
utils.guard.isBoolean(saveFailedTests, { name: 'saveFailedTests' });
|
|
830
|
-
this._config.saveFailedTests = saveFailedTests;
|
|
831
|
-
}
|
|
832
|
-
getSaveFailedTests() {
|
|
833
|
-
return this.saveFailedTests;
|
|
834
|
-
}
|
|
835
|
-
setSaveFailedTests(saveFailedTests) {
|
|
836
|
-
this.saveFailedTests = saveFailedTests;
|
|
837
|
-
return this;
|
|
838
|
-
}
|
|
839
|
-
get saveNewTests() {
|
|
840
|
-
return this._config.saveNewTests;
|
|
841
|
-
}
|
|
842
|
-
set saveNewTests(saveNewTests) {
|
|
843
|
-
utils.guard.isBoolean(saveNewTests, { name: 'saveNewTests' });
|
|
844
|
-
this._config.saveNewTests = saveNewTests;
|
|
845
|
-
}
|
|
846
|
-
getSaveNewTests() {
|
|
847
|
-
return this.saveNewTests;
|
|
848
|
-
}
|
|
849
|
-
setSaveNewTests(saveNewTests) {
|
|
850
|
-
this.saveNewTests = saveNewTests;
|
|
851
|
-
return this;
|
|
852
|
-
}
|
|
853
|
-
get scaleRatio() {
|
|
854
|
-
return this._config.scaleRatio;
|
|
855
|
-
}
|
|
856
|
-
set scaleRatio(scaleRatio) {
|
|
857
|
-
utils.guard.isNumber(scaleRatio, { name: 'scaleRatio', strict: false });
|
|
858
|
-
this._config.scaleRatio = scaleRatio;
|
|
859
|
-
}
|
|
860
|
-
getScaleRatio() {
|
|
861
|
-
return this.scaleRatio;
|
|
862
|
-
}
|
|
863
|
-
setScaleRatio(scaleRatio) {
|
|
864
|
-
this.scaleRatio = scaleRatio;
|
|
865
|
-
return this;
|
|
866
|
-
}
|
|
867
|
-
get scrollRootElement() {
|
|
868
|
-
return this._config.scrollRootElement;
|
|
869
|
-
}
|
|
870
|
-
set scrollRootElement(scrollRootElement) {
|
|
871
|
-
utils.guard.custom(scrollRootElement, value => this._isElementReference(value), {
|
|
872
|
-
name: 'scrollRootElement',
|
|
873
|
-
message: 'must be element or selector',
|
|
874
|
-
strict: false,
|
|
875
|
-
});
|
|
876
|
-
this._config.scrollRootElement = scrollRootElement;
|
|
877
|
-
}
|
|
878
|
-
getScrollRootElement() {
|
|
879
|
-
return this.scrollRootElement;
|
|
880
|
-
}
|
|
881
|
-
setScrollRootElement(scrollRootElement) {
|
|
882
|
-
this.scrollRootElement = scrollRootElement;
|
|
883
|
-
return this;
|
|
884
|
-
}
|
|
885
|
-
get sendDom() {
|
|
886
|
-
return this._config.sendDom;
|
|
887
|
-
}
|
|
888
|
-
set sendDom(sendDom) {
|
|
889
|
-
utils.guard.isBoolean(sendDom, { name: 'sendDom' });
|
|
890
|
-
this._config.sendDom = sendDom;
|
|
891
|
-
}
|
|
892
|
-
getSendDom() {
|
|
893
|
-
return this.sendDom;
|
|
894
|
-
}
|
|
895
|
-
setSendDom(sendDom) {
|
|
896
|
-
this.sendDom = sendDom;
|
|
897
|
-
return this;
|
|
898
|
-
}
|
|
899
|
-
get serverUrl() {
|
|
900
|
-
return this._config.serverUrl;
|
|
901
|
-
}
|
|
902
|
-
set serverUrl(serverUrl) {
|
|
903
|
-
utils.guard.isString(serverUrl, { name: 'serverUrl', strict: false });
|
|
904
|
-
this._config.serverUrl = serverUrl;
|
|
905
|
-
}
|
|
906
|
-
getServerUrl() {
|
|
907
|
-
var _a;
|
|
908
|
-
return (_a = this.serverUrl) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('SERVER_URL');
|
|
909
|
-
}
|
|
910
|
-
setServerUrl(serverUrl) {
|
|
911
|
-
this.serverUrl = serverUrl;
|
|
912
|
-
return this;
|
|
913
|
-
}
|
|
914
|
-
get sessionType() {
|
|
915
|
-
return this._config.sessionType;
|
|
916
|
-
}
|
|
917
|
-
set sessionType(sessionType) {
|
|
918
|
-
this._config.sessionType = sessionType;
|
|
919
|
-
}
|
|
920
|
-
getSessionType() {
|
|
921
|
-
return this.sessionType;
|
|
922
|
-
}
|
|
923
|
-
setSessionType(sessionType) {
|
|
924
|
-
this.sessionType = sessionType;
|
|
925
|
-
return this;
|
|
926
|
-
}
|
|
927
|
-
get stitchMode() {
|
|
928
|
-
return this._config.stitchMode;
|
|
929
|
-
}
|
|
930
|
-
set stitchMode(stitchMode) {
|
|
931
|
-
utils.guard.isEnumValue(stitchMode, StitchMode_1.StitchModeEnum, { name: 'stitchMode' });
|
|
932
|
-
this._config.stitchMode = stitchMode;
|
|
933
|
-
}
|
|
934
|
-
getStitchMode() {
|
|
935
|
-
return this.stitchMode;
|
|
936
|
-
}
|
|
937
|
-
setStitchMode(stitchMode) {
|
|
938
|
-
this.stitchMode = stitchMode;
|
|
939
|
-
return this;
|
|
940
|
-
}
|
|
941
|
-
get stitchOverlap() {
|
|
942
|
-
return this._config.stitchOverlap;
|
|
943
|
-
}
|
|
944
|
-
set stitchOverlap(stitchOverlap) {
|
|
945
|
-
utils.guard.isInteger(stitchOverlap, { name: 'stitchOverlap', strict: false });
|
|
946
|
-
this._config.stitchOverlap = stitchOverlap;
|
|
947
|
-
}
|
|
948
|
-
getStitchOverlap() {
|
|
949
|
-
return this.stitchOverlap;
|
|
950
|
-
}
|
|
951
|
-
setStitchOverlap(stitchOverlap) {
|
|
952
|
-
this.stitchOverlap = stitchOverlap;
|
|
953
|
-
return this;
|
|
954
|
-
}
|
|
955
|
-
get testName() {
|
|
956
|
-
return this._config.testName;
|
|
957
|
-
}
|
|
958
|
-
set testName(testName) {
|
|
959
|
-
utils.guard.isString(testName, { name: 'testName', strict: false });
|
|
960
|
-
this._config.testName = testName;
|
|
961
|
-
}
|
|
962
|
-
getTestName() {
|
|
963
|
-
return this.testName;
|
|
964
|
-
}
|
|
965
|
-
setTestName(testName) {
|
|
966
|
-
this.testName = testName;
|
|
967
|
-
return this;
|
|
968
|
-
}
|
|
969
|
-
get useDom() {
|
|
970
|
-
return this.defaultMatchSettings.useDom;
|
|
971
|
-
}
|
|
972
|
-
set useDom(useDom) {
|
|
973
|
-
if (!this.defaultMatchSettings)
|
|
974
|
-
this.defaultMatchSettings = {};
|
|
975
|
-
this.defaultMatchSettings.useDom = useDom;
|
|
976
|
-
}
|
|
977
|
-
getUseDom() {
|
|
978
|
-
return this.useDom;
|
|
979
|
-
}
|
|
980
|
-
setUseDom(useDom) {
|
|
981
|
-
this.useDom = useDom;
|
|
982
|
-
return this;
|
|
983
|
-
}
|
|
984
|
-
get viewportSize() {
|
|
985
|
-
return this._config.viewportSize;
|
|
986
|
-
}
|
|
987
|
-
set viewportSize(viewportSize) {
|
|
988
|
-
this._config.viewportSize = viewportSize;
|
|
989
|
-
}
|
|
990
|
-
getViewportSize() {
|
|
991
|
-
return this.viewportSize && new RectangleSize_1.RectangleSizeData(this.viewportSize); // this is not a copy constructor, the RectangleSizeData saves the reference
|
|
992
|
-
}
|
|
993
|
-
setViewportSize(viewportSize) {
|
|
994
|
-
this.viewportSize = viewportSize;
|
|
995
|
-
return this;
|
|
996
|
-
}
|
|
997
|
-
get visualGridOptions() {
|
|
998
|
-
return this._config.visualGridOptions;
|
|
999
|
-
}
|
|
1000
|
-
set visualGridOptions(visualGridOptions) {
|
|
1001
|
-
this._config.visualGridOptions = visualGridOptions;
|
|
1002
|
-
}
|
|
1003
|
-
getVisualGridOptions() {
|
|
1004
|
-
return this.visualGridOptions;
|
|
1005
|
-
}
|
|
1006
|
-
setVisualGridOptions(visualGridOptions) {
|
|
1007
|
-
this.visualGridOptions = visualGridOptions;
|
|
1008
|
-
return this;
|
|
1009
|
-
}
|
|
1010
|
-
setVisualGridOption(key, value) {
|
|
1011
|
-
if (!this.visualGridOptions)
|
|
1012
|
-
this.visualGridOptions = {};
|
|
1013
|
-
this.visualGridOptions[key] = value;
|
|
1014
|
-
return this;
|
|
1015
|
-
}
|
|
1016
|
-
get waitBeforeCapture() {
|
|
1017
|
-
return this._config.waitBeforeCapture;
|
|
1018
|
-
}
|
|
1019
|
-
set waitBeforeCapture(waitBeforeCapture) {
|
|
1020
|
-
if (utils.types.isNumber(waitBeforeCapture)) {
|
|
1021
|
-
utils.guard.isInteger(waitBeforeCapture, { name: 'waitBeforeCapture', gt: 0 });
|
|
1022
|
-
}
|
|
1023
|
-
else {
|
|
1024
|
-
utils.guard.isFunction(waitBeforeCapture, { name: 'waitBeforeCapture' });
|
|
1025
|
-
}
|
|
1026
|
-
this._config.waitBeforeCapture = waitBeforeCapture;
|
|
1027
|
-
}
|
|
1028
|
-
getWaitBeforeCapture() {
|
|
1029
|
-
return this.waitBeforeCapture;
|
|
1030
|
-
}
|
|
1031
|
-
setWaitBeforeCapture(waitBeforeCapture) {
|
|
1032
|
-
this.waitBeforeCapture = waitBeforeCapture;
|
|
1033
|
-
return this;
|
|
1034
|
-
}
|
|
1035
|
-
get waitBeforeScreenshots() {
|
|
1036
|
-
return this._config.waitBeforeScreenshots;
|
|
1037
|
-
}
|
|
1038
|
-
set waitBeforeScreenshots(waitBeforeScreenshots) {
|
|
1039
|
-
utils.guard.isInteger(waitBeforeScreenshots, { name: 'waitBeforeScreenshots', gt: 0 });
|
|
1040
|
-
this._config.waitBeforeScreenshots = waitBeforeScreenshots;
|
|
1041
|
-
}
|
|
1042
|
-
getWaitBeforeScreenshots() {
|
|
1043
|
-
return this.waitBeforeScreenshots;
|
|
1044
|
-
}
|
|
1045
|
-
setWaitBeforeScreenshots(waitBeforeScreenshots) {
|
|
1046
|
-
this.waitBeforeScreenshots = waitBeforeScreenshots;
|
|
1047
|
-
return this;
|
|
1048
|
-
}
|
|
1049
|
-
get fully() {
|
|
1050
|
-
return this._config.fully;
|
|
1051
|
-
}
|
|
1052
|
-
set fully(fully) {
|
|
1053
|
-
utils.guard.isBoolean(fully, { name: 'fully' });
|
|
1054
|
-
this._config.fully = fully;
|
|
1055
|
-
}
|
|
1056
|
-
getFully() {
|
|
1057
|
-
return this.fully;
|
|
1058
|
-
}
|
|
1059
|
-
setFully(fully) {
|
|
1060
|
-
this.fully = fully;
|
|
1061
|
-
return this;
|
|
1062
|
-
}
|
|
1063
|
-
/** @internal */
|
|
1064
|
-
toObject() {
|
|
1065
|
-
return this._config;
|
|
1066
|
-
}
|
|
1067
|
-
/** @internal */
|
|
1068
|
-
toJSON() {
|
|
1069
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1070
|
-
return utils.general.toJSON({
|
|
1071
|
-
open: utils.general.removeUndefinedProps({
|
|
1072
|
-
eyesServerUrl: this.serverUrl,
|
|
1073
|
-
apiKey: this.apiKey,
|
|
1074
|
-
agentId: this.agentId,
|
|
1075
|
-
proxy: this.proxy,
|
|
1076
|
-
connectionTimeout: this.connectionTimeout,
|
|
1077
|
-
removeSession: this.removeSession,
|
|
1078
|
-
appName: this.appName,
|
|
1079
|
-
testName: this.testName,
|
|
1080
|
-
displayName: this.displayName,
|
|
1081
|
-
sessionType: this.sessionType,
|
|
1082
|
-
properties: this.properties,
|
|
1083
|
-
batch: this.batch,
|
|
1084
|
-
baselineEnvName: this.baselineEnvName,
|
|
1085
|
-
environmentName: this.environmentName,
|
|
1086
|
-
environment: utils.general.removeUndefinedProps({
|
|
1087
|
-
hostingApp: this.hostApp,
|
|
1088
|
-
displayHostingApp: this.hostAppInfo,
|
|
1089
|
-
os: this.hostOS,
|
|
1090
|
-
displayOs: this.hostOSInfo,
|
|
1091
|
-
deviceName: this.deviceInfo,
|
|
1092
|
-
viewportSize: this.viewportSize && {
|
|
1093
|
-
width: this.viewportSize.width,
|
|
1094
|
-
height: this.viewportSize.height,
|
|
1095
|
-
},
|
|
1096
|
-
}),
|
|
1097
|
-
branchName: this.branchName,
|
|
1098
|
-
parentBranchName: this.parentBranchName,
|
|
1099
|
-
baselineBranchName: this.baselineBranchName,
|
|
1100
|
-
compareWithParentBranch: this.compareWithParentBranch,
|
|
1101
|
-
ignoreBaseline: this.ignoreBaseline,
|
|
1102
|
-
gitBranchingTimestamp: this.gitMergeBaseTimestamp,
|
|
1103
|
-
ignoreGitBranching: this.ignoreGitMergeBase,
|
|
1104
|
-
latestCommitInfo: this.latestCommitInfo,
|
|
1105
|
-
saveDiffs: this.saveDiffs,
|
|
1106
|
-
keepBatchOpen: this.dontCloseBatches,
|
|
1107
|
-
disableBrokerUrlCache: this.disableNMLUrlCache,
|
|
1108
|
-
}),
|
|
1109
|
-
screenshot: utils.general.removeUndefinedProps({
|
|
1110
|
-
fully: (_a = this.fully) !== null && _a !== void 0 ? _a : this.forceFullPageScreenshot,
|
|
1111
|
-
scrollRootElement: this.scrollRootElement,
|
|
1112
|
-
stitchMode: this.stitchMode,
|
|
1113
|
-
hideScrollbars: this.hideScrollbars,
|
|
1114
|
-
hideCaret: this.hideCaret,
|
|
1115
|
-
overlap: !utils.types.isNull(this.stitchOverlap) ? { bottom: this.stitchOverlap } : undefined,
|
|
1116
|
-
waitBetweenStitches: this.waitBeforeScreenshots,
|
|
1117
|
-
waitBeforeCapture: this.waitBeforeCapture,
|
|
1118
|
-
normalization: utils.general.removeUndefinedProps({
|
|
1119
|
-
cut: this.cut,
|
|
1120
|
-
rotation: this.rotation,
|
|
1121
|
-
scaleRatio: this.scaleRatio,
|
|
1122
|
-
}),
|
|
1123
|
-
debugImages: ((_b = this.debugScreenshots) === null || _b === void 0 ? void 0 : _b.save) && utils.types.has(this.debugScreenshots, 'path')
|
|
1124
|
-
? this.debugScreenshots
|
|
1125
|
-
: undefined,
|
|
1126
|
-
captureStatusBar: this.captureStatusBar,
|
|
1127
|
-
mobileOptions: this.mobileOptions,
|
|
1128
|
-
}),
|
|
1129
|
-
check: utils.general.removeUndefinedProps({
|
|
1130
|
-
environments: (_c = this.browsersInfo) === null || _c === void 0 ? void 0 : _c.map(browserInfo => {
|
|
1131
|
-
if (utils.types.has(browserInfo, 'iosDeviceInfo') &&
|
|
1132
|
-
utils.types.has(browserInfo.iosDeviceInfo, 'iosVersion')) {
|
|
1133
|
-
const { iosVersion, ...iosDeviceInfo } = browserInfo.iosDeviceInfo;
|
|
1134
|
-
return { iosDeviceInfo: { ...iosDeviceInfo, version: iosVersion } };
|
|
1135
|
-
}
|
|
1136
|
-
return browserInfo;
|
|
1137
|
-
}),
|
|
1138
|
-
ufgOptions: this.visualGridOptions,
|
|
1139
|
-
layoutBreakpoints: utils.types.isDefined(this.layoutBreakpoints)
|
|
1140
|
-
? utils.types.has(this.layoutBreakpoints, 'breakpoints')
|
|
1141
|
-
? this.layoutBreakpoints
|
|
1142
|
-
: { breakpoints: (_d = this.layoutBreakpoints) !== null && _d !== void 0 ? _d : false }
|
|
1143
|
-
: undefined,
|
|
1144
|
-
disableBrowserFetching: this.disableBrowserFetching,
|
|
1145
|
-
autProxy: this.autProxy,
|
|
1146
|
-
sendDom: this.sendDom,
|
|
1147
|
-
retryTimeout: this.matchTimeout,
|
|
1148
|
-
matchLevel: (_e = this.defaultMatchSettings) === null || _e === void 0 ? void 0 : _e.matchLevel,
|
|
1149
|
-
ignoreCaret: (_f = this.defaultMatchSettings) === null || _f === void 0 ? void 0 : _f.ignoreCaret,
|
|
1150
|
-
ignoreDisplacements: (_g = this.defaultMatchSettings) === null || _g === void 0 ? void 0 : _g.ignoreDisplacements,
|
|
1151
|
-
enablePatterns: (_h = this.defaultMatchSettings) === null || _h === void 0 ? void 0 : _h.enablePatterns,
|
|
1152
|
-
accessibilitySettings: ((_j = this.defaultMatchSettings) === null || _j === void 0 ? void 0 : _j.accessibilitySettings) && {
|
|
1153
|
-
level: this.defaultMatchSettings.accessibilitySettings.level,
|
|
1154
|
-
version: this.defaultMatchSettings.accessibilitySettings.guidelinesVersion,
|
|
1155
|
-
},
|
|
1156
|
-
useDom: (_k = this.defaultMatchSettings) === null || _k === void 0 ? void 0 : _k.useDom,
|
|
1157
|
-
ignoreRegions: (_l = this.defaultMatchSettings) === null || _l === void 0 ? void 0 : _l.ignoreRegions,
|
|
1158
|
-
contentRegions: (_m = this.defaultMatchSettings) === null || _m === void 0 ? void 0 : _m.contentRegions,
|
|
1159
|
-
layoutRegions: (_o = this.defaultMatchSettings) === null || _o === void 0 ? void 0 : _o.layoutRegions,
|
|
1160
|
-
strictRegions: (_p = this.defaultMatchSettings) === null || _p === void 0 ? void 0 : _p.strictRegions,
|
|
1161
|
-
floatingRegions: (_q = this.defaultMatchSettings) === null || _q === void 0 ? void 0 : _q.floatingRegions,
|
|
1162
|
-
accessibilityRegions: (_r = this.defaultMatchSettings) === null || _r === void 0 ? void 0 : _r.accessibilityRegions,
|
|
1163
|
-
}),
|
|
1164
|
-
close: utils.general.removeUndefinedProps({
|
|
1165
|
-
updateBaselineIfDifferent: this.saveFailedTests,
|
|
1166
|
-
updateBaselineIfNew: this.saveNewTests,
|
|
1167
|
-
}),
|
|
1168
|
-
});
|
|
1169
|
-
}
|
|
1170
|
-
/** @internal */
|
|
1171
|
-
toString() {
|
|
1172
|
-
return utils.general.toString(this);
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
exports.ConfigurationData = ConfigurationData;
|
|
1176
|
-
// TODO: should be in utils
|
|
1177
|
-
function isISODate(str) {
|
|
1178
|
-
return /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\+\d{2}:\d{2})?/.test(str);
|
|
1179
|
-
}
|