@applitools/eyes-browser 1.4.2 → 1.4.5
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 +225 -0
- package/dist/index.js +661 -429
- package/package.json +2 -2
- package/types/input/CheckSettings.d.ts +53 -48
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-browser",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.5",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"browser",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@applitools/eyes": "1.
|
|
51
|
+
"@applitools/eyes": "1.20.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/node": "^12.20.55",
|
|
@@ -92,22 +92,24 @@ export type CheckSettingsAutomation<TSpec extends Core.SpecType> = CheckSettings
|
|
|
92
92
|
};
|
|
93
93
|
export declare class CheckSettingsBaseFluent<TRegion = never> {
|
|
94
94
|
protected _settings: CheckSettingsBase<TRegion>;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
protected parent?: this;
|
|
96
|
+
protected childs: this[];
|
|
97
|
+
constructor(settings?: CheckSettingsBase<TRegion> | CheckSettingsBaseFluent<TRegion>, parent?: CheckSettingsBaseFluent<TRegion>);
|
|
98
|
+
region(region: Region | LegacyRegion | TRegion): typeof this;
|
|
99
|
+
name(name: string): typeof this;
|
|
98
100
|
withName(name: string): this;
|
|
99
|
-
ignoreRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): this;
|
|
100
|
-
ignoreRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
101
|
+
ignoreRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): typeof this;
|
|
102
|
+
ignoreRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): typeof this;
|
|
101
103
|
/** @deprecated */
|
|
102
104
|
ignore(region: Region | LegacyRegion | TRegion): this;
|
|
103
105
|
/** @deprecated */
|
|
104
|
-
ignores(...regions: (Region | LegacyRegion | TRegion)[]): this;
|
|
105
|
-
layoutRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): this;
|
|
106
|
-
layoutRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
107
|
-
strictRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): this;
|
|
108
|
-
strictRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
109
|
-
contentRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): this;
|
|
110
|
-
contentRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
106
|
+
ignores(...regions: (Region | LegacyRegion | TRegion)[]): typeof this;
|
|
107
|
+
layoutRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): typeof this;
|
|
108
|
+
layoutRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): typeof this;
|
|
109
|
+
strictRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): typeof this;
|
|
110
|
+
strictRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): typeof this;
|
|
111
|
+
contentRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): typeof this;
|
|
112
|
+
contentRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): typeof this;
|
|
111
113
|
floatingRegion(region: CodedFloatingRegion<TRegion>): this;
|
|
112
114
|
floatingRegion(region: LegacyCodedFloatingRegion<TRegion>): this;
|
|
113
115
|
floatingRegion(region: Region | LegacyRegion | TRegion, maxUpOffset?: number, maxDownOffset?: number, maxLeftOffset?: number, maxRightOffset?: number): this;
|
|
@@ -125,36 +127,39 @@ export declare class CheckSettingsBaseFluent<TRegion = never> {
|
|
|
125
127
|
accessibilityRegion(region: Region | LegacyRegion | TRegion, type?: AccessibilityRegionType): this;
|
|
126
128
|
accessibilityRegions(...regions: (CodedAccessibilityRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
127
129
|
accessibilityRegions(type: AccessibilityRegionType, ...regions: (Region | LegacyRegion | TRegion)[]): this;
|
|
128
|
-
matchLevel(matchLevel: MatchLevel): this;
|
|
129
|
-
layout(): this;
|
|
130
|
-
exact(): this;
|
|
131
|
-
strict(): this;
|
|
132
|
-
ignoreColors(): this;
|
|
130
|
+
matchLevel(matchLevel: MatchLevel): typeof this;
|
|
131
|
+
layout(): typeof this;
|
|
132
|
+
exact(): typeof this;
|
|
133
|
+
strict(): typeof this;
|
|
134
|
+
ignoreColors(): typeof this;
|
|
133
135
|
/** @deprecated */
|
|
134
|
-
content(): this;
|
|
135
|
-
enablePatterns(enablePatterns?: boolean): this;
|
|
136
|
-
ignoreDisplacements(ignoreDisplacements?: boolean): this;
|
|
137
|
-
ignoreCaret(ignoreCaret?: boolean): this;
|
|
138
|
-
useDom(useDom?: boolean): this;
|
|
139
|
-
sendDom(sendDom?: boolean): this;
|
|
140
|
-
pageId(pageId: string): this;
|
|
141
|
-
variationGroupId(variationGroupId: string): this;
|
|
136
|
+
content(): typeof this;
|
|
137
|
+
enablePatterns(enablePatterns?: boolean): typeof this;
|
|
138
|
+
ignoreDisplacements(ignoreDisplacements?: boolean): typeof this;
|
|
139
|
+
ignoreCaret(ignoreCaret?: boolean): typeof this;
|
|
140
|
+
useDom(useDom?: boolean): typeof this;
|
|
141
|
+
sendDom(sendDom?: boolean): typeof this;
|
|
142
|
+
pageId(pageId: string): typeof this;
|
|
143
|
+
variationGroupId(variationGroupId: string): typeof this;
|
|
142
144
|
/** @internal */
|
|
143
145
|
toObject(): CheckSettingsBase<TRegion>;
|
|
144
146
|
/** @internal */
|
|
145
147
|
toString(): string;
|
|
148
|
+
/** @internal */
|
|
149
|
+
protected assumesMutability(): true | undefined;
|
|
150
|
+
protected static makeMutableTreeProxy<K, T extends CheckSettingsBaseFluent<K>>(self: T, ctor: new (...args: any[]) => T): T;
|
|
146
151
|
}
|
|
147
152
|
export declare class CheckSettingsImageFluent extends CheckSettingsBaseFluent {
|
|
148
153
|
protected _target: Image;
|
|
149
|
-
constructor(settings?: CheckSettingsImage | CheckSettingsImageFluent, target?: Image);
|
|
150
|
-
image(image: Buffer | URL | string): this;
|
|
151
|
-
buffer(imageBuffer: Buffer): this;
|
|
152
|
-
base64(imageBase64: Buffer): this;
|
|
153
|
-
path(imagePath: string): this;
|
|
154
|
-
url(imageUrl: URL | string): this;
|
|
155
|
-
name(name: string): this;
|
|
156
|
-
withDom(dom: string): this;
|
|
157
|
-
withLocation(locationInViewport: Location): this;
|
|
154
|
+
constructor(settings?: CheckSettingsImage | CheckSettingsImageFluent, target?: Image, parent?: CheckSettingsImageFluent);
|
|
155
|
+
image(image: Buffer | URL | string): typeof this;
|
|
156
|
+
buffer(imageBuffer: Buffer): typeof this;
|
|
157
|
+
base64(imageBase64: Buffer): typeof this;
|
|
158
|
+
path(imagePath: string): typeof this;
|
|
159
|
+
url(imageUrl: URL | string): typeof this;
|
|
160
|
+
name(name: string): typeof this;
|
|
161
|
+
withDom(dom: string): typeof this;
|
|
162
|
+
withLocation(locationInViewport: Location): typeof this;
|
|
158
163
|
/** @internal */
|
|
159
164
|
toJSON(): {
|
|
160
165
|
target: Image;
|
|
@@ -170,24 +175,24 @@ export declare class CheckSettingsAutomationFluent<TSpec extends Core.SpecType =
|
|
|
170
175
|
protected _isFrameReference(value: any): value is FrameReference<TSpec>;
|
|
171
176
|
constructor(settings?: CheckSettingsAutomation<TSpec> | CheckSettingsAutomationFluent<TSpec>);
|
|
172
177
|
/** @internal */
|
|
173
|
-
constructor(settings?: CheckSettingsAutomation<TSpec> | CheckSettingsAutomationFluent<TSpec>, spec?: Core.SpecDriver<TSpec>);
|
|
178
|
+
constructor(settings?: CheckSettingsAutomation<TSpec> | CheckSettingsAutomationFluent<TSpec>, spec?: Core.SpecDriver<TSpec>, parent?: CheckSettingsAutomationFluent<TSpec>);
|
|
174
179
|
region(region: RegionReference<TSpec>): this;
|
|
175
|
-
shadow(selector: SelectorReference<TSpec>): this;
|
|
180
|
+
shadow(selector: SelectorReference<TSpec>): typeof this;
|
|
176
181
|
frame(context: ContextReference<TSpec>): this;
|
|
177
182
|
frame(frame: FrameReference<TSpec>, scrollRootElement?: ElementReference<TSpec>): this;
|
|
178
|
-
webview(webview?: string | boolean): this;
|
|
179
|
-
scrollRootElement(scrollRootElement: ElementReference<TSpec>): this;
|
|
180
|
-
fully(fully?: boolean): this;
|
|
183
|
+
webview(webview?: string | boolean): typeof this;
|
|
184
|
+
scrollRootElement(scrollRootElement: ElementReference<TSpec>): typeof this;
|
|
185
|
+
fully(fully?: boolean): typeof this;
|
|
181
186
|
/** @deprecated */
|
|
182
187
|
stitchContent(stitchContent?: boolean): this;
|
|
183
|
-
disableBrowserFetching(disableBrowserFetching: boolean): this;
|
|
188
|
+
disableBrowserFetching(disableBrowserFetching: boolean): typeof this;
|
|
184
189
|
layoutBreakpoints(breakpoints?: boolean | number[], settings?: {
|
|
185
190
|
reload?: boolean;
|
|
186
|
-
}): this;
|
|
187
|
-
hook(name: string, script: string): this;
|
|
188
|
-
beforeRenderScreenshotHook(script: string): this;
|
|
191
|
+
}): typeof this;
|
|
192
|
+
hook(name: string, script: string): typeof this;
|
|
193
|
+
beforeRenderScreenshotHook(script: string): typeof this;
|
|
189
194
|
/** @deprecated */
|
|
190
|
-
webHook(script: string): this;
|
|
195
|
+
webHook(script: string): typeof this;
|
|
191
196
|
ufgOption(key: string, value: any): this;
|
|
192
197
|
ufgOptions(options: {
|
|
193
198
|
[key: string]: any;
|
|
@@ -205,10 +210,10 @@ export declare class CheckSettingsAutomationFluent<TSpec extends Core.SpecType =
|
|
|
205
210
|
[key: string]: any;
|
|
206
211
|
}): this;
|
|
207
212
|
useSystemScreenshot(useSystemScreenshot?: boolean): this;
|
|
208
|
-
timeout(timeout: number): this;
|
|
209
|
-
waitBeforeCapture(waitBeforeCapture: number): this;
|
|
210
|
-
lazyLoad(options?: LazyLoadOptions | boolean): this;
|
|
211
|
-
densityMetrics(options: DensityMetrics): this;
|
|
213
|
+
timeout(timeout: number): typeof this;
|
|
214
|
+
waitBeforeCapture(waitBeforeCapture: number): typeof this;
|
|
215
|
+
lazyLoad(options?: LazyLoadOptions | boolean): typeof this;
|
|
216
|
+
densityMetrics(options: DensityMetrics): typeof this;
|
|
212
217
|
/** @internal */
|
|
213
218
|
toJSON(): {
|
|
214
219
|
target: undefined;
|