@applitools/eyes 1.33.3 → 1.33.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/dist/BatchClose.js +84 -0
- package/dist/Eyes.js +750 -0
- package/dist/Logger.js +122 -0
- package/dist/Runners.js +130 -0
- package/dist/SDK.js +45 -0
- package/dist/SessionEventHandlers.js +193 -0
- package/dist/cli/cli.js +56 -0
- package/dist/cli/load-config.js +73 -0
- package/dist/enums/AccessibilityGuidelinesVersion.js +9 -0
- package/dist/enums/AccessibilityLevel.js +9 -0
- package/dist/enums/AccessibilityRegionType.js +12 -0
- package/dist/enums/AccessibilityStatus.js +9 -0
- package/dist/enums/BrowserType.js +23 -0
- package/dist/enums/CorsIframeHandle.js +10 -0
- package/dist/enums/DeviceName.js +105 -0
- package/dist/enums/DynamicTextType.js +13 -0
- package/dist/enums/FailureReport.js +8 -0
- package/dist/enums/IosDeviceName.js +47 -0
- package/dist/enums/IosMultiDeviceTarget.js +30 -0
- package/dist/enums/IosVersion.js +10 -0
- package/dist/enums/MatchLevel.js +15 -0
- package/dist/enums/ScreenOrientation.js +8 -0
- package/dist/enums/SessionType.js +8 -0
- package/dist/enums/StitchMode.js +11 -0
- package/dist/enums/TestResultsStatus.js +9 -0
- package/dist/errors/DiffsFoundError.js +38 -0
- package/dist/errors/EyesError.js +6 -0
- package/dist/errors/NewTestError.js +38 -0
- package/dist/errors/TestFailedError.js +47 -0
- package/dist/index.js +128 -0
- package/dist/input/AUTProxySettings.js +2 -0
- package/dist/input/AccessibilityMatchSettings.js +109 -0
- package/dist/input/AccessibilitySettings.js +2 -0
- package/dist/input/BatchInfo.js +153 -0
- package/dist/input/CheckSettings.js +663 -0
- package/dist/input/Configuration.js +1179 -0
- package/dist/input/CutProvider.js +132 -0
- package/dist/input/DebugScreenshotProvider.js +2 -0
- package/dist/input/DensityMetrics.js +2 -0
- package/dist/input/ExactMatchSettings.js +102 -0
- package/dist/input/EyesSelector.js +2 -0
- package/dist/input/FloatingMatchSettings.js +152 -0
- package/dist/input/Image.js +2 -0
- package/dist/input/ImageMatchSettings.js +271 -0
- package/dist/input/ImageRotation.js +59 -0
- package/dist/input/LatestCommitInfo.js +2 -0
- package/dist/input/LazyLoadOptions.js +2 -0
- package/dist/input/Location.js +74 -0
- package/dist/input/LogHandler.js +90 -0
- package/dist/input/OCRRegion.js +2 -0
- package/dist/input/OCRSettings.js +2 -0
- package/dist/input/PropertyData.js +76 -0
- package/dist/input/ProxySettings.js +77 -0
- package/dist/input/RectangleSize.js +74 -0
- package/dist/input/Region.js +135 -0
- package/dist/input/RenderInfo.js +2 -0
- package/dist/input/RunnerOptions.js +56 -0
- package/dist/input/VisualLocatorSettings.js +2 -0
- package/dist/output/ApiUrls.js +102 -0
- package/dist/output/AppUrls.js +66 -0
- package/dist/output/MatchResult.js +66 -0
- package/dist/output/SessionUrls.js +66 -0
- package/dist/output/StepInfo.js +118 -0
- package/dist/output/TestAccessibilityStatus.js +2 -0
- package/dist/output/TestResultContainer.js +49 -0
- package/dist/output/TestResults.js +378 -0
- package/dist/output/TestResultsSummary.js +49 -0
- package/dist/output/TextRegion.js +2 -0
- package/dist/output/ValidationInfo.js +60 -0
- package/dist/output/ValidationResult.js +53 -0
- package/package.json +1 -1
- package/types/BatchClose.d.ts +23 -0
- package/types/Eyes.d.ts +255 -0
- package/types/Logger.d.ts +30 -0
- package/types/Runners.d.ts +41 -0
- package/types/SDK.d.ts +20 -0
- package/types/SessionEventHandlers.d.ts +78 -0
- package/types/cli/cli.d.ts +2 -0
- package/types/cli/load-config.d.ts +1 -0
- package/types/enums/AccessibilityGuidelinesVersion.d.ts +5 -0
- package/types/enums/AccessibilityLevel.d.ts +5 -0
- package/types/enums/AccessibilityRegionType.d.ts +8 -0
- package/types/enums/AccessibilityStatus.d.ts +5 -0
- package/types/enums/BrowserType.d.ts +20 -0
- package/types/enums/CorsIframeHandle.d.ts +7 -0
- package/types/enums/DeviceName.d.ts +101 -0
- package/types/enums/DynamicTextType.d.ts +9 -0
- package/types/enums/FailureReport.d.ts +5 -0
- package/types/enums/IosDeviceName.d.ts +43 -0
- package/types/enums/IosMultiDeviceTarget.d.ts +26 -0
- package/types/enums/IosVersion.d.ts +7 -0
- package/types/enums/MatchLevel.d.ts +12 -0
- package/types/enums/ScreenOrientation.d.ts +5 -0
- package/types/enums/SessionType.d.ts +5 -0
- package/types/enums/StitchMode.d.ts +8 -0
- package/types/enums/TestResultsStatus.d.ts +6 -0
- package/types/errors/DiffsFoundError.d.ts +6 -0
- package/types/errors/EyesError.d.ts +2 -0
- package/types/errors/NewTestError.d.ts +6 -0
- package/types/errors/TestFailedError.d.ts +9 -0
- package/types/index.d.ts +60 -0
- package/types/input/AUTProxySettings.d.ts +5 -0
- package/types/input/AccessibilityMatchSettings.d.ts +34 -0
- package/types/input/AccessibilitySettings.d.ts +6 -0
- package/types/input/BatchInfo.d.ts +47 -0
- package/types/input/CheckSettings.d.ts +266 -0
- package/types/input/Configuration.d.ts +437 -0
- package/types/input/CutProvider.d.ts +44 -0
- package/types/input/DebugScreenshotProvider.d.ts +5 -0
- package/types/input/DensityMetrics.d.ts +5 -0
- package/types/input/ExactMatchSettings.d.ts +34 -0
- package/types/input/EyesSelector.d.ts +6 -0
- package/types/input/FloatingMatchSettings.d.ts +50 -0
- package/types/input/Image.d.ts +11 -0
- package/types/input/ImageMatchSettings.d.ts +95 -0
- package/types/input/ImageRotation.d.ts +15 -0
- package/types/input/LatestCommitInfo.d.ts +4 -0
- package/types/input/LazyLoadOptions.d.ts +5 -0
- package/types/input/Location.d.ts +23 -0
- package/types/input/LogHandler.d.ts +45 -0
- package/types/input/OCRRegion.d.ts +9 -0
- package/types/input/OCRSettings.d.ts +6 -0
- package/types/input/PropertyData.d.ts +23 -0
- package/types/input/ProxySettings.d.ts +25 -0
- package/types/input/RectangleSize.d.ts +23 -0
- package/types/input/Region.d.ts +46 -0
- package/types/input/RenderInfo.d.ts +47 -0
- package/types/input/RunnerOptions.d.ts +21 -0
- package/types/input/VisualLocatorSettings.d.ts +4 -0
- package/types/output/ApiUrls.d.ts +41 -0
- package/types/output/AppUrls.d.ts +23 -0
- package/types/output/MatchResult.d.ts +23 -0
- package/types/output/SessionUrls.d.ts +23 -0
- package/types/output/StepInfo.d.ts +50 -0
- package/types/output/TestAccessibilityStatus.d.ts +8 -0
- package/types/output/TestResultContainer.d.ts +31 -0
- package/types/output/TestResults.d.ts +186 -0
- package/types/output/TestResultsSummary.d.ts +18 -0
- package/types/output/TextRegion.d.ts +7 -0
- package/types/output/ValidationInfo.d.ts +21 -0
- package/types/output/ValidationResult.d.ts +18 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { MatchLevel, MatchLevelEnum } from '../enums/MatchLevel';
|
|
2
|
+
import { ExactMatchSettings, ExactMatchSettingsData } from './ExactMatchSettings';
|
|
3
|
+
import { FloatingMatchSettings, FloatingMatchSettingsData } from './FloatingMatchSettings';
|
|
4
|
+
import { AccessibilityMatchSettings, AccessibilityMatchSettingsData } from './AccessibilityMatchSettings';
|
|
5
|
+
import { Region, RegionData } from './Region';
|
|
6
|
+
import { AccessibilitySettings } from './AccessibilitySettings';
|
|
7
|
+
/** @undocumented */
|
|
8
|
+
export type ImageMatchSettings = {
|
|
9
|
+
exact?: ExactMatchSettings;
|
|
10
|
+
matchLevel?: MatchLevel;
|
|
11
|
+
ignoreCaret?: boolean;
|
|
12
|
+
useDom?: boolean;
|
|
13
|
+
enablePatterns?: boolean;
|
|
14
|
+
ignoreDisplacements?: boolean;
|
|
15
|
+
ignoreRegions?: Region[];
|
|
16
|
+
layoutRegions?: Region[];
|
|
17
|
+
strictRegions?: Region[];
|
|
18
|
+
contentRegions?: Region[];
|
|
19
|
+
floatingRegions?: (Region | FloatingMatchSettings)[];
|
|
20
|
+
accessibilityRegions?: (Region | AccessibilityMatchSettings)[];
|
|
21
|
+
accessibilitySettings?: AccessibilitySettings;
|
|
22
|
+
};
|
|
23
|
+
/** @undocumented */
|
|
24
|
+
export declare class ImageMatchSettingsData implements Required<ImageMatchSettings> {
|
|
25
|
+
private _settings;
|
|
26
|
+
constructor(settings?: ImageMatchSettings);
|
|
27
|
+
get exact(): ExactMatchSettings;
|
|
28
|
+
set exact(exact: ExactMatchSettings);
|
|
29
|
+
getExact(): ExactMatchSettingsData;
|
|
30
|
+
setExact(exact: ExactMatchSettings): void;
|
|
31
|
+
get matchLevel(): MatchLevel;
|
|
32
|
+
set matchLevel(matchLevel: MatchLevel);
|
|
33
|
+
getMatchLevel(): MatchLevelEnum;
|
|
34
|
+
setMatchLevel(matchLevel: MatchLevel): void;
|
|
35
|
+
get ignoreCaret(): boolean;
|
|
36
|
+
set ignoreCaret(ignoreCaret: boolean);
|
|
37
|
+
getIgnoreCaret(): boolean;
|
|
38
|
+
setIgnoreCaret(ignoreCaret: boolean): void;
|
|
39
|
+
get useDom(): boolean;
|
|
40
|
+
set useDom(useDom: boolean);
|
|
41
|
+
getUseDom(): boolean;
|
|
42
|
+
setUseDom(useDom: boolean): void;
|
|
43
|
+
get enablePatterns(): boolean;
|
|
44
|
+
set enablePatterns(enablePatterns: boolean);
|
|
45
|
+
getEnablePatterns(): boolean;
|
|
46
|
+
setEnablePatterns(enablePatterns: boolean): void;
|
|
47
|
+
get ignoreDisplacements(): boolean;
|
|
48
|
+
set ignoreDisplacements(ignoreDisplacements: boolean);
|
|
49
|
+
getIgnoreDisplacements(): boolean;
|
|
50
|
+
setIgnoreDisplacements(ignoreDisplacements: boolean): void;
|
|
51
|
+
get ignoreRegions(): Region[];
|
|
52
|
+
set ignoreRegions(ignoreRegions: Region[]);
|
|
53
|
+
getIgnoreRegions(): RegionData[];
|
|
54
|
+
setIgnoreRegions(ignoreRegions: Region[]): void;
|
|
55
|
+
get layoutRegions(): Region[];
|
|
56
|
+
set layoutRegions(layoutRegions: Region[]);
|
|
57
|
+
get layout(): Region[];
|
|
58
|
+
set layout(layoutRegions: Region[]);
|
|
59
|
+
getLayoutRegions(): RegionData[];
|
|
60
|
+
setLayoutRegions(layoutRegions: Region[]): void;
|
|
61
|
+
get strictRegions(): Region[];
|
|
62
|
+
set strictRegions(strictRegions: Region[]);
|
|
63
|
+
get strict(): Region[];
|
|
64
|
+
set strict(strictRegions: Region[]);
|
|
65
|
+
getStrictRegions(): RegionData[];
|
|
66
|
+
setStrictRegions(strictRegions: Region[]): void;
|
|
67
|
+
get contentRegions(): Region[];
|
|
68
|
+
set contentRegions(contentRegions: Region[]);
|
|
69
|
+
get content(): Region[];
|
|
70
|
+
set content(contentRegions: Region[]);
|
|
71
|
+
getContentRegions(): RegionData[];
|
|
72
|
+
setContentRegions(contentRegions: Region[]): void;
|
|
73
|
+
get floatingRegions(): (Region | FloatingMatchSettings)[];
|
|
74
|
+
set floatingRegions(floatingRegions: (Region | FloatingMatchSettings)[]);
|
|
75
|
+
get floating(): (Region | FloatingMatchSettings)[];
|
|
76
|
+
set floating(floatingRegions: (Region | FloatingMatchSettings)[]);
|
|
77
|
+
getFloatingRegions(): FloatingMatchSettingsData[];
|
|
78
|
+
setFloatingRegions(floatingRegions: FloatingMatchSettings[]): void;
|
|
79
|
+
get accessibilityRegions(): (Region | AccessibilityMatchSettings)[];
|
|
80
|
+
set accessibilityRegions(accessibilityRegions: (Region | AccessibilityMatchSettings)[]);
|
|
81
|
+
get accessibility(): (Region | AccessibilityMatchSettings)[];
|
|
82
|
+
set accessibility(accessibilityRegions: (Region | AccessibilityMatchSettings)[]);
|
|
83
|
+
getAccessibilityRegions(): AccessibilityMatchSettingsData[];
|
|
84
|
+
setAccessibilityRegions(accessibilityRegions: AccessibilityMatchSettings[]): void;
|
|
85
|
+
get accessibilitySettings(): AccessibilitySettings;
|
|
86
|
+
set accessibilitySettings(accessibilitySettings: AccessibilitySettings);
|
|
87
|
+
getAccessibilitySettings(): AccessibilitySettings;
|
|
88
|
+
setAccessibilitySettings(accessibilitySettings: AccessibilitySettings): void;
|
|
89
|
+
/** @internal */
|
|
90
|
+
toObject(): ImageMatchSettings;
|
|
91
|
+
/** @internal */
|
|
92
|
+
toJSON(): ImageMatchSettings;
|
|
93
|
+
/** @internal */
|
|
94
|
+
toString(): string;
|
|
95
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type ImageRotation = -270 | -180 | -90 | 0 | 90 | 180 | 270;
|
|
2
|
+
export declare class ImageRotationData {
|
|
3
|
+
private _rotation;
|
|
4
|
+
constructor(rotation: ImageRotation);
|
|
5
|
+
get rotation(): ImageRotation;
|
|
6
|
+
set rotation(rotation: ImageRotation);
|
|
7
|
+
getRotation(): ImageRotation;
|
|
8
|
+
setRotation(rotation: ImageRotation): void;
|
|
9
|
+
/** @internal */
|
|
10
|
+
[Symbol.toPrimitive](): ImageRotation;
|
|
11
|
+
/** @internal */
|
|
12
|
+
toJSON(): number;
|
|
13
|
+
/** @internal */
|
|
14
|
+
toString(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type Location = {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
export declare class LocationData implements Required<Location> {
|
|
6
|
+
private _location;
|
|
7
|
+
constructor(location: Location);
|
|
8
|
+
constructor(x: number, y: number);
|
|
9
|
+
get x(): number;
|
|
10
|
+
set x(x: number);
|
|
11
|
+
getX(): number;
|
|
12
|
+
setX(x: number): void;
|
|
13
|
+
get y(): number;
|
|
14
|
+
set y(y: number);
|
|
15
|
+
getY(): number;
|
|
16
|
+
setY(y: number): void;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toObject(): Location;
|
|
19
|
+
/** @internal */
|
|
20
|
+
toJSON(): Location;
|
|
21
|
+
/** @internal */
|
|
22
|
+
toString(): string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as logger from '@applitools/logger';
|
|
2
|
+
export type LogHandler = CustomLogHandler | FileLogHandler | ConsoleLogHandler;
|
|
3
|
+
export type CustomLogHandler = logger.CustomHandler;
|
|
4
|
+
export type FileLogHandler = logger.FileHandler;
|
|
5
|
+
export type ConsoleLogHandler = logger.ConsoleHandler;
|
|
6
|
+
export declare abstract class LogHandlerData implements CustomLogHandler {
|
|
7
|
+
private _verbose;
|
|
8
|
+
constructor(verbose?: boolean);
|
|
9
|
+
get verbose(): boolean;
|
|
10
|
+
set verbose(verbose: boolean);
|
|
11
|
+
getIsVerbose(): boolean;
|
|
12
|
+
setIsVerbose(verbose: boolean): void;
|
|
13
|
+
log(message: string): void;
|
|
14
|
+
abstract onMessage(message: string): void;
|
|
15
|
+
abstract open(): void;
|
|
16
|
+
abstract close(): void;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toJSON(): LogHandler;
|
|
19
|
+
}
|
|
20
|
+
export declare class FileLogHandlerData extends LogHandlerData implements FileLogHandler {
|
|
21
|
+
readonly type = "file";
|
|
22
|
+
readonly filename: string;
|
|
23
|
+
readonly append: boolean;
|
|
24
|
+
constructor(verbose?: boolean, filename?: string, append?: boolean);
|
|
25
|
+
onMessage(): void;
|
|
26
|
+
open(): void;
|
|
27
|
+
close(): void;
|
|
28
|
+
/** @internal */
|
|
29
|
+
toJSON(): LogHandler;
|
|
30
|
+
}
|
|
31
|
+
export declare class ConsoleLogHandlerData extends LogHandlerData implements ConsoleLogHandler {
|
|
32
|
+
readonly type = "console";
|
|
33
|
+
onMessage(): void;
|
|
34
|
+
open(): void;
|
|
35
|
+
close(): void;
|
|
36
|
+
/** @internal */
|
|
37
|
+
toJSON(): LogHandler;
|
|
38
|
+
}
|
|
39
|
+
export declare class NullLogHandlerData extends LogHandlerData {
|
|
40
|
+
onMessage(): void;
|
|
41
|
+
open(): void;
|
|
42
|
+
close(): void;
|
|
43
|
+
/** @internal */
|
|
44
|
+
toJSON(): LogHandler;
|
|
45
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SpecType } from '@applitools/core';
|
|
2
|
+
import { EyesSelector } from './EyesSelector';
|
|
3
|
+
import { Region } from './Region';
|
|
4
|
+
export type OCRRegion<TSpec extends SpecType = SpecType> = {
|
|
5
|
+
target: Region | TSpec['element'] | EyesSelector<TSpec['selector']>;
|
|
6
|
+
hint?: string;
|
|
7
|
+
minMatch?: number;
|
|
8
|
+
language?: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type PropertyData = {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class PropertyDataData implements Required<PropertyData> {
|
|
6
|
+
private _property;
|
|
7
|
+
constructor(property: PropertyData);
|
|
8
|
+
constructor(name: string, value: string);
|
|
9
|
+
get name(): string;
|
|
10
|
+
set name(name: string);
|
|
11
|
+
getName(): string;
|
|
12
|
+
setName(name: string): void;
|
|
13
|
+
get value(): string;
|
|
14
|
+
set value(value: string);
|
|
15
|
+
getValue(): string;
|
|
16
|
+
setValue(value: string): void;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toObject(): PropertyData;
|
|
19
|
+
/** @internal */
|
|
20
|
+
toJSON(): PropertyData;
|
|
21
|
+
/** @internal */
|
|
22
|
+
toString(): string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type ProxySettings = {
|
|
2
|
+
url: string;
|
|
3
|
+
username?: string;
|
|
4
|
+
password?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare class ProxySettingsData implements Required<ProxySettings> {
|
|
7
|
+
private _proxy;
|
|
8
|
+
constructor(proxy: ProxySettings);
|
|
9
|
+
constructor(url: string, username?: string, password?: string, deprecatedIsHttpOnly?: boolean);
|
|
10
|
+
get url(): string;
|
|
11
|
+
getUri(): string;
|
|
12
|
+
getUrl(): string;
|
|
13
|
+
get username(): string;
|
|
14
|
+
getUsername(): string;
|
|
15
|
+
get password(): string;
|
|
16
|
+
getPassword(): string;
|
|
17
|
+
get isHttpOnly(): boolean;
|
|
18
|
+
getIsHttpOnly(): boolean;
|
|
19
|
+
/** @internal */
|
|
20
|
+
toObject(): ProxySettings;
|
|
21
|
+
/** @internal */
|
|
22
|
+
toJSON(): ProxySettings;
|
|
23
|
+
/** @internal */
|
|
24
|
+
toString(): string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type RectangleSize = {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
};
|
|
5
|
+
export declare class RectangleSizeData implements Required<RectangleSize> {
|
|
6
|
+
private _size;
|
|
7
|
+
constructor(size: RectangleSize);
|
|
8
|
+
constructor(width: number, height: number);
|
|
9
|
+
get width(): number;
|
|
10
|
+
set width(width: number);
|
|
11
|
+
getWidth(): number;
|
|
12
|
+
setWidth(width: number): void;
|
|
13
|
+
get height(): number;
|
|
14
|
+
set height(height: number);
|
|
15
|
+
getHeight(): number;
|
|
16
|
+
setHeight(height: number): void;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toObject(): RectangleSize;
|
|
19
|
+
/** @internal */
|
|
20
|
+
toJSON(): RectangleSize;
|
|
21
|
+
/** @internal */
|
|
22
|
+
toString(): string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Location } from './Location';
|
|
2
|
+
import { RectangleSize } from './RectangleSize';
|
|
3
|
+
/** @deprecated */
|
|
4
|
+
export type LegacyRegion = {
|
|
5
|
+
left: number;
|
|
6
|
+
top: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
export type Region = Location & RectangleSize;
|
|
11
|
+
export declare class RegionData implements Required<Region> {
|
|
12
|
+
private _region;
|
|
13
|
+
constructor(region: Region);
|
|
14
|
+
constructor(location: Location, size: RectangleSize);
|
|
15
|
+
constructor(x: number, y: number, width: number, height: number);
|
|
16
|
+
get x(): number;
|
|
17
|
+
set x(x: number);
|
|
18
|
+
get left(): number;
|
|
19
|
+
set left(left: number);
|
|
20
|
+
getX(): number;
|
|
21
|
+
setX(x: number): void;
|
|
22
|
+
getLeft(): number;
|
|
23
|
+
setLeft(left: number): void;
|
|
24
|
+
get y(): number;
|
|
25
|
+
set y(y: number);
|
|
26
|
+
get top(): number;
|
|
27
|
+
set top(top: number);
|
|
28
|
+
getY(): number;
|
|
29
|
+
setY(y: number): void;
|
|
30
|
+
getTop(): number;
|
|
31
|
+
setTop(top: number): void;
|
|
32
|
+
get width(): number;
|
|
33
|
+
set width(width: number);
|
|
34
|
+
getWidth(): number;
|
|
35
|
+
setWidth(width: number): void;
|
|
36
|
+
get height(): number;
|
|
37
|
+
set height(height: number);
|
|
38
|
+
getHeight(): number;
|
|
39
|
+
setHeight(height: number): void;
|
|
40
|
+
/** @internal */
|
|
41
|
+
toObject(): Region;
|
|
42
|
+
/** @internal */
|
|
43
|
+
toJSON(): Region;
|
|
44
|
+
/** @internal */
|
|
45
|
+
toString(): string;
|
|
46
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BrowserType } from '../enums/BrowserType';
|
|
2
|
+
import { DeviceName } from '../enums/DeviceName';
|
|
3
|
+
import { IosDeviceName } from '../enums/IosDeviceName';
|
|
4
|
+
import { IosVersion } from '../enums/IosVersion';
|
|
5
|
+
import { ScreenOrientation } from '../enums/ScreenOrientation';
|
|
6
|
+
import { IosMultiDeviceTarget } from '../enums/IosMultiDeviceTarget';
|
|
7
|
+
type RenderInfoBase = {
|
|
8
|
+
/** @internal */
|
|
9
|
+
hostOS?: string;
|
|
10
|
+
/** @internal */
|
|
11
|
+
hostOSInfo?: string;
|
|
12
|
+
/** @internal */
|
|
13
|
+
hostApp?: string;
|
|
14
|
+
/** @internal */
|
|
15
|
+
hostAppInfo?: string;
|
|
16
|
+
};
|
|
17
|
+
export type DesktopBrowserInfo = {
|
|
18
|
+
name?: BrowserType;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
};
|
|
22
|
+
export type ChromeEmulationInfo = {
|
|
23
|
+
chromeEmulationInfo: {
|
|
24
|
+
deviceName: DeviceName;
|
|
25
|
+
screenOrientation?: ScreenOrientation;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
/** @deprecated */
|
|
29
|
+
export type ChromeEmulationInfoLegacy = {
|
|
30
|
+
deviceName: DeviceName;
|
|
31
|
+
screenOrientation?: ScreenOrientation;
|
|
32
|
+
};
|
|
33
|
+
export type IOSDeviceInfo = {
|
|
34
|
+
iosDeviceInfo: {
|
|
35
|
+
deviceName: IosDeviceName;
|
|
36
|
+
iosVersion?: IosVersion;
|
|
37
|
+
screenOrientation?: ScreenOrientation;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type IOSMultiDeviceInfo = {
|
|
41
|
+
iosDeviceInfo: {
|
|
42
|
+
deviceName: IosMultiDeviceTarget;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type RenderInfoLegacy = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | ChromeEmulationInfoLegacy);
|
|
46
|
+
export type RenderInfo = RenderInfoBase & (DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | IOSMultiDeviceInfo);
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type RunnerOptions = {
|
|
2
|
+
testConcurrency?: number;
|
|
3
|
+
fetchConcurrency?: number;
|
|
4
|
+
/** @internal */
|
|
5
|
+
legacyConcurrency?: number;
|
|
6
|
+
removeDuplicateTests?: boolean;
|
|
7
|
+
maskLog?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/** @deprecated */
|
|
10
|
+
export declare class RunnerOptionsFluent {
|
|
11
|
+
private _options;
|
|
12
|
+
testConcurrency(concurrency: number): this;
|
|
13
|
+
/** @internal */
|
|
14
|
+
toObject(): RunnerOptions;
|
|
15
|
+
/** @internal */
|
|
16
|
+
toJSON(): RunnerOptions;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toString(): string;
|
|
19
|
+
}
|
|
20
|
+
/** @deprecated */
|
|
21
|
+
export declare function RunnerOptionsFluentInit(): RunnerOptionsFluent;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type ApiUrls = {
|
|
2
|
+
readonly baselineImage: string;
|
|
3
|
+
readonly currentImage: string;
|
|
4
|
+
readonly checkpointImage: string;
|
|
5
|
+
readonly checkpointImageThumbnail: string;
|
|
6
|
+
readonly diffImage: string;
|
|
7
|
+
readonly sideBySideImage: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class ApiUrlsData implements Required<ApiUrls> {
|
|
10
|
+
private _urls;
|
|
11
|
+
/** @internal */
|
|
12
|
+
constructor(urls: ApiUrls);
|
|
13
|
+
get baselineImage(): string;
|
|
14
|
+
getBaselineImage(): string;
|
|
15
|
+
/** @deprecated */
|
|
16
|
+
setBaselineImage(setBaselineImage: string): void;
|
|
17
|
+
get currentImage(): string;
|
|
18
|
+
getCurrentImage(): string;
|
|
19
|
+
/** @deprecated */
|
|
20
|
+
setCurrentImage(currentImage: string): void;
|
|
21
|
+
get checkpointImage(): string;
|
|
22
|
+
getCheckpointImage(): string;
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
setCheckpointImage(checkpointImage: string): void;
|
|
25
|
+
get checkpointImageThumbnail(): string;
|
|
26
|
+
getCheckpointImageThumbnail(): string;
|
|
27
|
+
/** @deprecated */
|
|
28
|
+
setCheckpointImageThumbnail(checkpointImageThumbnail: string): void;
|
|
29
|
+
get diffImage(): string;
|
|
30
|
+
getDiffImage(): string;
|
|
31
|
+
/** @deprecated */
|
|
32
|
+
setDiffImage(diffImage: string): void;
|
|
33
|
+
get sideBySideImage(): string;
|
|
34
|
+
getSideBySideImage(): string;
|
|
35
|
+
/** @internal */
|
|
36
|
+
toObject(): ApiUrls;
|
|
37
|
+
/** @internal */
|
|
38
|
+
toJSON(): ApiUrls;
|
|
39
|
+
/** @internal */
|
|
40
|
+
toString(): string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type AppUrls = {
|
|
2
|
+
readonly step: string;
|
|
3
|
+
readonly stepEditor: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class AppUrlsData implements Required<AppUrls> {
|
|
6
|
+
private _urls;
|
|
7
|
+
/** @internal */
|
|
8
|
+
constructor(urls: AppUrls);
|
|
9
|
+
get step(): string;
|
|
10
|
+
getStep(): string;
|
|
11
|
+
/** @deprecated */
|
|
12
|
+
setStep(step: string): void;
|
|
13
|
+
get stepEditor(): string;
|
|
14
|
+
getStepEditor(): string;
|
|
15
|
+
/** @deprecated */
|
|
16
|
+
setStepEditor(stepEditor: string): void;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toObject(): AppUrls;
|
|
19
|
+
/** @internal */
|
|
20
|
+
toJSON(): AppUrls;
|
|
21
|
+
/** @internal */
|
|
22
|
+
toString(): string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type MatchResult = {
|
|
2
|
+
readonly asExpected?: boolean;
|
|
3
|
+
readonly windowId?: number;
|
|
4
|
+
};
|
|
5
|
+
export declare class MatchResultData implements Required<MatchResult> {
|
|
6
|
+
private _result;
|
|
7
|
+
/** @internal */
|
|
8
|
+
constructor(result: MatchResult);
|
|
9
|
+
get asExpected(): boolean;
|
|
10
|
+
getAsExpected(): boolean;
|
|
11
|
+
/** @deprecated */
|
|
12
|
+
setAsExpected(asExpected: boolean): void;
|
|
13
|
+
get windowId(): number;
|
|
14
|
+
getWindowId(): number;
|
|
15
|
+
/** @deprecated */
|
|
16
|
+
setWindowId(windowId: number): void;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toObject(): MatchResult;
|
|
19
|
+
/** @internal */
|
|
20
|
+
toJSON(): MatchResult;
|
|
21
|
+
/** @internal */
|
|
22
|
+
toString(): string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type SessionUrls = {
|
|
2
|
+
readonly batch: string;
|
|
3
|
+
readonly session: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class SessionUrlsData implements Required<SessionUrls> {
|
|
6
|
+
private _urls;
|
|
7
|
+
/** @internal */
|
|
8
|
+
constructor(urls: SessionUrls);
|
|
9
|
+
get batch(): string;
|
|
10
|
+
getBatch(): string;
|
|
11
|
+
/** @deprecated */
|
|
12
|
+
setBatch(batch: string): void;
|
|
13
|
+
get session(): string;
|
|
14
|
+
getSession(): string;
|
|
15
|
+
/** @deprecated */
|
|
16
|
+
setSession(session: string): void;
|
|
17
|
+
/** @internal */
|
|
18
|
+
toObject(): SessionUrls;
|
|
19
|
+
/** @internal */
|
|
20
|
+
toJSON(): SessionUrls;
|
|
21
|
+
/** @internal */
|
|
22
|
+
toString(): string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AppUrls, AppUrlsData } from './AppUrls';
|
|
2
|
+
import { ApiUrls, ApiUrlsData } from './ApiUrls';
|
|
3
|
+
export type StepInfo = {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly isDifferent: boolean;
|
|
6
|
+
readonly hasBaselineImage: boolean;
|
|
7
|
+
readonly hasCurrentImage: boolean;
|
|
8
|
+
readonly appUrls: AppUrls;
|
|
9
|
+
readonly apiUrls: ApiUrls;
|
|
10
|
+
readonly renderId: string[];
|
|
11
|
+
};
|
|
12
|
+
export declare class StepInfoData implements Required<StepInfo> {
|
|
13
|
+
private _info;
|
|
14
|
+
/** @internal */
|
|
15
|
+
constructor(info: StepInfo);
|
|
16
|
+
get name(): string;
|
|
17
|
+
getName(): string;
|
|
18
|
+
/** @deprecated */
|
|
19
|
+
setName(value: string): void;
|
|
20
|
+
get isDifferent(): boolean;
|
|
21
|
+
getIsDifferent(): boolean;
|
|
22
|
+
/** @deprecated */
|
|
23
|
+
setIsDifferent(value: boolean): void;
|
|
24
|
+
get hasBaselineImage(): boolean;
|
|
25
|
+
getHasBaselineImage(): boolean;
|
|
26
|
+
/** @deprecated */
|
|
27
|
+
setHasBaselineImage(value: boolean): void;
|
|
28
|
+
get hasCurrentImage(): boolean;
|
|
29
|
+
getHasCurrentImage(): boolean;
|
|
30
|
+
/** @deprecated */
|
|
31
|
+
setHasCurrentImage(hasCurrentImage: boolean): void;
|
|
32
|
+
get appUrls(): AppUrls;
|
|
33
|
+
getAppUrls(): AppUrlsData;
|
|
34
|
+
/** @deprecated */
|
|
35
|
+
setAppUrls(appUrls: AppUrls): void;
|
|
36
|
+
get apiUrls(): ApiUrls;
|
|
37
|
+
getApiUrls(): ApiUrlsData;
|
|
38
|
+
/** @deprecated */
|
|
39
|
+
setApiUrls(apiUrls: ApiUrls): void;
|
|
40
|
+
get renderId(): string[];
|
|
41
|
+
getRenderId(): string[];
|
|
42
|
+
/** @deprecated */
|
|
43
|
+
setRenderId(renderId: string[]): void;
|
|
44
|
+
/** @internal */
|
|
45
|
+
toObject(): StepInfo;
|
|
46
|
+
/** @internal */
|
|
47
|
+
toJSON(): StepInfo;
|
|
48
|
+
/** @internal */
|
|
49
|
+
toString(): string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AccessibilityStatus } from '../enums/AccessibilityStatus';
|
|
2
|
+
import { AccessibilityLevel } from '../enums/AccessibilityLevel';
|
|
3
|
+
import { AccessibilityGuidelinesVersion } from '../enums/AccessibilityGuidelinesVersion';
|
|
4
|
+
export type TestAccessibilityStatus = {
|
|
5
|
+
readonly status: AccessibilityStatus;
|
|
6
|
+
readonly level: AccessibilityLevel;
|
|
7
|
+
readonly version: AccessibilityGuidelinesVersion;
|
|
8
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type * as Core from '@applitools/core';
|
|
2
|
+
import { TestResults, TestResultsData } from './TestResults';
|
|
3
|
+
import { ChromeEmulationInfo, ChromeEmulationInfoLegacy, DesktopBrowserInfo, IOSDeviceInfo } from '../input/RenderInfo';
|
|
4
|
+
type RenderInfo = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | ChromeEmulationInfoLegacy;
|
|
5
|
+
export type TestResultContainer = {
|
|
6
|
+
readonly exception?: Error;
|
|
7
|
+
readonly testResults?: TestResults;
|
|
8
|
+
readonly browserInfo?: RenderInfo;
|
|
9
|
+
};
|
|
10
|
+
export declare class TestResultContainerData implements Required<TestResultContainer> {
|
|
11
|
+
private _container;
|
|
12
|
+
private _core?;
|
|
13
|
+
/** @internal */
|
|
14
|
+
constructor(options: {
|
|
15
|
+
container: Core.TestResultContainer<'classic' | 'ufg'>;
|
|
16
|
+
core?: Core.Core<Core.SpecType, 'classic' | 'ufg'>;
|
|
17
|
+
});
|
|
18
|
+
get testResults(): TestResults;
|
|
19
|
+
getTestResults(): TestResultsData;
|
|
20
|
+
get exception(): Error;
|
|
21
|
+
getException(): Error;
|
|
22
|
+
get browserInfo(): RenderInfo;
|
|
23
|
+
getBrowserInfo(): RenderInfo;
|
|
24
|
+
/** @internal */
|
|
25
|
+
toObject(): TestResultContainer;
|
|
26
|
+
/** @internal */
|
|
27
|
+
toJSON(): Core.TestResultContainer<'classic' | 'ufg'>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
toString(): string;
|
|
30
|
+
}
|
|
31
|
+
export {};
|