@applitools/eyes-browser 1.2.0 → 1.3.1
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 +204 -0
- package/dist/index.js +3932 -2717
- package/package.json +2 -2
- package/types/enums/IosMultiDeviceTarget.d.ts +26 -0
- package/types/input/Configuration.d.ts +14 -9
- package/types/input/RenderInfo.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-browser",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
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.17.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/node": "^12.20.55",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum IosMultiDeviceTargetEnum {
|
|
2
|
+
iPhone_SE_3 = "iPhone SE (3rd generation)",
|
|
3
|
+
iPhone_SE_2 = "iPhone SE (2nd generation)",
|
|
4
|
+
iPhone_8 = "iPhone 8",
|
|
5
|
+
iPhone_8_Plus = "iPhone 8 Plus",
|
|
6
|
+
iPhone_13_mini = "iPhone 13 mini",
|
|
7
|
+
iPhone_12_mini = "iPhone 12 mini",
|
|
8
|
+
iPhone_11_Pro = "iPhone 11 Pro",
|
|
9
|
+
iPhone_X = "iPhone X",
|
|
10
|
+
iPhone_XR = "iPhone XR",
|
|
11
|
+
iPhone_Xs = "iPhone Xs",
|
|
12
|
+
iPhone_Xs_Max = "iPhone Xs Max",
|
|
13
|
+
iPhone_11 = "iPhone 11",
|
|
14
|
+
iPhone_11_Pro_Max = "iPhone 11 Pro Max",
|
|
15
|
+
iPhone_12 = "iPhone 12",
|
|
16
|
+
iPhone_12_Pro = "iPhone 12 Pro",
|
|
17
|
+
iPhone_12_Pro_Max = "iPhone 12 Pro Max",
|
|
18
|
+
iPhone_13 = "iPhone 13",
|
|
19
|
+
iPhone_13_Pro = "iPhone 13 Pro",
|
|
20
|
+
iPhone_13_Pro_Max = "iPhone 13 Pro Max",
|
|
21
|
+
iPhone_14 = "iPhone 14",
|
|
22
|
+
iPhone_14_Pro = "iPhone 14 Pro",
|
|
23
|
+
iPhone_14_Plus = "iPhone 14 Plus",
|
|
24
|
+
iPhone_14_Pro_Max = "iPhone 14 Pro Max"
|
|
25
|
+
}
|
|
26
|
+
export type IosMultiDeviceTarget = `${IosMultiDeviceTargetEnum}`;
|
|
@@ -9,9 +9,10 @@ import { AndroidDeviceName } from '../enums/AndroidDeviceName';
|
|
|
9
9
|
import { AndroidVersion } from '../enums/AndroidVersion';
|
|
10
10
|
import { IosDeviceName } from '../enums/IosDeviceName';
|
|
11
11
|
import { IosVersion } from '../enums/IosVersion';
|
|
12
|
+
import { IosMultiDeviceTarget } from '../enums/IosMultiDeviceTarget';
|
|
12
13
|
import { ScreenOrientation } from '../enums/ScreenOrientation';
|
|
13
14
|
import { AccessibilitySettings } from './AccessibilitySettings';
|
|
14
|
-
import {
|
|
15
|
+
import { RenderInfo, RenderInfoLegacy } from './RenderInfo';
|
|
15
16
|
import { CutProvider } from './CutProvider';
|
|
16
17
|
import { DebugScreenshotProvider } from './DebugScreenshotProvider';
|
|
17
18
|
import { RectangleSize, RectangleSizeData } from './RectangleSize';
|
|
@@ -21,7 +22,6 @@ import { AUTProxySettings } from './AUTProxySettings';
|
|
|
21
22
|
import { BatchInfo, BatchInfoData } from './BatchInfo';
|
|
22
23
|
import { PropertyData, PropertyDataData } from './PropertyData';
|
|
23
24
|
import { ImageMatchSettings } from './ImageMatchSettings';
|
|
24
|
-
type RenderInfo = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | ChromeEmulationInfoLegacy;
|
|
25
25
|
export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
26
26
|
/** @undocumented */
|
|
27
27
|
debugScreenshots?: DebugScreenshotProvider;
|
|
@@ -52,6 +52,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
|
52
52
|
environmentName?: string;
|
|
53
53
|
branchName?: string;
|
|
54
54
|
parentBranchName?: string;
|
|
55
|
+
gitMergeBaseTimestamp?: string;
|
|
55
56
|
baselineBranchName?: string;
|
|
56
57
|
compareWithParentBranch?: boolean;
|
|
57
58
|
ignoreBaseline?: boolean;
|
|
@@ -75,7 +76,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
|
75
76
|
scaleRatio?: number;
|
|
76
77
|
/** @undocumented */
|
|
77
78
|
concurrentSessions?: number;
|
|
78
|
-
browsersInfo?:
|
|
79
|
+
browsersInfo?: RenderInfo[];
|
|
79
80
|
visualGridOptions?: Record<string, any>;
|
|
80
81
|
layoutBreakpoints?: boolean | number[] | {
|
|
81
82
|
breakpoints: number[] | boolean;
|
|
@@ -206,6 +207,10 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
206
207
|
set baselineBranchName(baselineBranchName: string);
|
|
207
208
|
getBaselineBranchName(): string;
|
|
208
209
|
setBaselineBranchName(baselineBranchName: string): this;
|
|
210
|
+
get gitMergeBaseTimestamp(): string;
|
|
211
|
+
set gitMergeBaseTimestamp(gitMergeBaseTimestamp: string);
|
|
212
|
+
getGitMergeBaseTimestamp(): string;
|
|
213
|
+
setGitMergeBaseTimestamp(gitMergeBaseTimestamp: string): this;
|
|
209
214
|
get compareWithParentBranch(): boolean;
|
|
210
215
|
set compareWithParentBranch(compareWithParentBranch: boolean);
|
|
211
216
|
getCompareWithParentBranch(): boolean;
|
|
@@ -322,16 +327,17 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
322
327
|
getConcurrentSessions(): number;
|
|
323
328
|
/** @undocumented */
|
|
324
329
|
setConcurrentSessions(concurrentSessions: number): this;
|
|
325
|
-
get browsersInfo():
|
|
326
|
-
set browsersInfo(browsersInfo:
|
|
330
|
+
get browsersInfo(): RenderInfo[];
|
|
331
|
+
set browsersInfo(browsersInfo: RenderInfo[]);
|
|
327
332
|
getBrowsersInfo(): RenderInfo[];
|
|
328
|
-
setBrowsersInfo(browsersInfo:
|
|
329
|
-
addBrowsers(...browsersInfo:
|
|
330
|
-
addBrowser(browserInfo:
|
|
333
|
+
setBrowsersInfo(browsersInfo: RenderInfoLegacy[]): this;
|
|
334
|
+
addBrowsers(...browsersInfo: RenderInfoLegacy[]): this;
|
|
335
|
+
addBrowser(browserInfo: RenderInfoLegacy): this;
|
|
331
336
|
addBrowser(width: number, height: number, name?: BrowserType): this;
|
|
332
337
|
addDeviceEmulation(deviceName: DeviceName, screenOrientation?: ScreenOrientation): this;
|
|
333
338
|
addMobileDevice(deviceName: AndroidDeviceName, screenOrientation: ScreenOrientation, version?: AndroidVersion): this;
|
|
334
339
|
addMobileDevice(deviceName: IosDeviceName, screenOrientation: ScreenOrientation, version?: IosVersion): this;
|
|
340
|
+
addMultiDeviceTarget(deviceName: IosMultiDeviceTarget): this;
|
|
335
341
|
get visualGridOptions(): {
|
|
336
342
|
[key: string]: any;
|
|
337
343
|
};
|
|
@@ -380,4 +386,3 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
380
386
|
/** @internal */
|
|
381
387
|
toString(): string;
|
|
382
388
|
}
|
|
383
|
-
export {};
|
|
@@ -5,6 +5,7 @@ import { IosVersion } from '../enums/IosVersion';
|
|
|
5
5
|
import { AndroidDeviceName } from '../enums/AndroidDeviceName';
|
|
6
6
|
import { AndroidVersion } from '../enums/AndroidVersion';
|
|
7
7
|
import { ScreenOrientation } from '../enums/ScreenOrientation';
|
|
8
|
+
import { IosMultiDeviceTarget } from '../enums/IosMultiDeviceTarget';
|
|
8
9
|
export type DesktopBrowserInfo = {
|
|
9
10
|
name?: BrowserType;
|
|
10
11
|
width: number;
|
|
@@ -35,3 +36,8 @@ export type AndroidDeviceInfo = {
|
|
|
35
36
|
screenOrientation?: ScreenOrientation;
|
|
36
37
|
};
|
|
37
38
|
};
|
|
39
|
+
export type IOSMultiDeviceInfo = {
|
|
40
|
+
deviceName: IosMultiDeviceTarget;
|
|
41
|
+
};
|
|
42
|
+
export type RenderInfoLegacy = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | ChromeEmulationInfoLegacy;
|
|
43
|
+
export type RenderInfo = DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo | AndroidDeviceInfo | IOSMultiDeviceInfo;
|