@applitools/eyes-browser 1.6.24 → 1.6.26
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 +79 -0
- package/dist/index.js +5141 -3093
- package/package.json +4 -2
- package/types/input/CheckSettings.d.ts +3 -1
- package/types/input/ExactMatchSettings.d.ts +28 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-browser",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -51,7 +51,9 @@
|
|
|
51
51
|
"test": "run playwright test"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@applitools/
|
|
54
|
+
"@applitools/dom-snapshot": "4.17.6",
|
|
55
|
+
"@applitools/eyes": "1.43.7",
|
|
56
|
+
"@applitools/snippets": "2.9.4"
|
|
55
57
|
},
|
|
56
58
|
"devDependencies": {
|
|
57
59
|
"@applitools/test-server": "1.4.6",
|
|
@@ -4,6 +4,7 @@ import { EyesSelector } from './EyesSelector';
|
|
|
4
4
|
import { Image } from './Image';
|
|
5
5
|
import { AccessibilityRegionType } from '../enums/AccessibilityRegionType';
|
|
6
6
|
import { MatchLevel } from '../enums/MatchLevel';
|
|
7
|
+
import { type ExactMatchSettings } from './ExactMatchSettings';
|
|
7
8
|
import { Region, LegacyRegion } from './Region';
|
|
8
9
|
import { Location } from './Location';
|
|
9
10
|
import { LazyLoadOptions } from './LazyLoadOptions';
|
|
@@ -55,6 +56,7 @@ export type CheckSettingsBase<TRegion = never> = {
|
|
|
55
56
|
name?: string;
|
|
56
57
|
region?: Region | LegacyRegion | TRegion;
|
|
57
58
|
matchLevel?: MatchLevel;
|
|
59
|
+
exact?: ExactMatchSettings;
|
|
58
60
|
useDom?: boolean;
|
|
59
61
|
sendDom?: boolean;
|
|
60
62
|
enablePatterns?: boolean;
|
|
@@ -173,7 +175,7 @@ export declare class CheckSettingsBaseFluent<TRegion = never> {
|
|
|
173
175
|
dynamicRegions(...regions: (CodedDynamicRegion<TRegion> | Region | TRegion)[]): this;
|
|
174
176
|
matchLevel(matchLevel: MatchLevel): typeof this;
|
|
175
177
|
layout(): typeof this;
|
|
176
|
-
exact(): typeof this;
|
|
178
|
+
exact(exact?: ExactMatchSettings): typeof this;
|
|
177
179
|
strict(): typeof this;
|
|
178
180
|
ignoreColors(): typeof this;
|
|
179
181
|
dynamic(): typeof this;
|
|
@@ -1,30 +1,37 @@
|
|
|
1
1
|
/** @undocumented */
|
|
2
2
|
export type ExactMatchSettings = {
|
|
3
|
-
minDiffIntensity
|
|
4
|
-
minDiffWidth
|
|
5
|
-
minDiffHeight
|
|
6
|
-
matchThreshold
|
|
3
|
+
minDiffIntensity?: number;
|
|
4
|
+
minDiffWidth?: number;
|
|
5
|
+
minDiffHeight?: number;
|
|
6
|
+
matchThreshold?: number;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Validates the tuning params supplied to the Exact match level. Only the fields
|
|
10
|
+
* present on `exact` are checked (all fields are optional): the three `minDiff*`
|
|
11
|
+
* fields must be integers, `matchThreshold` may be any number (int or float).
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateExactMatchSettings(exact: ExactMatchSettings): void;
|
|
8
15
|
/** @undocumented */
|
|
9
|
-
export declare class ExactMatchSettingsData implements
|
|
16
|
+
export declare class ExactMatchSettingsData implements ExactMatchSettings {
|
|
10
17
|
private _settings;
|
|
11
18
|
constructor(settings: ExactMatchSettings);
|
|
12
|
-
get minDiffIntensity(): number;
|
|
13
|
-
set minDiffIntensity(minDiffIntensity: number);
|
|
14
|
-
getMinDiffIntensity(): number;
|
|
15
|
-
setMinDiffIntensity(value: number): void;
|
|
16
|
-
get minDiffWidth(): number;
|
|
17
|
-
set minDiffWidth(minDiffWidth: number);
|
|
18
|
-
getMinDiffWidth(): number;
|
|
19
|
-
setMinDiffWidth(value: number): void;
|
|
20
|
-
get minDiffHeight(): number;
|
|
21
|
-
set minDiffHeight(minDiffHeight: number);
|
|
22
|
-
getMinDiffHeight(): number;
|
|
23
|
-
setMinDiffHeight(value: number): void;
|
|
24
|
-
get matchThreshold(): number;
|
|
25
|
-
set matchThreshold(matchThreshold: number);
|
|
26
|
-
getMatchThreshold(): number;
|
|
27
|
-
setMatchThreshold(value: number): void;
|
|
19
|
+
get minDiffIntensity(): number | undefined;
|
|
20
|
+
set minDiffIntensity(minDiffIntensity: number | undefined);
|
|
21
|
+
getMinDiffIntensity(): number | undefined;
|
|
22
|
+
setMinDiffIntensity(value: number | undefined): void;
|
|
23
|
+
get minDiffWidth(): number | undefined;
|
|
24
|
+
set minDiffWidth(minDiffWidth: number | undefined);
|
|
25
|
+
getMinDiffWidth(): number | undefined;
|
|
26
|
+
setMinDiffWidth(value: number | undefined): void;
|
|
27
|
+
get minDiffHeight(): number | undefined;
|
|
28
|
+
set minDiffHeight(minDiffHeight: number | undefined);
|
|
29
|
+
getMinDiffHeight(): number | undefined;
|
|
30
|
+
setMinDiffHeight(value: number | undefined): void;
|
|
31
|
+
get matchThreshold(): number | undefined;
|
|
32
|
+
set matchThreshold(matchThreshold: number | undefined);
|
|
33
|
+
getMatchThreshold(): number | undefined;
|
|
34
|
+
setMatchThreshold(value: number | undefined): void;
|
|
28
35
|
/** @internal */
|
|
29
36
|
toObject(): ExactMatchSettings;
|
|
30
37
|
/** @internal */
|