@applitools/eyes-browser 1.0.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 +70 -0
- package/LICENSE +26 -0
- package/dist/index.js +93180 -0
- package/package.json +75 -0
- package/types/BatchClose.d.ts +23 -0
- package/types/Eyes.d.ts +249 -0
- package/types/Logger.d.ts +30 -0
- package/types/Runners.d.ts +40 -0
- package/types/SDK.d.ts +11 -0
- package/types/SessionEventHandlers.d.ts +78 -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/AndroidDeviceName.d.ts +28 -0
- package/types/enums/AndroidVersion.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 +73 -0
- package/types/enums/FailureReport.d.ts +5 -0
- package/types/enums/IosDeviceName.d.ts +64 -0
- package/types/enums/IosVersion.d.ts +7 -0
- package/types/enums/MatchLevel.d.ts +11 -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 +61 -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 +239 -0
- package/types/input/Configuration.d.ts +383 -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/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 +37 -0
- package/types/input/RunnerOptions.d.ts +20 -0
- package/types/input/VisualLocatorSettings.d.ts +4 -0
- package/types/output/ApiUrls.d.ts +38 -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,73 @@
|
|
|
1
|
+
export declare enum DeviceNameEnum {
|
|
2
|
+
Blackberry_PlayBook = "Blackberry PlayBook",
|
|
3
|
+
BlackBerry_Z30 = "BlackBerry Z30",
|
|
4
|
+
Galaxy_A5 = "Galaxy A5",
|
|
5
|
+
Galaxy_Note_10 = "Galaxy Note 10",
|
|
6
|
+
Galaxy_Note_10_Plus = "Galaxy Note 10 Plus",
|
|
7
|
+
Galaxy_Note_2 = "Galaxy Note 2",
|
|
8
|
+
Galaxy_Note_3 = "Galaxy Note 3",
|
|
9
|
+
Galaxy_Note_4 = "Galaxy Note 4",
|
|
10
|
+
Galaxy_Note_8 = "Galaxy Note 8",
|
|
11
|
+
Galaxy_Note_9 = "Galaxy Note 9",
|
|
12
|
+
Galaxy_S3 = "Galaxy S3",
|
|
13
|
+
Galaxy_S5 = "Galaxy S5",
|
|
14
|
+
Galaxy_S8 = "Galaxy S8",
|
|
15
|
+
Galaxy_S8_Plus = "Galaxy S8 Plus",
|
|
16
|
+
Galaxy_S9 = "Galaxy S9",
|
|
17
|
+
Galaxy_S9_Plus = "Galaxy S9 Plus",
|
|
18
|
+
Galaxy_S10 = "Galaxy S10",
|
|
19
|
+
Galaxy_S10_Plus = "Galaxy S10 Plus",
|
|
20
|
+
Galaxy_S20 = "Galaxy S20",
|
|
21
|
+
Galaxy_S21 = "Galaxy S21",
|
|
22
|
+
Galaxy_S21_Ultra = "Galaxy S21 Ultra",
|
|
23
|
+
Galaxy_S22 = "Galaxy S22",
|
|
24
|
+
Galaxy_S22_Ultra = "Galaxy S22 Ultra",
|
|
25
|
+
Galaxy_Tab_S7 = "Galaxy Tab S7",
|
|
26
|
+
iPad = "iPad",
|
|
27
|
+
iPad_6th_Gen = "iPad 6th Gen",
|
|
28
|
+
iPad_7th_Gen = "iPad 7th Gen",
|
|
29
|
+
iPad_Air_2 = "iPad Air 2",
|
|
30
|
+
iPad_Mini = "iPad Mini",
|
|
31
|
+
iPad_Pro = "iPad Pro",
|
|
32
|
+
iPhone_11 = "iPhone 11",
|
|
33
|
+
iPhone_11_Pro = "iPhone 11 Pro",
|
|
34
|
+
iPhone_11_Pro_Max = "iPhone 11 Pro Max",
|
|
35
|
+
iPhone_4 = "iPhone 4",
|
|
36
|
+
iPhone_5SE = "iPhone 5/SE",
|
|
37
|
+
iPhone_6_7_8 = "iPhone 6/7/8",
|
|
38
|
+
iPhone_6_7_8_Plus = "iPhone 6/7/8 Plus",
|
|
39
|
+
iPhone_X = "iPhone X",
|
|
40
|
+
iPhone_XR = "iPhone XR",
|
|
41
|
+
iPhone_XS = "iPhone XS",
|
|
42
|
+
iPhone_XS_Max = "iPhone XS Max",
|
|
43
|
+
Kindle_Fire_HDX = "Kindle Fire HDX",
|
|
44
|
+
Laptop_with_HiDPI_screen = "Laptop with HiDPI screen",
|
|
45
|
+
Laptop_with_MDPI_screen = "Laptop with MDPI screen",
|
|
46
|
+
Laptop_with_touch = "Laptop with touch",
|
|
47
|
+
LG_G6 = "LG G6",
|
|
48
|
+
LG_Optimus_L70 = "LG Optimus L70",
|
|
49
|
+
Microsoft_Lumia_550 = "Microsoft Lumia 550",
|
|
50
|
+
Microsoft_Lumia_950 = "Microsoft Lumia 950",
|
|
51
|
+
Nexus_10 = "Nexus 10",
|
|
52
|
+
Nexus_4 = "Nexus 4",
|
|
53
|
+
Nexus_5 = "Nexus 5",
|
|
54
|
+
Nexus_5X = "Nexus 5X",
|
|
55
|
+
Nexus_6 = "Nexus 6",
|
|
56
|
+
Nexus_6P = "Nexus 6P",
|
|
57
|
+
Nexus_7 = "Nexus 7",
|
|
58
|
+
Nokia_Lumia_520 = "Nokia Lumia 520",
|
|
59
|
+
Nokia_N9 = "Nokia N9",
|
|
60
|
+
OnePlus_7T = "OnePlus 7T",
|
|
61
|
+
OnePlus_7T_Pro = "OnePlus 7T Pro",
|
|
62
|
+
Pixel_2 = "Pixel 2",
|
|
63
|
+
Pixel_2_XL = "Pixel 2 XL",
|
|
64
|
+
Pixel_3 = "Pixel 3",
|
|
65
|
+
Pixel_3_XL = "Pixel 3 XL",
|
|
66
|
+
Pixel_4 = "Pixel 4",
|
|
67
|
+
Pixel_4_XL = "Pixel 4 XL",
|
|
68
|
+
Pixel_5 = "Pixel 5",
|
|
69
|
+
Sony_Xperia_10_II = "Sony Xperia 10 II",
|
|
70
|
+
Huawei_Mate_50_Pro = "Huawei Mate 50 Pro",
|
|
71
|
+
Huawei_Matepad_11 = "Huawei Matepad 11"
|
|
72
|
+
}
|
|
73
|
+
export type DeviceName = `${DeviceNameEnum}`;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare enum IosDeviceNameEnum {
|
|
2
|
+
iPhone_6s = "iPhone 6s",
|
|
3
|
+
iPhone_6s_Plus = "iPhone 6s Plus",
|
|
4
|
+
iPhone_7 = "iPhone 7",
|
|
5
|
+
iPhone_7_Plus = "iPhone 7 Plus",
|
|
6
|
+
iPhone_8 = "iPhone 8",
|
|
7
|
+
iPhone_8_Plus = "iPhone 8 Plus",
|
|
8
|
+
iPhone_X = "iPhone X",
|
|
9
|
+
iPhone_XR = "iPhone XR",
|
|
10
|
+
iPhone_Xs = "iPhone Xs",
|
|
11
|
+
/** @deprecated use {@link iPhone_Xs} instead */
|
|
12
|
+
iPhone_XS = "iPhone Xs",
|
|
13
|
+
iPhone_Xs_Max = "iPhone Xs Max",
|
|
14
|
+
iPhone_11 = "iPhone 11",
|
|
15
|
+
iPhone_11_Pro = "iPhone 11 Pro",
|
|
16
|
+
iPhone_11_Pro_Max = "iPhone 11 Pro Max",
|
|
17
|
+
iPhone_12 = "iPhone 12",
|
|
18
|
+
iPhone_12_mini = "iPhone 12 mini",
|
|
19
|
+
iPhone_12_Pro = "iPhone 12 Pro",
|
|
20
|
+
iPhone_12_Pro_Max = "iPhone 12 Pro Max",
|
|
21
|
+
iPhone_13 = "iPhone 13",
|
|
22
|
+
iPhone_13_mini = "iPhone 13 mini",
|
|
23
|
+
iPhone_13_Pro = "iPhone 13 Pro",
|
|
24
|
+
iPhone_13_Pro_Max = "iPhone 13 Pro Max",
|
|
25
|
+
iPhone_14 = "iPhone 14",
|
|
26
|
+
iPhone_14_Plus = "iPhone 14 Plus",
|
|
27
|
+
iPhone_14_Pro = "iPhone 14 Pro",
|
|
28
|
+
iPhone_14_Pro_Max = "iPhone 14 Pro Max",
|
|
29
|
+
iPhone_SE = "iPhone SE (1st generation)",
|
|
30
|
+
iPhone_SE_1 = "iPhone SE (1st generation)",
|
|
31
|
+
iPhone_SE_2 = "iPhone SE (2nd generation)",
|
|
32
|
+
iPhone_SE_3 = "iPhone SE (3rd generation)",
|
|
33
|
+
iPad_5 = "iPad (5th generation)",
|
|
34
|
+
iPad_6 = "iPad (6th generation)",
|
|
35
|
+
iPad_7 = "iPad (7th generation)",
|
|
36
|
+
iPad_8 = "iPad (8th generation)",
|
|
37
|
+
iPad_9 = "iPad (9th generation)",
|
|
38
|
+
iPad_10 = "iPad (10th generation)",
|
|
39
|
+
iPad_Air_2 = "iPad Air 2",
|
|
40
|
+
iPad_Air_3 = "iPad Air (3rd generation)",
|
|
41
|
+
iPad_Air_4 = "iPad Air (4th generation)",
|
|
42
|
+
iPad_Air_5 = "iPad Air (5th generation)",
|
|
43
|
+
iPad_mini_4 = "iPad mini 4",
|
|
44
|
+
iPad_mini_5 = "iPad mini (5th generation)",
|
|
45
|
+
iPad_mini_6 = "iPad mini (6th generation)",
|
|
46
|
+
iPad_Pro_9_7_inch_1 = "iPad Pro (9.7-inch)",
|
|
47
|
+
iPad_Pro_10_5_inch_1 = "iPad Pro (10.5-inch)",
|
|
48
|
+
iPad_Pro_11_inch_1 = "iPad Pro (11-inch) (1st generation)",
|
|
49
|
+
iPad_Pro_12_9_inch_1 = "iPad Pro (12.9-inch) (1st generation)",
|
|
50
|
+
iPad_Pro_11_inch_2 = "iPad Pro (11-inch) (2nd generation)",
|
|
51
|
+
iPad_Pro_12_9_inch_2 = "iPad Pro (12.9-inch) (2nd generation)",
|
|
52
|
+
iPad_Pro_11_inch_3 = "iPad Pro (11-inch) (3rd generation)",
|
|
53
|
+
iPad_Pro_12_9_inch_3 = "iPad Pro (12.9-inch) (3rd generation)",
|
|
54
|
+
/** @deprecated use {@link iPad_Pro_12_9_inch_3} instead */
|
|
55
|
+
iPad_Pro_3 = "iPad Pro (12.9-inch) (3rd generation)",
|
|
56
|
+
iPad_Pro_11_inch_4 = "iPad Pro (11-inch) (4th generation)",
|
|
57
|
+
/** @deprecated use {@link iPad_Pro_11_inch_4} instead */
|
|
58
|
+
iPad_Pro_4 = "iPad Pro (11-inch) (4th generation)",
|
|
59
|
+
iPad_Pro_12_9_inch_4 = "iPad Pro (12.9-inch) (4th generation)",
|
|
60
|
+
iPad_Pro_12_9_inch_5 = "iPad Pro (12.9-inch) (5th generation)",
|
|
61
|
+
iPad_Pro_12_9_inch_6 = "iPad Pro (12.9-inch) (6th generation)",
|
|
62
|
+
iPod_touch_7 = "iPod touch (7th generation)"
|
|
63
|
+
}
|
|
64
|
+
export type IosDeviceName = `${IosDeviceNameEnum}`;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum MatchLevelEnum {
|
|
2
|
+
None = "None",
|
|
3
|
+
LegacyLayout = "Layout1",
|
|
4
|
+
Layout = "Layout",
|
|
5
|
+
Layout2 = "Layout2",
|
|
6
|
+
Content = "Content",
|
|
7
|
+
IgnoreColors = "IgnoreColors",
|
|
8
|
+
Strict = "Strict",
|
|
9
|
+
Exact = "Exact"
|
|
10
|
+
}
|
|
11
|
+
export type MatchLevel = `${MatchLevelEnum}`;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EyesError } from './EyesError';
|
|
2
|
+
import { TestResults, TestResultsData } from '../output/TestResults';
|
|
3
|
+
export declare class TestFailedError extends EyesError {
|
|
4
|
+
private _result;
|
|
5
|
+
constructor(message: string, results: TestResults);
|
|
6
|
+
constructor(results: TestResults);
|
|
7
|
+
get testResults(): TestResults;
|
|
8
|
+
getTestResults(): TestResultsData;
|
|
9
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export { BrowserType as BrowserTypePlain, BrowserTypeEnum as BrowserType } from './enums/BrowserType';
|
|
2
|
+
export { CorsIframeHandle as CorsIframeHandlePlain, CorsIframeHandleEnum as CorsIframeHandle, } from './enums/CorsIframeHandle';
|
|
3
|
+
export { DeviceName as DeviceNamePlain, DeviceNameEnum as DeviceName } from './enums/DeviceName';
|
|
4
|
+
export { FailureReport as FailureReportPlain, FailureReportEnum as FailureReport } from './enums/FailureReport';
|
|
5
|
+
export { IosDeviceName as IosDeviceNamePlain, IosDeviceNameEnum as IosDeviceName } from './enums/IosDeviceName';
|
|
6
|
+
export { IosVersion as IosVersionPlain, IosVersionEnum as IosVersion } from './enums/IosVersion';
|
|
7
|
+
export { AndroidDeviceName as AndroidDeviceNamePlain, AndroidDeviceNameEnum as AndroidDeviceName, } from './enums/AndroidDeviceName';
|
|
8
|
+
export { AndroidVersion as AndroidVersionPlain, AndroidVersionEnum as AndroidVersion } from './enums/AndroidVersion';
|
|
9
|
+
export { MatchLevel as MatchLevelPlain, MatchLevelEnum as MatchLevel } from './enums/MatchLevel';
|
|
10
|
+
export { ScreenOrientation as ScreenOrientationPlain, ScreenOrientationEnum as ScreenOrientation, } from './enums/ScreenOrientation';
|
|
11
|
+
export { SessionType as SessionTypePlain, SessionTypeEnum as SessionType } from './enums/SessionType';
|
|
12
|
+
export { StitchMode as StitchModePlain, StitchModeEnum as StitchMode } from './enums/StitchMode';
|
|
13
|
+
export { TestResultsStatus as TestResultsStatusPlain, TestResultsStatusEnum as TestResultsStatus, } from './enums/TestResultsStatus';
|
|
14
|
+
export { AccessibilityGuidelinesVersion as AccessibilityGuidelinesVersionPlain, AccessibilityGuidelinesVersionEnum as AccessibilityGuidelinesVersion, } from './enums/AccessibilityGuidelinesVersion';
|
|
15
|
+
export { AccessibilityLevel as AccessibilityLevelPlain, AccessibilityLevelEnum as AccessibilityLevel, } from './enums/AccessibilityLevel';
|
|
16
|
+
export { AccessibilityRegionType as AccessibilityRegionTypePlain, AccessibilityRegionTypeEnum as AccessibilityRegionType, } from './enums/AccessibilityRegionType';
|
|
17
|
+
export { AccessibilityStatus as AccessibilityStatusPlain, AccessibilityStatusEnum as AccessibilityStatus, } from './enums/AccessibilityStatus';
|
|
18
|
+
export { EyesError } from './errors/EyesError';
|
|
19
|
+
export { TestFailedError } from './errors/TestFailedError';
|
|
20
|
+
export { DiffsFoundError } from './errors/DiffsFoundError';
|
|
21
|
+
export { NewTestError } from './errors/NewTestError';
|
|
22
|
+
export { AccessibilityMatchSettings as AccessibilityMatchSettingsPlain, AccessibilityMatchSettingsData as AccessibilityMatchSettings, } from './input/AccessibilityMatchSettings';
|
|
23
|
+
export { AccessibilitySettings } from './input/AccessibilitySettings';
|
|
24
|
+
export { BatchInfo as BatchInfoPlain, BatchInfoData as BatchInfo } from './input/BatchInfo';
|
|
25
|
+
export { Image } from './input/Image';
|
|
26
|
+
export { CheckSettingsImage as CheckSettingsImagePlain, CheckSettingsImageFluent as CheckSettingsImage, CheckSettingsAutomation as CheckSettingsAutomationPlain, CheckSettingsAutomationFluent as CheckSettingsAutomation, TargetImage, TargetAutomation, Target, } from './input/CheckSettings';
|
|
27
|
+
export { Configuration as ConfigurationPlain, ConfigurationData as Configuration } from './input/Configuration';
|
|
28
|
+
export { CutProvider as CutProviderPlain, CutProviderData as CutProvider, FixedCutProviderData as FixedCutProvider, UnscaledFixedCutProviderData as UnscaledFixedCutProvider, } from './input/CutProvider';
|
|
29
|
+
export { ExactMatchSettings as ExactMatchSettingsPlain, ExactMatchSettingsData as ExactMatchSettings, } from './input/ExactMatchSettings';
|
|
30
|
+
export { FloatingMatchSettings as FloatingMatchSettingsPlain, FloatingMatchSettingsData as FloatingMatchSettings, } from './input/FloatingMatchSettings';
|
|
31
|
+
export { ImageMatchSettings as ImageMatchSettingsPlain, ImageMatchSettingsData as ImageMatchSettings, } from './input/ImageMatchSettings';
|
|
32
|
+
export { ImageRotation as ImageRotationPlain, ImageRotationData as ImageRotation } from './input/ImageRotation';
|
|
33
|
+
export { Location as LocationPlain, LocationData as Location } from './input/Location';
|
|
34
|
+
export { LogHandler as LogHandlerPlain, CustomLogHandler as CustomLogHandlerPlain, FileLogHandler as FileLogHandlerPlain, ConsoleLogHandler as ConsoleLogHandlerPlain, LogHandlerData as LogHandler, FileLogHandlerData as FileLogHandler, ConsoleLogHandlerData as ConsoleLogHandler, NullLogHandlerData as NullLogHandler, } from './input/LogHandler';
|
|
35
|
+
export { OCRRegion } from './input/OCRRegion';
|
|
36
|
+
export { OCRSettings } from './input/OCRSettings';
|
|
37
|
+
export { PropertyData as PropertyDataPlain, PropertyDataData as PropertyData } from './input/PropertyData';
|
|
38
|
+
export { ProxySettings as ProxySettingsPlain, ProxySettingsData as ProxySettings } from './input/ProxySettings';
|
|
39
|
+
export { RectangleSize as RectangleSizePlain, RectangleSizeData as RectangleSize } from './input/RectangleSize';
|
|
40
|
+
export { Region as RegionPlain, LegacyRegion as LegacyRegionPlain, RegionData as Region } from './input/Region';
|
|
41
|
+
export { DesktopBrowserInfo, ChromeEmulationInfo, IOSDeviceInfo, AndroidDeviceInfo } from './input/RenderInfo';
|
|
42
|
+
export { RunnerOptions as RunnerOptionsPlain, RunnerOptionsFluent, RunnerOptionsFluentInit as RunnerOptions, } from './input/RunnerOptions';
|
|
43
|
+
export { VisualLocatorSettings } from './input/VisualLocatorSettings';
|
|
44
|
+
export { ApiUrls as ApiUrlsPlain, ApiUrlsData as ApiUrls } from './output/ApiUrls';
|
|
45
|
+
export { AppUrls as AppUrlsPlain, AppUrlsData as AppUrls } from './output/AppUrls';
|
|
46
|
+
export { MatchResult as MatchResultPlain, MatchResultData as MatchResult } from './output/MatchResult';
|
|
47
|
+
export { SessionUrls as SessionUrlsPlain, SessionUrlsData as SessionUrls } from './output/SessionUrls';
|
|
48
|
+
export { StepInfo as StepInfoPlain, StepInfoData as StepInfo } from './output/StepInfo';
|
|
49
|
+
export { TestAccessibilityStatus } from './output/TestAccessibilityStatus';
|
|
50
|
+
export { TestResults as TestResultsPlain, TestResultsData as TestResults } from './output/TestResults';
|
|
51
|
+
export { TestResultContainer as TestResultContainerPlain, TestResultContainerData as TestResultContainer, } from './output/TestResultContainer';
|
|
52
|
+
export { TestResultsSummary as TestResultsSummaryPlain, TestResultsSummaryData as TestResultsSummary, } from './output/TestResultsSummary';
|
|
53
|
+
export { TextRegion } from './output/TextRegion';
|
|
54
|
+
export { ValidationInfo as ValidationInfoPlain, ValidationInfoData as ValidationInfo } from './output/ValidationInfo';
|
|
55
|
+
export { ValidationResult as ValidationResultPlain, ValidationResultData as ValidationResult, } from './output/ValidationResult';
|
|
56
|
+
export { EyesSelector } from './input/EyesSelector';
|
|
57
|
+
export { Logger } from './Logger';
|
|
58
|
+
export { Eyes } from './Eyes';
|
|
59
|
+
export { BatchClose, closeBatch } from './BatchClose';
|
|
60
|
+
export { EyesRunner, ClassicRunner, VisualGridRunner } from './Runners';
|
|
61
|
+
export { SessionEventHandler, SessionEventHandlers, RemoteSessionEventHandler } from './SessionEventHandlers';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AccessibilityRegionType, AccessibilityRegionTypeEnum } from '../enums/AccessibilityRegionType';
|
|
2
|
+
import { Region, RegionData } from './Region';
|
|
3
|
+
export type AccessibilityMatchSettings = {
|
|
4
|
+
region: Region;
|
|
5
|
+
type?: AccessibilityRegionType;
|
|
6
|
+
};
|
|
7
|
+
export declare class AccessibilityMatchSettingsData implements Required<AccessibilityMatchSettings> {
|
|
8
|
+
private _settings;
|
|
9
|
+
constructor(settings: AccessibilityMatchSettings);
|
|
10
|
+
constructor(region: Region);
|
|
11
|
+
constructor(x: number, y: number, width: number, height: number, type?: AccessibilityRegionType);
|
|
12
|
+
get region(): Region;
|
|
13
|
+
set region(region: Region);
|
|
14
|
+
getRegion(): RegionData;
|
|
15
|
+
setRegion(region: Region): void;
|
|
16
|
+
getLeft(): number;
|
|
17
|
+
setLeft(left: number): void;
|
|
18
|
+
getTop(): number;
|
|
19
|
+
setTop(top: number): void;
|
|
20
|
+
getWidth(): number;
|
|
21
|
+
setWidth(width: number): void;
|
|
22
|
+
getHeight(): number;
|
|
23
|
+
setHeight(height: number): void;
|
|
24
|
+
get type(): AccessibilityRegionType;
|
|
25
|
+
set type(type: AccessibilityRegionType);
|
|
26
|
+
getType(): AccessibilityRegionTypeEnum;
|
|
27
|
+
setType(type: AccessibilityRegionType): void;
|
|
28
|
+
/** @internal */
|
|
29
|
+
toObject(): AccessibilityMatchSettings;
|
|
30
|
+
/** @internal */
|
|
31
|
+
toJSON(): AccessibilityMatchSettings;
|
|
32
|
+
/** @internal */
|
|
33
|
+
toString(): string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AccessibilityLevel } from '../enums/AccessibilityLevel';
|
|
2
|
+
import { AccessibilityGuidelinesVersion } from '../enums/AccessibilityGuidelinesVersion';
|
|
3
|
+
export type AccessibilitySettings = {
|
|
4
|
+
level?: AccessibilityLevel;
|
|
5
|
+
guidelinesVersion?: AccessibilityGuidelinesVersion;
|
|
6
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { PropertyData, PropertyDataData } from './PropertyData';
|
|
2
|
+
export type BatchInfo = {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
sequenceName?: string;
|
|
6
|
+
startedAt?: Date | string;
|
|
7
|
+
notifyOnCompletion?: boolean;
|
|
8
|
+
properties?: PropertyData[];
|
|
9
|
+
};
|
|
10
|
+
export declare class BatchInfoData implements Required<BatchInfo> {
|
|
11
|
+
private _batch;
|
|
12
|
+
constructor();
|
|
13
|
+
constructor(batch?: BatchInfo);
|
|
14
|
+
constructor(name?: string, startedAt?: Date | string, id?: string);
|
|
15
|
+
get id(): string;
|
|
16
|
+
set id(id: string);
|
|
17
|
+
getId(): string;
|
|
18
|
+
setId(id: string): this;
|
|
19
|
+
get name(): string;
|
|
20
|
+
set name(name: string);
|
|
21
|
+
getName(): string;
|
|
22
|
+
setName(name: string): this;
|
|
23
|
+
get sequenceName(): string;
|
|
24
|
+
set sequenceName(sequenceName: string);
|
|
25
|
+
getSequenceName(): string;
|
|
26
|
+
setSequenceName(sequenceName: string): this;
|
|
27
|
+
get startedAt(): Date | string;
|
|
28
|
+
set startedAt(startedAt: Date | string);
|
|
29
|
+
getStartedAt(): Date | string;
|
|
30
|
+
setStartedAt(startedAt: Date | string): this;
|
|
31
|
+
get notifyOnCompletion(): boolean;
|
|
32
|
+
set notifyOnCompletion(notifyOnCompletion: boolean);
|
|
33
|
+
getNotifyOnCompletion(): boolean;
|
|
34
|
+
setNotifyOnCompletion(notifyOnCompletion: boolean): this;
|
|
35
|
+
get properties(): PropertyData[];
|
|
36
|
+
set properties(properties: PropertyData[]);
|
|
37
|
+
getProperties(): PropertyDataData[];
|
|
38
|
+
setProperties(properties: PropertyData[]): this;
|
|
39
|
+
addProperty(name: string, value: string): this;
|
|
40
|
+
addProperty(prop: PropertyData): this;
|
|
41
|
+
/** @internal */
|
|
42
|
+
toObject(): BatchInfo;
|
|
43
|
+
/** @internal */
|
|
44
|
+
toJSON(): BatchInfo;
|
|
45
|
+
/** @internal */
|
|
46
|
+
toString(): string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type * as Core from '@applitools/core';
|
|
3
|
+
import { EyesSelector } from './EyesSelector';
|
|
4
|
+
import { Image } from './Image';
|
|
5
|
+
import { AccessibilityRegionType } from '../enums/AccessibilityRegionType';
|
|
6
|
+
import { MatchLevel } from '../enums/MatchLevel';
|
|
7
|
+
import { Region, LegacyRegion } from './Region';
|
|
8
|
+
import { Location } from './Location';
|
|
9
|
+
import { LazyLoadOptions } from './LazyLoadOptions';
|
|
10
|
+
import { DensityMetrics } from './DensityMetrics';
|
|
11
|
+
type RegionReference<TSpec extends Core.SpecType> = Region | ElementReference<TSpec>;
|
|
12
|
+
type ElementReference<TSpec extends Core.SpecType> = TSpec['element'] | SelectorReference<TSpec>;
|
|
13
|
+
type SelectorReference<TSpec extends Core.SpecType> = EyesSelector<TSpec['selector']>;
|
|
14
|
+
type FrameReference<TSpec extends Core.SpecType> = ElementReference<TSpec> | string | number;
|
|
15
|
+
type ContextReference<TSpec extends Core.SpecType> = {
|
|
16
|
+
frame: FrameReference<TSpec>;
|
|
17
|
+
scrollRootElement?: ElementReference<TSpec>;
|
|
18
|
+
};
|
|
19
|
+
type CodedRegion<TRegion = never> = {
|
|
20
|
+
region: Region | TRegion;
|
|
21
|
+
padding?: number | {
|
|
22
|
+
top: number;
|
|
23
|
+
bottom: number;
|
|
24
|
+
left: number;
|
|
25
|
+
right: number;
|
|
26
|
+
};
|
|
27
|
+
regionId?: string;
|
|
28
|
+
};
|
|
29
|
+
type CodedFloatingRegion<TRegion = never> = CodedRegion<TRegion> & {
|
|
30
|
+
offset?: {
|
|
31
|
+
top?: number;
|
|
32
|
+
bottom?: number;
|
|
33
|
+
left?: number;
|
|
34
|
+
right?: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/** @deprecated */
|
|
38
|
+
type LegacyCodedFloatingRegion<TRegion = never> = CodedRegion<TRegion> & {
|
|
39
|
+
maxUpOffset?: number;
|
|
40
|
+
maxDownOffset?: number;
|
|
41
|
+
maxLeftOffset?: number;
|
|
42
|
+
maxRightOffset?: number;
|
|
43
|
+
};
|
|
44
|
+
type CodedAccessibilityRegion<TRegion = never> = CodedRegion<TRegion> & {
|
|
45
|
+
type?: AccessibilityRegionType;
|
|
46
|
+
};
|
|
47
|
+
export type CheckSettingsBase<TRegion = never> = {
|
|
48
|
+
name?: string;
|
|
49
|
+
region?: Region | TRegion;
|
|
50
|
+
matchLevel?: MatchLevel;
|
|
51
|
+
useDom?: boolean;
|
|
52
|
+
sendDom?: boolean;
|
|
53
|
+
enablePatterns?: boolean;
|
|
54
|
+
ignoreDisplacements?: boolean;
|
|
55
|
+
ignoreMismatch?: boolean;
|
|
56
|
+
ignoreCaret?: boolean;
|
|
57
|
+
ignoreRegions?: (CodedRegion<TRegion> | Region | TRegion)[];
|
|
58
|
+
layoutRegions?: (CodedRegion<TRegion> | Region | TRegion)[];
|
|
59
|
+
strictRegions?: (CodedRegion<TRegion> | Region | TRegion)[];
|
|
60
|
+
contentRegions?: (CodedRegion<TRegion> | Region | TRegion)[];
|
|
61
|
+
floatingRegions?: (CodedFloatingRegion<TRegion> | LegacyCodedFloatingRegion<TRegion> | Region | TRegion)[];
|
|
62
|
+
accessibilityRegions?: (CodedAccessibilityRegion<TRegion> | Region | TRegion)[];
|
|
63
|
+
pageId?: string;
|
|
64
|
+
variationGroupId?: string;
|
|
65
|
+
densityMetrics?: DensityMetrics;
|
|
66
|
+
};
|
|
67
|
+
export type CheckSettingsImage = CheckSettingsBase;
|
|
68
|
+
export type CheckSettingsAutomation<TSpec extends Core.SpecType> = CheckSettingsBase<RegionReference<TSpec>> & {
|
|
69
|
+
frames?: (ContextReference<TSpec> | FrameReference<TSpec>)[];
|
|
70
|
+
webview?: boolean | string;
|
|
71
|
+
scrollRootElement?: ElementReference<TSpec>;
|
|
72
|
+
fully?: boolean;
|
|
73
|
+
disableBrowserFetching?: boolean;
|
|
74
|
+
layoutBreakpoints?: boolean | number[] | {
|
|
75
|
+
breakpoints: number[] | boolean;
|
|
76
|
+
reload?: boolean;
|
|
77
|
+
};
|
|
78
|
+
visualGridOptions?: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
};
|
|
81
|
+
/** @deprecated */
|
|
82
|
+
nmgOptions?: {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
};
|
|
85
|
+
useSystemScreenshot?: boolean;
|
|
86
|
+
hooks?: {
|
|
87
|
+
beforeCaptureScreenshot: string;
|
|
88
|
+
};
|
|
89
|
+
timeout?: number;
|
|
90
|
+
waitBeforeCapture?: number;
|
|
91
|
+
lazyLoad?: boolean | LazyLoadOptions;
|
|
92
|
+
};
|
|
93
|
+
export declare class CheckSettingsBaseFluent<TRegion = never> {
|
|
94
|
+
protected _settings: CheckSettingsBase<TRegion>;
|
|
95
|
+
constructor(settings?: CheckSettingsBase<TRegion> | CheckSettingsBaseFluent<TRegion>);
|
|
96
|
+
region(region: Region | LegacyRegion | TRegion): this;
|
|
97
|
+
name(name: string): this;
|
|
98
|
+
withName(name: string): this;
|
|
99
|
+
ignoreRegion(region: CodedRegion<TRegion> | Region | LegacyRegion | TRegion): this;
|
|
100
|
+
ignoreRegions(...regions: (CodedRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
101
|
+
/** @deprecated */
|
|
102
|
+
ignore(region: Region | LegacyRegion | TRegion): this;
|
|
103
|
+
/** @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;
|
|
111
|
+
floatingRegion(region: CodedFloatingRegion<TRegion>): this;
|
|
112
|
+
floatingRegion(region: LegacyCodedFloatingRegion<TRegion>): this;
|
|
113
|
+
floatingRegion(region: Region | LegacyRegion | TRegion, maxUpOffset?: number, maxDownOffset?: number, maxLeftOffset?: number, maxRightOffset?: number): this;
|
|
114
|
+
floatingRegions(...regions: (CodedFloatingRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
115
|
+
floatingRegions(maxOffset: number, ...regions: (Region | LegacyRegion | TRegion)[]): this;
|
|
116
|
+
/** @deprecated */
|
|
117
|
+
floating(region: CodedFloatingRegion<TRegion>): this;
|
|
118
|
+
/** @deprecated */
|
|
119
|
+
floating(region: Region | LegacyRegion | TRegion): this;
|
|
120
|
+
/** @deprecated */
|
|
121
|
+
floatings(...regions: (CodedFloatingRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
122
|
+
/** @deprecated */
|
|
123
|
+
floatings(maxOffset: number, ...regions: (Region | LegacyRegion | TRegion)[]): this;
|
|
124
|
+
accessibilityRegion(region: CodedAccessibilityRegion<TRegion>): this;
|
|
125
|
+
accessibilityRegion(region: Region | LegacyRegion | TRegion, type?: AccessibilityRegionType): this;
|
|
126
|
+
accessibilityRegions(...regions: (CodedAccessibilityRegion<TRegion> | Region | LegacyRegion | TRegion)[]): this;
|
|
127
|
+
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;
|
|
133
|
+
/** @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;
|
|
142
|
+
/** @internal */
|
|
143
|
+
toObject(): CheckSettingsBase<TRegion>;
|
|
144
|
+
/** @internal */
|
|
145
|
+
toString(): string;
|
|
146
|
+
}
|
|
147
|
+
export declare class CheckSettingsImageFluent extends CheckSettingsBaseFluent {
|
|
148
|
+
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;
|
|
158
|
+
/** @internal */
|
|
159
|
+
toJSON(): {
|
|
160
|
+
target: Image;
|
|
161
|
+
settings: Core.CheckSettings<never, 'classic'>;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
export declare class CheckSettingsAutomationFluent<TSpec extends Core.SpecType = Core.SpecType> extends CheckSettingsBaseFluent<RegionReference<TSpec>> {
|
|
165
|
+
protected _settings: CheckSettingsAutomation<TSpec>;
|
|
166
|
+
protected static readonly _spec: Core.SpecDriver<Core.SpecType>;
|
|
167
|
+
protected _spec: Core.SpecDriver<TSpec>;
|
|
168
|
+
protected _isElementReference(value: any): value is ElementReference<TSpec>;
|
|
169
|
+
protected _isSelectorReference(selector: any): selector is SelectorReference<TSpec>;
|
|
170
|
+
protected _isFrameReference(value: any): value is FrameReference<TSpec>;
|
|
171
|
+
constructor(settings?: CheckSettingsAutomation<TSpec> | CheckSettingsAutomationFluent<TSpec>);
|
|
172
|
+
/** @internal */
|
|
173
|
+
constructor(settings?: CheckSettingsAutomation<TSpec> | CheckSettingsAutomationFluent<TSpec>, spec?: Core.SpecDriver<TSpec>);
|
|
174
|
+
region(region: RegionReference<TSpec>): this;
|
|
175
|
+
shadow(selector: SelectorReference<TSpec>): this;
|
|
176
|
+
frame(context: ContextReference<TSpec>): this;
|
|
177
|
+
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;
|
|
181
|
+
/** @deprecated */
|
|
182
|
+
stitchContent(stitchContent?: boolean): this;
|
|
183
|
+
disableBrowserFetching(disableBrowserFetching: boolean): this;
|
|
184
|
+
layoutBreakpoints(breakpoints?: boolean | number[], settings?: {
|
|
185
|
+
reload?: boolean;
|
|
186
|
+
}): this;
|
|
187
|
+
hook(name: string, script: string): this;
|
|
188
|
+
beforeRenderScreenshotHook(script: string): this;
|
|
189
|
+
/** @deprecated */
|
|
190
|
+
webHook(script: string): this;
|
|
191
|
+
ufgOption(key: string, value: any): this;
|
|
192
|
+
ufgOptions(options: {
|
|
193
|
+
[key: string]: any;
|
|
194
|
+
}): this;
|
|
195
|
+
/** @deprecated */
|
|
196
|
+
nmgOption(key: string, value: any): this;
|
|
197
|
+
/** @deprecated */
|
|
198
|
+
nmgOptions(options: {
|
|
199
|
+
[key: string]: any;
|
|
200
|
+
}): this;
|
|
201
|
+
/** @deprecated */
|
|
202
|
+
visualGridOption(key: string, value: any): this;
|
|
203
|
+
/** @deprecated */
|
|
204
|
+
visualGridOptions(options: {
|
|
205
|
+
[key: string]: any;
|
|
206
|
+
}): this;
|
|
207
|
+
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;
|
|
212
|
+
/** @internal */
|
|
213
|
+
toJSON(): {
|
|
214
|
+
target: undefined;
|
|
215
|
+
settings: Core.CheckSettings<TSpec, 'classic'> & Core.CheckSettings<TSpec, 'ufg'>;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
export type TargetImage = {
|
|
219
|
+
image(image: Buffer | URL | string): CheckSettingsImageFluent;
|
|
220
|
+
buffer(imageBuffer: Buffer): CheckSettingsImageFluent;
|
|
221
|
+
base64(imageBase64: string): CheckSettingsImageFluent;
|
|
222
|
+
path(imagePath: string): CheckSettingsImageFluent;
|
|
223
|
+
url(imageUrl: URL | string): CheckSettingsImageFluent;
|
|
224
|
+
};
|
|
225
|
+
export declare const TargetImage: TargetImage;
|
|
226
|
+
export type TargetAutomation<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
227
|
+
/** @internal */
|
|
228
|
+
spec: Core.SpecDriver<TSpec>;
|
|
229
|
+
window(): CheckSettingsAutomationFluent<TSpec>;
|
|
230
|
+
region(region: RegionReference<TSpec> | LegacyRegion): CheckSettingsAutomationFluent<TSpec>;
|
|
231
|
+
frame(context: ContextReference<TSpec>): CheckSettingsAutomationFluent<TSpec>;
|
|
232
|
+
frame(frame: FrameReference<TSpec>, scrollRootElement?: ElementReference<TSpec>): CheckSettingsAutomationFluent<TSpec>;
|
|
233
|
+
shadow(selector: SelectorReference<TSpec>): CheckSettingsAutomationFluent<TSpec>;
|
|
234
|
+
webview(webview?: string | boolean): CheckSettingsAutomationFluent<TSpec>;
|
|
235
|
+
};
|
|
236
|
+
export declare const TargetAutomation: TargetAutomation<Core.SpecType>;
|
|
237
|
+
export type Target<TSpec extends Core.SpecType = Core.SpecType> = TargetImage & TargetAutomation<TSpec>;
|
|
238
|
+
export declare const Target: Target<Core.SpecType>;
|
|
239
|
+
export {};
|