This repository has been archived by the owner on Dec 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
/
utils.spec.ts.snap
118 lines (69 loc) · 6.1 KB
/
utils.spec.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`utils calculateDprData should multiple all number values by the dpr value 1`] = `
Object {
"1": 6,
"a": 2,
"a1": 18,
"b": 4,
"bool": true,
"string": "string",
}
`;
exports[`utils checkAndroidChromeDriverScreenshot should return false when Android and nativeWebscreenshot true is provided 1`] = `false`;
exports[`utils checkAndroidChromeDriverScreenshot should return false when iOS and nativeWebscreenshot false is provided 1`] = `false`;
exports[`utils checkAndroidChromeDriverScreenshot should return false when iOS and nativeWebscreenshot true is provided 1`] = `false`;
exports[`utils checkAndroidChromeDriverScreenshot should return false when no platform name is provided 1`] = `false`;
exports[`utils checkAndroidChromeDriverScreenshot should return true when Android and nativeWebscreenshot false is provided 1`] = `true`;
exports[`utils checkAndroidNativeWebScreenshot should return false when Android and nativeWebscreenshot false is provided 1`] = `false`;
exports[`utils checkAndroidNativeWebScreenshot should return false when iOS and nativeWebscreenshot false is provided 1`] = `false`;
exports[`utils checkAndroidNativeWebScreenshot should return false when iOS and nativeWebscreenshot true is provided 1`] = `false`;
exports[`utils checkAndroidNativeWebScreenshot should return false when no platform name is provided 1`] = `false`;
exports[`utils checkAndroidNativeWebScreenshot should return true when Android and nativeWebscreenshot true is provided 1`] = `true`;
exports[`utils checkIsAndroid should return false when a platform name is provided that is not accepted 1`] = `false`;
exports[`utils checkIsAndroid should return false when no platform name is provided 1`] = `false`;
exports[`utils checkIsAndroid should return true when a valid platform name is provided 1`] = `true`;
exports[`utils checkIsIos should return false when a platform name is provided that is not accepted 1`] = `false`;
exports[`utils checkIsIos should return false when no platform name is provided 1`] = `false`;
exports[`utils checkIsIos should return true when a valid platform name is provided 1`] = `true`;
exports[`utils checkIsMobile should return false when no platform name is provided 1`] = `false`;
exports[`utils checkIsMobile should return true when a platform name is provided 1`] = `true`;
exports[`utils checkTestInBrowser should return false when no browser name is provided 1`] = `false`;
exports[`utils checkTestInBrowser should return true when a browser name is provided 1`] = `true`;
exports[`utils checkTestInMobileBrowser should return false when a plaform but no browser name is provided 1`] = `false`;
exports[`utils checkTestInMobileBrowser should return false when no platform name is provided 1`] = `false`;
exports[`utils checkTestInMobileBrowser should return true when a plaform and a browser name is provided 1`] = `true`;
exports[`utils formatFileName should format a string for mobile app 1`] = `"theTag-app-2-1400x900.png"`;
exports[`utils formatFileName should format a string for mobile browser 1`] = `"theTag-chrome-2-1400x900.png"`;
exports[`utils formatFileName should format a string with all options provided 1`] = `"browser.chrome-74-platform.osx-12-dpr.2-768-chrome-latest-chrome-name-theTag-1366.png"`;
exports[`utils getAddressBarShadowPadding should return 0 when this is a check for Android with a native screenshot but without adding a shadow padding 1`] = `0`;
exports[`utils getAddressBarShadowPadding should return 0 when this is a check for a desktop browser 1`] = `0`;
exports[`utils getAddressBarShadowPadding should return 0 when this is a check for an Android app 1`] = `0`;
exports[`utils getAddressBarShadowPadding should return 0 when this is a check for an iOS app 1`] = `0`;
exports[`utils getAddressBarShadowPadding should return 0 when this is a check for iOS but without adding a shadow padding 1`] = `0`;
exports[`utils getAddressBarShadowPadding should return 6 when this is a check for Android with a native screenshot and adding a shadow padding 1`] = `6`;
exports[`utils getAddressBarShadowPadding should return 6 when this is a check for iOS and adding a shadow padding 1`] = `6`;
exports[`utils getAndCreatePath should create the folder and return the folder name for a browser 1`] = `false`;
exports[`utils getAndCreatePath should create the folder and return the folder name for a browser 2`] = `true`;
exports[`utils getAndCreatePath should create the folder and return the folder name for a browser that needs to have its own folder 1`] = `false`;
exports[`utils getAndCreatePath should create the folder and return the folder name for a browser that needs to have its own folder 2`] = `true`;
exports[`utils getAndCreatePath should create the folder and return the folder name for a device that needs to have its own folder 1`] = `false`;
exports[`utils getAndCreatePath should create the folder and return the folder name for a device that needs to have its own folder 2`] = `true`;
exports[`utils getScreenshotSize should get the screenshot size of a screenshot string with DRP 2 1`] = `
Object {
"height": 768,
"width": 1366,
}
`;
exports[`utils getScreenshotSize should get the screenshot size of a screenshot string with the default DPR 1`] = `
Object {
"height": 1536,
"width": 2732,
}
`;
exports[`utils getToolBarShadowPadding should return 0 when this is a check for Android browser and adding a shadow padding 1`] = `0`;
exports[`utils getToolBarShadowPadding should return 0 when this is a check for a desktop browser 1`] = `0`;
exports[`utils getToolBarShadowPadding should return 0 when this is a check for an Android app 1`] = `0`;
exports[`utils getToolBarShadowPadding should return 0 when this is a check for an Android app with adding a shadow padding 1`] = `0`;
exports[`utils getToolBarShadowPadding should return 0 when this is a check for an iOS app 1`] = `0`;
exports[`utils getToolBarShadowPadding should return 0 when this is a check for an iOS app with adding a shadow padding 1`] = `0`;
exports[`utils getToolBarShadowPadding should return 6 when this is a check for iOS browser and adding a shadow padding 1`] = `6`;