@applitools/eyes 1.45.5 → 1.46.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 +21 -0
- package/dist/errors/EyesNlpError.js +13 -0
- package/dist/index.js +4 -2
- package/dist/input/Configuration.js +20 -0
- package/package.json +2 -2
- package/types/Eyes.d.ts +7 -1
- package/types/errors/EyesNlpError.d.ts +9 -0
- package/types/index.d.ts +1 -0
- package/types/input/Configuration.d.ts +29 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.46.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.45.5...js/eyes@1.46.0) (2026-09-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* NLP authoring (eyes.run) for eyes-playwright via the Eyes NLP service | AD-13296 ([#3936](https://github.com/Applitools-Dev/sdk/issues/3936)) ([c0f81d1](https://github.com/Applitools-Dev/sdk/commit/c0f81d1d3237945001ddf918954ee22a962aea03))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/core-base bumped to 1.39.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* NLP authoring (eyes.run) for eyes-playwright via the Eyes NLP service | AD-13296 ([#3936](https://github.com/Applitools-Dev/sdk/issues/3936)) ([c0f81d1](https://github.com/Applitools-Dev/sdk/commit/c0f81d1d3237945001ddf918954ee22a962aea03))
|
|
17
|
+
* @applitools/nml-client bumped to 1.12.3
|
|
18
|
+
|
|
19
|
+
* @applitools/ec-client bumped to 1.12.46
|
|
20
|
+
|
|
21
|
+
* @applitools/core bumped to 4.70.1
|
|
22
|
+
|
|
23
|
+
|
|
3
24
|
## [1.45.5](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.45.4...js/eyes@1.45.5) (2026-09-14)
|
|
4
25
|
|
|
5
26
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EyesNlpError = void 0;
|
|
4
|
+
const EyesError_1 = require("./EyesError");
|
|
5
|
+
class EyesNlpError extends EyesError_1.EyesError {
|
|
6
|
+
constructor(testStep, options) {
|
|
7
|
+
var _a;
|
|
8
|
+
super((_a = options === null || options === void 0 ? void 0 : options.message) !== null && _a !== void 0 ? _a : `NLP step '${testStep}' failed`, options === null || options === void 0 ? void 0 : options.reason);
|
|
9
|
+
this.stepSuccessful = false;
|
|
10
|
+
this.testStep = testStep;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.EyesNlpError = EyesNlpError;
|
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 = exports.RunnerOptions = void 0;
|
|
3
|
+
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.EyesNlpError = 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 = exports.RunnerOptionsFluent = 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; } });
|
|
@@ -55,6 +55,8 @@ var NewTestError_1 = require("./errors/NewTestError");
|
|
|
55
55
|
Object.defineProperty(exports, "NewTestError", { enumerable: true, get: function () { return NewTestError_1.NewTestError; } });
|
|
56
56
|
var EyesNotOpenError_1 = require("./errors/EyesNotOpenError");
|
|
57
57
|
Object.defineProperty(exports, "EyesNotOpenError", { enumerable: true, get: function () { return EyesNotOpenError_1.EyesNotOpenError; } });
|
|
58
|
+
var EyesNlpError_1 = require("./errors/EyesNlpError");
|
|
59
|
+
Object.defineProperty(exports, "EyesNlpError", { enumerable: true, get: function () { return EyesNlpError_1.EyesNlpError; } });
|
|
58
60
|
// #endregion
|
|
59
61
|
// #region INPUT
|
|
60
62
|
var AccessibilityMatchSettings_1 = require("./input/AccessibilityMatchSettings");
|
|
@@ -505,6 +505,26 @@ class ConfigurationData {
|
|
|
505
505
|
this.bypassCSP = bypassCSP;
|
|
506
506
|
return this;
|
|
507
507
|
}
|
|
508
|
+
/** @internal */
|
|
509
|
+
get nlpOptions() {
|
|
510
|
+
return this._config.nlpOptions;
|
|
511
|
+
}
|
|
512
|
+
/** @internal */
|
|
513
|
+
set nlpOptions(nlpOptions) {
|
|
514
|
+
if ((nlpOptions === null || nlpOptions === void 0 ? void 0 : nlpOptions.enabled) !== undefined) {
|
|
515
|
+
utils.guard.isBoolean(nlpOptions.enabled, { name: 'nlpOptions.enabled' });
|
|
516
|
+
}
|
|
517
|
+
this._config.nlpOptions = nlpOptions;
|
|
518
|
+
}
|
|
519
|
+
/** @internal */
|
|
520
|
+
getNlpOptions() {
|
|
521
|
+
return this.nlpOptions;
|
|
522
|
+
}
|
|
523
|
+
/** @internal */
|
|
524
|
+
setNlpOptions(nlpOptions) {
|
|
525
|
+
this.nlpOptions = nlpOptions;
|
|
526
|
+
return this;
|
|
527
|
+
}
|
|
508
528
|
get disableBrowserFetching() {
|
|
509
529
|
return this._config.disableBrowserFetching;
|
|
510
530
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@applitools/core": "4.70.
|
|
53
|
+
"@applitools/core": "4.70.1",
|
|
54
54
|
"@applitools/logger": "2.3.1",
|
|
55
55
|
"@applitools/utils": "1.15.2",
|
|
56
56
|
"chalk": "4.1.2",
|
package/types/Eyes.d.ts
CHANGED
|
@@ -36,7 +36,13 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType, TCheckSet
|
|
|
36
36
|
private _runner;
|
|
37
37
|
private _driver?;
|
|
38
38
|
private _core;
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Reachable by SDK subclasses that emit session-scoped analytics at teardown: the event needs
|
|
41
|
+
* the test identity off `.test` and the base core off `.core.base`, both only known once the
|
|
42
|
+
* session is open.
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
protected _eyes?: Core.Eyes<TSpec, 'classic' | 'ufg'>;
|
|
40
46
|
private _spec?;
|
|
41
47
|
private _events;
|
|
42
48
|
private _handlers;
|
package/types/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { TestFailedError } from './errors/TestFailedError';
|
|
|
23
23
|
export { DiffsFoundError } from './errors/DiffsFoundError';
|
|
24
24
|
export { NewTestError } from './errors/NewTestError';
|
|
25
25
|
export { EyesNotOpenError } from './errors/EyesNotOpenError';
|
|
26
|
+
export { EyesNlpError } from './errors/EyesNlpError';
|
|
26
27
|
export { AccessibilityMatchSettings as AccessibilityMatchSettingsPlain, AccessibilityMatchSettingsData as AccessibilityMatchSettings, } from './input/AccessibilityMatchSettings';
|
|
27
28
|
export { AccessibilitySettings } from './input/AccessibilitySettings';
|
|
28
29
|
export { BatchInfo as BatchInfoPlain, BatchInfoData as BatchInfo } from './input/BatchInfo';
|
|
@@ -26,6 +26,25 @@ type MultiDeviceTargetTypes = IosDeviceTargetNames | AndroidDeviceTargetNames |
|
|
|
26
26
|
export type BaselineEnvOptions = {
|
|
27
27
|
useLatestEnvBaseline?: boolean;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Options for NLP authoring (`eyes.run`). One config object holds every NLP setting, so a new
|
|
31
|
+
* one never costs a top-level Configuration field.
|
|
32
|
+
*
|
|
33
|
+
* NLP is exposed only through the `@applitools/eyes-playwright` fixture today, so this stays out
|
|
34
|
+
* of the public API of the generic SDKs — each SDK that ships NLP re-declares the shape it
|
|
35
|
+
* supports on its own config surface.
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export type NlpOptions = {
|
|
39
|
+
/**
|
|
40
|
+
* Whether NLP authoring is available in this run. Tri-state: `true` always, `false` never
|
|
41
|
+
* (explicit opt-out), unset asks the account whether it is entitled to NLP.
|
|
42
|
+
*
|
|
43
|
+
* Read at *browser launch*, which Playwright scopes to the worker — so it must be set at the
|
|
44
|
+
* global or project level; a test-level value cannot affect it.
|
|
45
|
+
*/
|
|
46
|
+
enabled?: boolean;
|
|
47
|
+
};
|
|
29
48
|
export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
30
49
|
accessibilityValidation?: AccessibilitySettings;
|
|
31
50
|
agentId?: string;
|
|
@@ -51,6 +70,8 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
|
51
70
|
defaultMatchSettings?: ImageMatchSettings;
|
|
52
71
|
deviceInfo?: string;
|
|
53
72
|
bypassCSP?: boolean;
|
|
73
|
+
/** @internal */
|
|
74
|
+
nlpOptions?: NlpOptions;
|
|
54
75
|
disableBrowserFetching?: boolean;
|
|
55
76
|
disableNMLUrlCache?: boolean;
|
|
56
77
|
displayName?: string;
|
|
@@ -267,6 +288,14 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
267
288
|
set bypassCSP(bypassCSP: boolean);
|
|
268
289
|
getBypassCSP(): boolean;
|
|
269
290
|
setBypassCSP(bypassCSP: boolean): this;
|
|
291
|
+
/** @internal */
|
|
292
|
+
get nlpOptions(): NlpOptions;
|
|
293
|
+
/** @internal */
|
|
294
|
+
set nlpOptions(nlpOptions: NlpOptions);
|
|
295
|
+
/** @internal */
|
|
296
|
+
getNlpOptions(): NlpOptions;
|
|
297
|
+
/** @internal */
|
|
298
|
+
setNlpOptions(nlpOptions: NlpOptions): this;
|
|
270
299
|
get disableBrowserFetching(): boolean;
|
|
271
300
|
set disableBrowserFetching(disableBrowserFetching: boolean);
|
|
272
301
|
getDisableBrowserFetching(): boolean;
|