@applitools/eyes 1.38.2 → 1.38.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -0
- package/dist/Eyes.js +6 -5
- package/dist/enums/DeviceName.js +1 -0
- package/dist/errors/EyesNotOpenError.js +17 -0
- package/dist/index.js +4 -2
- package/package.json +4 -4
- package/types/enums/DeviceName.d.ts +2 -1
- package/types/errors/EyesNotOpenError.d.ts +4 -0
- package/types/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,86 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.38.4](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.38.3...js/eyes@1.38.4) (2026-02-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add iphone 15 chrome emulation | FLD-4087 ([#3525](https://github.com/Applitools-Dev/sdk/issues/3525)) ([ddcc6c0](https://github.com/Applitools-Dev/sdk/commit/ddcc6c012d1874241433ca274508ece38f2dd222))
|
|
9
|
+
|
|
10
|
+
## [1.38.3](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.38.2...js/eyes@1.38.3) (2026-02-16)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* closing eyes without open | FLD-2814 ([#2916](https://github.com/Applitools-Dev/sdk/issues/2916)) ([d5425df](https://github.com/Applitools-Dev/sdk/commit/d5425dfedcc98bebd547d0d1ce5bcd10fa675c0d))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Dependencies
|
|
19
|
+
|
|
20
|
+
* @applitools/logger bumped to 2.2.8
|
|
21
|
+
#### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* use utils for environment variable retrieval in logger handlers ([#3551](https://github.com/Applitools-Dev/sdk/issues/3551)) ([caf97f3](https://github.com/Applitools-Dev/sdk/commit/caf97f34207bc3b8ee6ccda2855c27a99a262f8c))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#### Performance Improvements
|
|
27
|
+
|
|
28
|
+
* add timing logs to classic | FLD-4137 ([#3543](https://github.com/Applitools-Dev/sdk/issues/3543)) ([de2b0aa](https://github.com/Applitools-Dev/sdk/commit/de2b0aaf08d813f2c59e9552947c2f4fbc12da48))
|
|
29
|
+
* @applitools/test-server bumped to 1.4.0
|
|
30
|
+
#### Features
|
|
31
|
+
|
|
32
|
+
* make eyes-browser truly browser-importable ([#3512](https://github.com/Applitools-Dev/sdk/issues/3512)) ([9574a2f](https://github.com/Applitools-Dev/sdk/commit/9574a2fa45ec80466dfe93744c8a736f40fb51c3))
|
|
33
|
+
* mcp server test results support and improvements to initial setup ([#3518](https://github.com/Applitools-Dev/sdk/issues/3518)) ([ef6c27b](https://github.com/Applitools-Dev/sdk/commit/ef6c27b9e35dc54fd588e19a4811631433e15dbb))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
* @applitools/dom-snapshot bumped to 4.15.8
|
|
38
|
+
|
|
39
|
+
* @applitools/socket bumped to 1.3.9
|
|
40
|
+
|
|
41
|
+
* @applitools/req bumped to 1.8.8
|
|
42
|
+
|
|
43
|
+
* @applitools/dom-capture bumped to 11.6.9
|
|
44
|
+
|
|
45
|
+
* @applitools/driver bumped to 1.25.1
|
|
46
|
+
|
|
47
|
+
* @applitools/spec-driver-webdriver bumped to 1.5.6
|
|
48
|
+
|
|
49
|
+
* @applitools/spec-driver-selenium bumped to 1.7.12
|
|
50
|
+
|
|
51
|
+
* @applitools/spec-driver-puppeteer bumped to 1.7.1
|
|
52
|
+
|
|
53
|
+
* @applitools/screenshoter bumped to 3.12.13
|
|
54
|
+
|
|
55
|
+
* @applitools/nml-client bumped to 1.11.16
|
|
56
|
+
|
|
57
|
+
* @applitools/tunnel-client bumped to 1.11.6
|
|
58
|
+
#### Bug Fixes
|
|
59
|
+
|
|
60
|
+
* tunnel client binary ([#3535](https://github.com/Applitools-Dev/sdk/issues/3535)) ([5c4752e](https://github.com/Applitools-Dev/sdk/commit/5c4752e3dd9cc42052d23793284dc6a0cd8e3b72))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
* @applitools/ufg-client bumped to 1.19.1
|
|
65
|
+
|
|
66
|
+
* @applitools/core-base bumped to 1.31.2
|
|
67
|
+
|
|
68
|
+
* @applitools/ec-client bumped to 1.12.18
|
|
69
|
+
|
|
70
|
+
* @applitools/core bumped to 4.56.2
|
|
71
|
+
#### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* closing eyes without open | FLD-2814 ([#2916](https://github.com/Applitools-Dev/sdk/issues/2916)) ([d5425df](https://github.com/Applitools-Dev/sdk/commit/d5425dfedcc98bebd547d0d1ce5bcd10fa675c0d))
|
|
74
|
+
* tunnel client binary ([#3535](https://github.com/Applitools-Dev/sdk/issues/3535)) ([5c4752e](https://github.com/Applitools-Dev/sdk/commit/5c4752e3dd9cc42052d23793284dc6a0cd8e3b72))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
#### Performance Improvements
|
|
78
|
+
|
|
79
|
+
* add timing logs to classic | FLD-4137 ([#3543](https://github.com/Applitools-Dev/sdk/issues/3543)) ([de2b0aa](https://github.com/Applitools-Dev/sdk/commit/de2b0aaf08d813f2c59e9552947c2f4fbc12da48))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
3
84
|
## [1.38.2](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.38.1...js/eyes@1.38.2) (2026-01-27)
|
|
4
85
|
|
|
5
86
|
|
package/dist/Eyes.js
CHANGED
|
@@ -27,6 +27,7 @@ exports.Eyes = void 0;
|
|
|
27
27
|
const SDK_1 = require("./SDK");
|
|
28
28
|
const SessionType_1 = require("./enums/SessionType");
|
|
29
29
|
const EyesError_1 = require("./errors/EyesError");
|
|
30
|
+
const EyesNotOpenError_1 = require("./errors/EyesNotOpenError");
|
|
30
31
|
const NewTestError_1 = require("./errors/NewTestError");
|
|
31
32
|
const DiffsFoundError_1 = require("./errors/DiffsFoundError");
|
|
32
33
|
const TestFailedError_1 = require("./errors/TestFailedError");
|
|
@@ -243,7 +244,7 @@ class Eyes {
|
|
|
243
244
|
if (this._config.isDisabled)
|
|
244
245
|
return null;
|
|
245
246
|
if (!this.isOpen)
|
|
246
|
-
throw new
|
|
247
|
+
throw new EyesNotOpenError_1.EyesNotOpenError('check');
|
|
247
248
|
let serialized;
|
|
248
249
|
if (utils.types.isString(checkSettingsOrTargetOrName)) {
|
|
249
250
|
serialized = this._driver
|
|
@@ -318,7 +319,7 @@ class Eyes {
|
|
|
318
319
|
if (this._config.isDisabled)
|
|
319
320
|
return null;
|
|
320
321
|
if (!this.isOpen)
|
|
321
|
-
throw new
|
|
322
|
+
throw new EyesNotOpenError_1.EyesNotOpenError('locate');
|
|
322
323
|
let target;
|
|
323
324
|
if (utils.types.has(targetOrSettings, 'locatorNames')) {
|
|
324
325
|
settings = targetOrSettings;
|
|
@@ -343,7 +344,7 @@ class Eyes {
|
|
|
343
344
|
if (this._config.isDisabled)
|
|
344
345
|
return null;
|
|
345
346
|
if (!this.isOpen)
|
|
346
|
-
throw new
|
|
347
|
+
throw new EyesNotOpenError_1.EyesNotOpenError('extractTextRegions');
|
|
347
348
|
let target;
|
|
348
349
|
if (utils.types.has(targetOrSettings, 'patterns')) {
|
|
349
350
|
settings = targetOrSettings;
|
|
@@ -364,7 +365,7 @@ class Eyes {
|
|
|
364
365
|
if (this._config.isDisabled)
|
|
365
366
|
return null;
|
|
366
367
|
if (!this.isOpen)
|
|
367
|
-
throw new
|
|
368
|
+
throw new EyesNotOpenError_1.EyesNotOpenError('extractText');
|
|
368
369
|
let targets;
|
|
369
370
|
if (utils.types.isArray(targetOrSettings)) {
|
|
370
371
|
settings = targetOrSettings;
|
|
@@ -392,7 +393,7 @@ class Eyes {
|
|
|
392
393
|
if (this._config.isDisabled)
|
|
393
394
|
return null;
|
|
394
395
|
if (!this.isOpen)
|
|
395
|
-
throw new
|
|
396
|
+
throw new EyesNotOpenError_1.EyesNotOpenError('close');
|
|
396
397
|
await this.closeAsync();
|
|
397
398
|
const [result] = await this.getResults(throwErr);
|
|
398
399
|
return result;
|
package/dist/enums/DeviceName.js
CHANGED
|
@@ -108,4 +108,5 @@ var DeviceNameEnum;
|
|
|
108
108
|
DeviceNameEnum["Xiaomi_Poco_X3"] = "Xiaomi Poco X3";
|
|
109
109
|
DeviceNameEnum["iPhone_5_SE"] = "iPhone 5/SE";
|
|
110
110
|
DeviceNameEnum["Pixel_7"] = "Pixel 7";
|
|
111
|
+
DeviceNameEnum["iPhone_15"] = "iPhone 15";
|
|
111
112
|
})(DeviceNameEnum || (exports.DeviceNameEnum = DeviceNameEnum = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EyesNotOpenError = void 0;
|
|
4
|
+
const EyesError_1 = require("./EyesError");
|
|
5
|
+
class EyesNotOpenError extends EyesError_1.EyesError {
|
|
6
|
+
constructor(methodName) {
|
|
7
|
+
const message = `Cannot perform ${methodName} because the Eyes instance is not opened. Please ensure you call \`eyes.open()\` with valid parameters before invoking this method.
|
|
8
|
+
|
|
9
|
+
Check the following:
|
|
10
|
+
- Verify that \`eyes.open()\` is called in your test flow.
|
|
11
|
+
- Ensure the \`open\` call includes required parameters (e.g., appName, testName).
|
|
12
|
+
|
|
13
|
+
For more details, refer to the Applitools SDK documentation.`;
|
|
14
|
+
super(message);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.EyesNotOpenError = EyesNotOpenError;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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 = exports.SessionUrls = exports.MatchResult = exports.AppUrls = exports.ApiUrls = void 0;
|
|
3
|
+
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.EyesNotOpenError = 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.AndroidDeviceTarget = exports.IosDeviceTarget = exports.AndroidMultiDeviceTarget = exports.IosMultiDeviceTarget = 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 = exports.SessionUrls = exports.MatchResult = exports.AppUrls = exports.ApiUrls = exports.RunnerOptions = 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; } });
|
|
@@ -53,6 +53,8 @@ var DiffsFoundError_1 = require("./errors/DiffsFoundError");
|
|
|
53
53
|
Object.defineProperty(exports, "DiffsFoundError", { enumerable: true, get: function () { return DiffsFoundError_1.DiffsFoundError; } });
|
|
54
54
|
var NewTestError_1 = require("./errors/NewTestError");
|
|
55
55
|
Object.defineProperty(exports, "NewTestError", { enumerable: true, get: function () { return NewTestError_1.NewTestError; } });
|
|
56
|
+
var EyesNotOpenError_1 = require("./errors/EyesNotOpenError");
|
|
57
|
+
Object.defineProperty(exports, "EyesNotOpenError", { enumerable: true, get: function () { return EyesNotOpenError_1.EyesNotOpenError; } });
|
|
56
58
|
// #endregion
|
|
57
59
|
// #region INPUT
|
|
58
60
|
var AccessibilityMatchSettings_1 = require("./input/AccessibilityMatchSettings");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.4",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@applitools/core": "4.56.
|
|
54
|
-
"@applitools/logger": "2.2.
|
|
53
|
+
"@applitools/core": "4.56.2",
|
|
54
|
+
"@applitools/logger": "2.2.8",
|
|
55
55
|
"@applitools/utils": "1.14.1",
|
|
56
56
|
"chalk": "4.1.2",
|
|
57
57
|
"yargs": "17.7.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@applitools/req": "^1.8.
|
|
60
|
+
"@applitools/req": "^1.8.8",
|
|
61
61
|
"@types/node": "^12.20.55"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
@@ -102,6 +102,7 @@ export declare enum DeviceNameEnum {
|
|
|
102
102
|
Xiaomi_Mi_Poco_X3_Pro = "Xiaomi Mi Poco X3 Pro",
|
|
103
103
|
Xiaomi_Poco_X3 = "Xiaomi Poco X3",
|
|
104
104
|
iPhone_5_SE = "iPhone 5/SE",
|
|
105
|
-
Pixel_7 = "Pixel 7"
|
|
105
|
+
Pixel_7 = "Pixel 7",
|
|
106
|
+
iPhone_15 = "iPhone 15"
|
|
106
107
|
}
|
|
107
108
|
export type DeviceName = `${DeviceNameEnum}`;
|
package/types/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { EyesError } from './errors/EyesError';
|
|
|
22
22
|
export { TestFailedError } from './errors/TestFailedError';
|
|
23
23
|
export { DiffsFoundError } from './errors/DiffsFoundError';
|
|
24
24
|
export { NewTestError } from './errors/NewTestError';
|
|
25
|
+
export { EyesNotOpenError } from './errors/EyesNotOpenError';
|
|
25
26
|
export { AccessibilityMatchSettings as AccessibilityMatchSettingsPlain, AccessibilityMatchSettingsData as AccessibilityMatchSettings, } from './input/AccessibilityMatchSettings';
|
|
26
27
|
export { AccessibilitySettings } from './input/AccessibilitySettings';
|
|
27
28
|
export { BatchInfo as BatchInfoPlain, BatchInfoData as BatchInfo } from './input/BatchInfo';
|