@applitools/eyes 1.27.0 → 1.29.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 +61 -0
- package/dist/cli/cli.js +47 -0
- package/dist/cli/load-config.js +73 -0
- package/dist/index.js +2 -6
- package/dist/input/Configuration.js +0 -24
- package/package.json +6 -4
- package/types/cli/cli.d.ts +2 -0
- package/types/cli/load-config.d.ts +1 -0
- package/types/index.d.ts +1 -3
- package/types/input/Configuration.d.ts +0 -6
- package/types/input/RenderInfo.d.ts +2 -11
- package/types/output/TestResultContainer.d.ts +2 -2
- package/dist/enums/AndroidDeviceName.js +0 -39
- package/dist/enums/AndroidVersion.js +0 -8
- package/types/enums/AndroidDeviceName.d.ts +0 -35
- package/types/enums/AndroidVersion.d.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.29.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.28.0...js/eyes@1.29.0) (2024-11-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* offline cli with config ([#2646](https://github.com/Applitools-Dev/sdk/issues/2646)) ([0589dc4](https://github.com/Applitools-Dev/sdk/commit/0589dc429a0c94451e957932106f258dadfd88cc))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/core bumped to 4.25.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* offline cli with config ([#2646](https://github.com/Applitools-Dev/sdk/issues/2646)) ([0589dc4](https://github.com/Applitools-Dev/sdk/commit/0589dc429a0c94451e957932106f258dadfd88cc))
|
|
17
|
+
|
|
18
|
+
## [1.28.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.27.0...js/eyes@1.28.0) (2024-11-27)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* remove Android NMG API ([#2566](https://github.com/Applitools-Dev/sdk/issues/2566)) ([750c0f0](https://github.com/Applitools-Dev/sdk/commit/750c0f0263e5ff06f86055e7ba0c3fb47cadb620))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* @applitools/dom-shared bumped to 1.0.16
|
|
29
|
+
#### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* enhance error logging in takeScreenshots and pollify functions ([#2644](https://github.com/Applitools-Dev/sdk/issues/2644)) ([2428fa5](https://github.com/Applitools-Dev/sdk/commit/2428fa500a9fd47a803aa5aca9f79e5c5b3584f9))
|
|
32
|
+
* @applitools/req bumped to 1.7.4
|
|
33
|
+
#### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* set heartbeat request timeout as the request interval ([#2587](https://github.com/Applitools-Dev/sdk/issues/2587)) ([0251d27](https://github.com/Applitools-Dev/sdk/commit/0251d27d9ed44ec247732f66904ae3d4fa4123f1))
|
|
36
|
+
* @applitools/core-base bumped to 1.19.3
|
|
37
|
+
#### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* set heartbeat request timeout as the request interval ([#2587](https://github.com/Applitools-Dev/sdk/issues/2587)) ([0251d27](https://github.com/Applitools-Dev/sdk/commit/0251d27d9ed44ec247732f66904ae3d4fa4123f1))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
* @applitools/dom-snapshot bumped to 4.11.11
|
|
44
|
+
|
|
45
|
+
* @applitools/dom-capture bumped to 11.5.2
|
|
46
|
+
|
|
47
|
+
* @applitools/nml-client bumped to 1.8.19
|
|
48
|
+
|
|
49
|
+
* @applitools/tunnel-client bumped to 1.5.10
|
|
50
|
+
|
|
51
|
+
* @applitools/ufg-client bumped to 1.14.1
|
|
52
|
+
|
|
53
|
+
* @applitools/ec-client bumped to 1.9.15
|
|
54
|
+
|
|
55
|
+
* @applitools/core bumped to 4.24.2
|
|
56
|
+
#### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* don't populate branchName and parentBranchName when scm integration exists ([#2634](https://github.com/Applitools-Dev/sdk/issues/2634)) ([e45d671](https://github.com/Applitools-Dev/sdk/commit/e45d671e11ed40a82de1bd5ab22e757aff00b63f))
|
|
59
|
+
* enhance error logging in takeScreenshots and pollify functions ([#2644](https://github.com/Applitools-Dev/sdk/issues/2644)) ([2428fa5](https://github.com/Applitools-Dev/sdk/commit/2428fa500a9fd47a803aa5aca9f79e5c5b3584f9))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
3
64
|
## [1.27.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.26.4...js/eyes@1.27.0) (2024-11-12)
|
|
4
65
|
|
|
5
66
|
|
package/dist/cli/cli.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
/* eslint no-console: off */
|
|
8
|
+
const core_1 = require("@applitools/core");
|
|
9
|
+
const yargs_1 = __importDefault(require("yargs"));
|
|
10
|
+
const Configuration_1 = require("../input/Configuration");
|
|
11
|
+
const load_config_1 = require("./load-config");
|
|
12
|
+
void yargs_1.default
|
|
13
|
+
.example([['eyes run-offline-snapshots', 'Run Eyes visual tests on existing snapshots']])
|
|
14
|
+
.command({
|
|
15
|
+
command: 'run-offline-snapshots',
|
|
16
|
+
builder: yargs => {
|
|
17
|
+
return yargs
|
|
18
|
+
.options({
|
|
19
|
+
offlineLocationPath: {
|
|
20
|
+
description: 'path to offline snapshots folder',
|
|
21
|
+
type: 'string',
|
|
22
|
+
},
|
|
23
|
+
failOnDiff: {
|
|
24
|
+
description: 'should exit process with non-zero exit code, thereby failing the CI job',
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
default: false,
|
|
27
|
+
},
|
|
28
|
+
configPath: {
|
|
29
|
+
description: 'path to configuration file (applitools.config.js / applitools.config.ts)',
|
|
30
|
+
type: 'string',
|
|
31
|
+
},
|
|
32
|
+
})
|
|
33
|
+
.fail((_msg, err, _yargs) => {
|
|
34
|
+
if (err) {
|
|
35
|
+
console.error(err.message);
|
|
36
|
+
// console.log(err)
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
handler: async (args) => {
|
|
42
|
+
const config = await (0, load_config_1.loadConfig)(args.configPath);
|
|
43
|
+
const options = { ...args, config: new Configuration_1.ConfigurationData(config).toJSON() };
|
|
44
|
+
await (0, core_1.runOfflineSnapshots)(options);
|
|
45
|
+
},
|
|
46
|
+
})
|
|
47
|
+
.wrap(yargs_1.default.terminalWidth()).argv;
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.loadConfig = void 0;
|
|
30
|
+
/* eslint no-console: off */
|
|
31
|
+
const utils = __importStar(require("@applitools/utils"));
|
|
32
|
+
const path_1 = __importDefault(require("path"));
|
|
33
|
+
const fs_1 = __importDefault(require("fs"));
|
|
34
|
+
const chalk = __importStar(require("chalk"));
|
|
35
|
+
async function loadConfig(configPath) {
|
|
36
|
+
const configPathArr = configPath ? [configPath] : [];
|
|
37
|
+
const paths = configPathArr.concat(['applitools.config.js']);
|
|
38
|
+
let config = {};
|
|
39
|
+
try {
|
|
40
|
+
config = utils.config.getConfig({
|
|
41
|
+
paths,
|
|
42
|
+
traverse: false,
|
|
43
|
+
strict: true,
|
|
44
|
+
});
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
if (config.__esModule) {
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
config = config.default;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
if (err.code === 'ERR_REQUIRE_ESM') {
|
|
53
|
+
const resolvedPaths = paths.map(probablePath => path_1.default.resolve(process.cwd(), probablePath));
|
|
54
|
+
const foundPath = resolvedPaths.find(resolvedPath => fs_1.default.existsSync(resolvedPath));
|
|
55
|
+
if (foundPath) {
|
|
56
|
+
try {
|
|
57
|
+
config = await import(foundPath);
|
|
58
|
+
}
|
|
59
|
+
catch (err) {
|
|
60
|
+
console.warn(chalk.yellow(err.message));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
console.warn(chalk.yellow('Could not find configuration file.'));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
console.warn(chalk.yellow(err.message));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return config;
|
|
72
|
+
}
|
|
73
|
+
exports.loadConfig = loadConfig;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppUrls = exports.ApiUrls = exports.RunnerOptions = exports.RunnerOptionsFluent = exports.Region = exports.RectangleSize = exports.ProxySettings = exports.PropertyData = exports.NullLogHandler = exports.ConsoleLogHandler = exports.FileLogHandler = exports.LogHandler = exports.Location = exports.ImageRotation = exports.ImageMatchSettings = exports.FloatingMatchSettings = exports.ExactMatchSettings = exports.UnscaledFixedCutProvider = exports.FixedCutProvider = exports.CutProvider = exports.Configuration = exports.Target = exports.TargetAutomation = exports.TargetImage = exports.CheckSettingsAutomation = exports.CheckSettingsImage = exports.BatchInfo = exports.AccessibilityMatchSettings = exports.NewTestError = exports.DiffsFoundError = exports.TestFailedError = exports.EyesError = exports.DynamicTextType = exports.AccessibilityStatus = exports.AccessibilityRegionType = exports.AccessibilityLevel = exports.AccessibilityGuidelinesVersion = exports.TestResultsStatus = exports.StitchMode = exports.SessionType = exports.ScreenOrientation = exports.MatchLevel = exports.
|
|
4
|
-
exports.RemoteSessionEventHandler = exports.SessionEventHandlers = exports.SessionEventHandler = exports.VisualGridRunner = exports.ClassicRunner = exports.EyesRunner = exports.closeBatch = exports.BatchClose = exports.Eyes = exports.Logger = exports.ValidationResult = exports.ValidationInfo = exports.TestResultsSummary = exports.TestResultContainer = exports.TestResults = exports.StepInfo =
|
|
3
|
+
exports.SessionUrls = exports.MatchResult = exports.AppUrls = exports.ApiUrls = exports.RunnerOptions = exports.RunnerOptionsFluent = exports.Region = exports.RectangleSize = exports.ProxySettings = exports.PropertyData = exports.NullLogHandler = exports.ConsoleLogHandler = exports.FileLogHandler = exports.LogHandler = exports.Location = exports.ImageRotation = exports.ImageMatchSettings = exports.FloatingMatchSettings = exports.ExactMatchSettings = exports.UnscaledFixedCutProvider = exports.FixedCutProvider = exports.CutProvider = exports.Configuration = exports.Target = exports.TargetAutomation = exports.TargetImage = exports.CheckSettingsAutomation = exports.CheckSettingsImage = exports.BatchInfo = exports.AccessibilityMatchSettings = exports.NewTestError = exports.DiffsFoundError = exports.TestFailedError = exports.EyesError = exports.DynamicTextType = exports.AccessibilityStatus = exports.AccessibilityRegionType = exports.AccessibilityLevel = exports.AccessibilityGuidelinesVersion = exports.TestResultsStatus = exports.StitchMode = exports.SessionType = exports.ScreenOrientation = exports.MatchLevel = exports.IosVersion = exports.IosDeviceName = exports.FailureReport = exports.DeviceName = exports.CorsIframeHandle = exports.BrowserType = void 0;
|
|
4
|
+
exports.RemoteSessionEventHandler = exports.SessionEventHandlers = exports.SessionEventHandler = exports.VisualGridRunner = exports.ClassicRunner = exports.EyesRunner = exports.closeBatch = exports.BatchClose = exports.Eyes = exports.Logger = exports.ValidationResult = exports.ValidationInfo = exports.TestResultsSummary = exports.TestResultContainer = exports.TestResults = exports.StepInfo = void 0;
|
|
5
5
|
// #region ENUM
|
|
6
6
|
var BrowserType_1 = require("./enums/BrowserType");
|
|
7
7
|
Object.defineProperty(exports, "BrowserType", { enumerable: true, get: function () { return BrowserType_1.BrowserTypeEnum; } });
|
|
@@ -15,10 +15,6 @@ var IosDeviceName_1 = require("./enums/IosDeviceName");
|
|
|
15
15
|
Object.defineProperty(exports, "IosDeviceName", { enumerable: true, get: function () { return IosDeviceName_1.IosDeviceNameEnum; } });
|
|
16
16
|
var IosVersion_1 = require("./enums/IosVersion");
|
|
17
17
|
Object.defineProperty(exports, "IosVersion", { enumerable: true, get: function () { return IosVersion_1.IosVersionEnum; } });
|
|
18
|
-
var AndroidDeviceName_1 = require("./enums/AndroidDeviceName");
|
|
19
|
-
Object.defineProperty(exports, "AndroidDeviceName", { enumerable: true, get: function () { return AndroidDeviceName_1.AndroidDeviceNameEnum; } });
|
|
20
|
-
var AndroidVersion_1 = require("./enums/AndroidVersion");
|
|
21
|
-
Object.defineProperty(exports, "AndroidVersion", { enumerable: true, get: function () { return AndroidVersion_1.AndroidVersionEnum; } });
|
|
22
18
|
var MatchLevel_1 = require("./enums/MatchLevel");
|
|
23
19
|
Object.defineProperty(exports, "MatchLevel", { enumerable: true, get: function () { return MatchLevel_1.MatchLevelEnum; } });
|
|
24
20
|
var ScreenOrientation_1 = require("./enums/ScreenOrientation");
|
|
@@ -27,7 +27,6 @@ exports.ConfigurationData = void 0;
|
|
|
27
27
|
const StitchMode_1 = require("../enums/StitchMode");
|
|
28
28
|
const MatchLevel_1 = require("../enums/MatchLevel");
|
|
29
29
|
const BrowserType_1 = require("../enums/BrowserType");
|
|
30
|
-
const IosDeviceName_1 = require("../enums/IosDeviceName");
|
|
31
30
|
const ScreenOrientation_1 = require("../enums/ScreenOrientation");
|
|
32
31
|
const RectangleSize_1 = require("./RectangleSize");
|
|
33
32
|
const ImageRotation_1 = require("./ImageRotation");
|
|
@@ -226,29 +225,6 @@ class ConfigurationData {
|
|
|
226
225
|
this.browsersInfo.push({ chromeEmulationInfo: { deviceName, screenOrientation } });
|
|
227
226
|
return this;
|
|
228
227
|
}
|
|
229
|
-
addMobileDevice(deviceName, screenOrientation, version) {
|
|
230
|
-
if (!this.browsersInfo)
|
|
231
|
-
this.browsersInfo = [];
|
|
232
|
-
if (utils.types.isEnumValue(deviceName, IosDeviceName_1.IosDeviceNameEnum)) {
|
|
233
|
-
this.browsersInfo.push({
|
|
234
|
-
iosDeviceInfo: {
|
|
235
|
-
deviceName: deviceName,
|
|
236
|
-
screenOrientation,
|
|
237
|
-
iosVersion: version,
|
|
238
|
-
},
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
this.browsersInfo.push({
|
|
243
|
-
androidDeviceInfo: {
|
|
244
|
-
deviceName: deviceName,
|
|
245
|
-
screenOrientation,
|
|
246
|
-
version: version,
|
|
247
|
-
},
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
return this;
|
|
251
|
-
}
|
|
252
228
|
addMultiDeviceTarget(deviceName) {
|
|
253
229
|
if (!this.browsersInfo)
|
|
254
230
|
this.browsersInfo = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -39,18 +39,20 @@
|
|
|
39
39
|
"dist",
|
|
40
40
|
"types"
|
|
41
41
|
],
|
|
42
|
+
"bin": "./dist/cli/cli.js",
|
|
42
43
|
"scripts": {
|
|
43
44
|
"lint": "run --top-level eslint '**/*.ts'",
|
|
44
45
|
"build": "run --top-level tsc --project ./tsconfig.build.json",
|
|
45
46
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@applitools/core": "4.
|
|
49
|
+
"@applitools/core": "4.25.0",
|
|
49
50
|
"@applitools/logger": "2.0.19",
|
|
50
|
-
"@applitools/utils": "1.7.5"
|
|
51
|
+
"@applitools/utils": "1.7.5",
|
|
52
|
+
"chalk": "4.1.2"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
53
|
-
"@applitools/req": "^1.7.
|
|
55
|
+
"@applitools/req": "^1.7.4",
|
|
54
56
|
"@types/node": "^12.20.55"
|
|
55
57
|
},
|
|
56
58
|
"engines": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadConfig(configPath: string): Promise<object>;
|
package/types/index.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ export { DeviceName as DeviceNamePlain, DeviceNameEnum as DeviceName } from './e
|
|
|
4
4
|
export { FailureReport as FailureReportPlain, FailureReportEnum as FailureReport } from './enums/FailureReport';
|
|
5
5
|
export { IosDeviceName as IosDeviceNamePlain, IosDeviceNameEnum as IosDeviceName } from './enums/IosDeviceName';
|
|
6
6
|
export { IosVersion as IosVersionPlain, IosVersionEnum as IosVersion } from './enums/IosVersion';
|
|
7
|
-
export { AndroidDeviceName as AndroidDeviceNamePlain, AndroidDeviceNameEnum as AndroidDeviceName, } from './enums/AndroidDeviceName';
|
|
8
|
-
export { AndroidVersion as AndroidVersionPlain, AndroidVersionEnum as AndroidVersion } from './enums/AndroidVersion';
|
|
9
7
|
export { MatchLevel as MatchLevelPlain, MatchLevelEnum as MatchLevel } from './enums/MatchLevel';
|
|
10
8
|
export { ScreenOrientation as ScreenOrientationPlain, ScreenOrientationEnum as ScreenOrientation, } from './enums/ScreenOrientation';
|
|
11
9
|
export { SessionType as SessionTypePlain, SessionTypeEnum as SessionType } from './enums/SessionType';
|
|
@@ -39,7 +37,7 @@ export { PropertyData as PropertyDataPlain, PropertyDataData as PropertyData } f
|
|
|
39
37
|
export { ProxySettings as ProxySettingsPlain, ProxySettingsData as ProxySettings } from './input/ProxySettings';
|
|
40
38
|
export { RectangleSize as RectangleSizePlain, RectangleSizeData as RectangleSize } from './input/RectangleSize';
|
|
41
39
|
export { Region as RegionPlain, LegacyRegion as LegacyRegionPlain, RegionData as Region } from './input/Region';
|
|
42
|
-
export { DesktopBrowserInfo, ChromeEmulationInfo, IOSDeviceInfo
|
|
40
|
+
export { DesktopBrowserInfo, ChromeEmulationInfo, IOSDeviceInfo } from './input/RenderInfo';
|
|
43
41
|
export { RunnerOptions as RunnerOptionsPlain, RunnerOptionsFluent, RunnerOptionsFluentInit as RunnerOptions, } from './input/RunnerOptions';
|
|
44
42
|
export { VisualLocatorSettings } from './input/VisualLocatorSettings';
|
|
45
43
|
export { ApiUrls as ApiUrlsPlain, ApiUrlsData as ApiUrls } from './output/ApiUrls';
|
|
@@ -5,10 +5,6 @@ import { StitchMode, StitchModeEnum } from '../enums/StitchMode';
|
|
|
5
5
|
import { MatchLevel, MatchLevelEnum } from '../enums/MatchLevel';
|
|
6
6
|
import { BrowserType } from '../enums/BrowserType';
|
|
7
7
|
import { DeviceName } from '../enums/DeviceName';
|
|
8
|
-
import { AndroidDeviceName } from '../enums/AndroidDeviceName';
|
|
9
|
-
import { AndroidVersion } from '../enums/AndroidVersion';
|
|
10
|
-
import { IosDeviceName } from '../enums/IosDeviceName';
|
|
11
|
-
import { IosVersion } from '../enums/IosVersion';
|
|
12
8
|
import { IosMultiDeviceTarget } from '../enums/IosMultiDeviceTarget';
|
|
13
9
|
import { ScreenOrientation } from '../enums/ScreenOrientation';
|
|
14
10
|
import { AccessibilitySettings } from './AccessibilitySettings';
|
|
@@ -149,8 +145,6 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
149
145
|
addBrowser(browserInfo: RenderInfoLegacy): this;
|
|
150
146
|
addBrowser(width: number, height: number, name?: BrowserType): this;
|
|
151
147
|
addDeviceEmulation(deviceName: DeviceName, screenOrientation?: ScreenOrientation): this;
|
|
152
|
-
addMobileDevice(deviceName: AndroidDeviceName, screenOrientation: ScreenOrientation, version?: AndroidVersion): this;
|
|
153
|
-
addMobileDevice(deviceName: IosDeviceName, screenOrientation: ScreenOrientation, version?: IosVersion): this;
|
|
154
148
|
addMultiDeviceTarget(deviceName: IosMultiDeviceTarget): this;
|
|
155
149
|
get captureStatusBar(): boolean;
|
|
156
150
|
set captureStatusBar(captureStatusBar: boolean);
|
|
@@ -2,8 +2,6 @@ import { BrowserType } from '../enums/BrowserType';
|
|
|
2
2
|
import { DeviceName } from '../enums/DeviceName';
|
|
3
3
|
import { IosDeviceName } from '../enums/IosDeviceName';
|
|
4
4
|
import { IosVersion } from '../enums/IosVersion';
|
|
5
|
-
import { AndroidDeviceName } from '../enums/AndroidDeviceName';
|
|
6
|
-
import { AndroidVersion } from '../enums/AndroidVersion';
|
|
7
5
|
import { ScreenOrientation } from '../enums/ScreenOrientation';
|
|
8
6
|
import { IosMultiDeviceTarget } from '../enums/IosMultiDeviceTarget';
|
|
9
7
|
type RenderInfoBase = {
|
|
@@ -39,18 +37,11 @@ export type IOSDeviceInfo = {
|
|
|
39
37
|
screenOrientation?: ScreenOrientation;
|
|
40
38
|
};
|
|
41
39
|
};
|
|
42
|
-
export type AndroidDeviceInfo = {
|
|
43
|
-
androidDeviceInfo: {
|
|
44
|
-
deviceName: AndroidDeviceName;
|
|
45
|
-
version?: AndroidVersion;
|
|
46
|
-
screenOrientation?: ScreenOrientation;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
40
|
export type IOSMultiDeviceInfo = {
|
|
50
41
|
iosDeviceInfo: {
|
|
51
42
|
deviceName: IosMultiDeviceTarget;
|
|
52
43
|
};
|
|
53
44
|
};
|
|
54
|
-
export type RenderInfoLegacy = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo |
|
|
55
|
-
export type RenderInfo = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo |
|
|
45
|
+
export type RenderInfoLegacy = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | ChromeEmulationInfoLegacy);
|
|
46
|
+
export type RenderInfo = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | IOSMultiDeviceInfo);
|
|
56
47
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Core from '@applitools/core';
|
|
2
2
|
import { TestResults, TestResultsData } from './TestResults';
|
|
3
|
-
import {
|
|
4
|
-
type RenderInfo = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo |
|
|
3
|
+
import { ChromeEmulationInfo, ChromeEmulationInfoLegacy, DesktopBrowserInfo, IOSDeviceInfo } from '../input/RenderInfo';
|
|
4
|
+
type RenderInfo = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | ChromeEmulationInfoLegacy;
|
|
5
5
|
export type TestResultContainer = {
|
|
6
6
|
readonly exception?: Error;
|
|
7
7
|
readonly testResults?: TestResults;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* GENERATED FILE */
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.AndroidDeviceNameEnum = void 0;
|
|
5
|
-
var AndroidDeviceNameEnum;
|
|
6
|
-
(function (AndroidDeviceNameEnum) {
|
|
7
|
-
AndroidDeviceNameEnum["Galaxy_S20"] = "Galaxy S20";
|
|
8
|
-
AndroidDeviceNameEnum["Galaxy_S20_Plus"] = "Galaxy S20 Plus";
|
|
9
|
-
/** @deprecated use {@link Galaxy_S20_Plus } instead */
|
|
10
|
-
AndroidDeviceNameEnum["Galaxy_S20_PLUS"] = "Galaxy S20 Plus";
|
|
11
|
-
AndroidDeviceNameEnum["Galaxy_S21_Ultra"] = "Galaxy S21 Ultra";
|
|
12
|
-
/** @deprecated use {@link Galaxy_S21_Ultra } instead */
|
|
13
|
-
AndroidDeviceNameEnum["Galaxy_S21_ULTRA"] = "Galaxy S21 Ultra";
|
|
14
|
-
AndroidDeviceNameEnum["Galaxy_Note_10_Plus"] = "Galaxy Note 10 Plus";
|
|
15
|
-
AndroidDeviceNameEnum["Galaxy_S9"] = "Galaxy S9";
|
|
16
|
-
AndroidDeviceNameEnum["Galaxy_S10"] = "Galaxy S10";
|
|
17
|
-
AndroidDeviceNameEnum["Galaxy_S10_Plus"] = "Galaxy S10 Plus";
|
|
18
|
-
AndroidDeviceNameEnum["Pixel_4_XL"] = "Pixel 4 XL";
|
|
19
|
-
AndroidDeviceNameEnum["Pixel_3_XL"] = "Pixel 3 XL";
|
|
20
|
-
AndroidDeviceNameEnum["Galaxy_S21"] = "Galaxy S21";
|
|
21
|
-
AndroidDeviceNameEnum["Galaxy_S21_Plus"] = "Galaxy S21 Plus";
|
|
22
|
-
/** @deprecated use {@link Galaxy_S21_Plus } instead */
|
|
23
|
-
AndroidDeviceNameEnum["Galaxy_S21_PLUS"] = "Galaxy S21 Plus";
|
|
24
|
-
AndroidDeviceNameEnum["Xiaomi_Redmi_Note_11_Pro"] = "Xiaomi Redmi Note 11 Pro";
|
|
25
|
-
AndroidDeviceNameEnum["Xiaomi_Redmi_Note_11"] = "Xiaomi Redmi Note 11";
|
|
26
|
-
AndroidDeviceNameEnum["Xiaomi_Redmi_Note_10_JE"] = "Xiaomi Redmi Note 10 JE";
|
|
27
|
-
AndroidDeviceNameEnum["Pixel_6"] = "Pixel 6";
|
|
28
|
-
AndroidDeviceNameEnum["Galaxy_Note_10"] = "Galaxy Note 10";
|
|
29
|
-
AndroidDeviceNameEnum["Pixel_4"] = "Pixel 4";
|
|
30
|
-
AndroidDeviceNameEnum["Pixel_5"] = "Pixel 5";
|
|
31
|
-
AndroidDeviceNameEnum["Galaxy_S22"] = "Galaxy S22";
|
|
32
|
-
AndroidDeviceNameEnum["Galaxy_S22_Plus"] = "Galaxy S22 Plus";
|
|
33
|
-
AndroidDeviceNameEnum["Galaxy_Tab_S8"] = "Galaxy Tab S8";
|
|
34
|
-
AndroidDeviceNameEnum["Galaxy_Tab_S7"] = "Galaxy Tab S7";
|
|
35
|
-
AndroidDeviceNameEnum["Sony_Xperia_10_II"] = "Sony Xperia 10 II";
|
|
36
|
-
AndroidDeviceNameEnum["Sony_Xperia_1_II"] = "Sony Xperia 1 II";
|
|
37
|
-
AndroidDeviceNameEnum["Sony_Xperia_Ace_II"] = "Sony Xperia Ace II";
|
|
38
|
-
AndroidDeviceNameEnum["Huawei_P30_Lite"] = "Huawei P30 Lite";
|
|
39
|
-
})(AndroidDeviceNameEnum || (exports.AndroidDeviceNameEnum = AndroidDeviceNameEnum = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AndroidVersionEnum = void 0;
|
|
4
|
-
var AndroidVersionEnum;
|
|
5
|
-
(function (AndroidVersionEnum) {
|
|
6
|
-
AndroidVersionEnum["LATEST"] = "latest";
|
|
7
|
-
AndroidVersionEnum["ONE_VERSION_BACK"] = "latest-1";
|
|
8
|
-
})(AndroidVersionEnum || (exports.AndroidVersionEnum = AndroidVersionEnum = {}));
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare enum AndroidDeviceNameEnum {
|
|
2
|
-
Galaxy_S20 = "Galaxy S20",
|
|
3
|
-
Galaxy_S20_Plus = "Galaxy S20 Plus",
|
|
4
|
-
/** @deprecated use {@link Galaxy_S20_Plus } instead */
|
|
5
|
-
Galaxy_S20_PLUS = "Galaxy S20 Plus",
|
|
6
|
-
Galaxy_S21_Ultra = "Galaxy S21 Ultra",
|
|
7
|
-
/** @deprecated use {@link Galaxy_S21_Ultra } instead */
|
|
8
|
-
Galaxy_S21_ULTRA = "Galaxy S21 Ultra",
|
|
9
|
-
Galaxy_Note_10_Plus = "Galaxy Note 10 Plus",
|
|
10
|
-
Galaxy_S9 = "Galaxy S9",
|
|
11
|
-
Galaxy_S10 = "Galaxy S10",
|
|
12
|
-
Galaxy_S10_Plus = "Galaxy S10 Plus",
|
|
13
|
-
Pixel_4_XL = "Pixel 4 XL",
|
|
14
|
-
Pixel_3_XL = "Pixel 3 XL",
|
|
15
|
-
Galaxy_S21 = "Galaxy S21",
|
|
16
|
-
Galaxy_S21_Plus = "Galaxy S21 Plus",
|
|
17
|
-
/** @deprecated use {@link Galaxy_S21_Plus } instead */
|
|
18
|
-
Galaxy_S21_PLUS = "Galaxy S21 Plus",
|
|
19
|
-
Xiaomi_Redmi_Note_11_Pro = "Xiaomi Redmi Note 11 Pro",
|
|
20
|
-
Xiaomi_Redmi_Note_11 = "Xiaomi Redmi Note 11",
|
|
21
|
-
Xiaomi_Redmi_Note_10_JE = "Xiaomi Redmi Note 10 JE",
|
|
22
|
-
Pixel_6 = "Pixel 6",
|
|
23
|
-
Galaxy_Note_10 = "Galaxy Note 10",
|
|
24
|
-
Pixel_4 = "Pixel 4",
|
|
25
|
-
Pixel_5 = "Pixel 5",
|
|
26
|
-
Galaxy_S22 = "Galaxy S22",
|
|
27
|
-
Galaxy_S22_Plus = "Galaxy S22 Plus",
|
|
28
|
-
Galaxy_Tab_S8 = "Galaxy Tab S8",
|
|
29
|
-
Galaxy_Tab_S7 = "Galaxy Tab S7",
|
|
30
|
-
Sony_Xperia_10_II = "Sony Xperia 10 II",
|
|
31
|
-
Sony_Xperia_1_II = "Sony Xperia 1 II",
|
|
32
|
-
Sony_Xperia_Ace_II = "Sony Xperia Ace II",
|
|
33
|
-
Huawei_P30_Lite = "Huawei P30 Lite"
|
|
34
|
-
}
|
|
35
|
-
export type AndroidDeviceName = `${AndroidDeviceNameEnum}`;
|