@zohodesk/dot 1.0.0-temp-187.10 → 1.0.0-temp-208.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.
Files changed (141) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +9 -0
  3. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +29 -0
  4. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +7 -0
  5. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +7 -0
  6. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +7 -0
  7. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +7 -0
  8. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +7 -0
  9. package/assets/Appearance/light/mode/Dot_LightMode.module.css +29 -0
  10. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +7 -0
  11. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +7 -0
  12. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +7 -0
  13. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +7 -0
  14. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +7 -0
  15. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +29 -0
  16. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +7 -0
  17. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +7 -0
  18. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +7 -0
  19. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +7 -0
  20. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +7 -0
  21. package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +3 -3
  22. package/es/DotProvider/libraryChunks/appearance/component/Dark_Component.js +2 -0
  23. package/es/DotProvider/libraryChunks/appearance/component/Light_Component.js +2 -0
  24. package/es/DotProvider/libraryChunks/appearance/component/PureDark_Component.js +2 -0
  25. package/es/DotProvider/utils/themeAppearanceAssetsConfig.js +3 -3
  26. package/es/IconButton/IconButton.js +2 -1
  27. package/es/IconButton/IconButton.module.css +30 -3
  28. package/es/IconButton/__tests__/IconButton.spec.js +9 -0
  29. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +87 -22
  30. package/es/IconButton/props/defaultProps.js +1 -0
  31. package/es/IconButton/props/propTypes.js +1 -0
  32. package/es/Onboarding/CarouselDots/CarouselDot/CarouselDot.js +34 -0
  33. package/es/Onboarding/CarouselDots/CarouselDot/__tests__/CarouselDot.spec.js +43 -0
  34. package/es/Onboarding/CarouselDots/CarouselDot/__tests__/__snapshots__/CarouselDot.spec.js.snap +51 -0
  35. package/es/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +83 -0
  36. package/es/Onboarding/CarouselDots/CarouselDot/props/defaultProps.js +6 -0
  37. package/es/Onboarding/CarouselDots/CarouselDot/props/propTypes.js +9 -0
  38. package/es/Onboarding/CarouselDots/CarouselDots.js +43 -0
  39. package/es/Onboarding/CarouselDots/__tests__/CarouselDots.spec.js +64 -0
  40. package/es/Onboarding/CarouselDots/__tests__/__snapshots__/CarouselDots.spec.js.snap +94 -0
  41. package/es/Onboarding/CarouselDots/css/CarouselDots.module.css +6 -0
  42. package/es/Onboarding/CarouselDots/props/defaultProps.js +7 -0
  43. package/es/Onboarding/CarouselDots/props/propTypes.js +13 -0
  44. package/es/Onboarding/Onboarding.js +303 -0
  45. package/es/Onboarding/__tests__/Onboarding.spec.js +428 -0
  46. package/es/Onboarding/__tests__/__snapshots__/Onboarding.spec.js.snap +3573 -0
  47. package/es/Onboarding/css/Onboarding.module.css +460 -0
  48. package/es/Onboarding/hooks/useOnboarding.js +34 -0
  49. package/es/Onboarding/hooks/useOnboardingSlider.js +55 -0
  50. package/es/Onboarding/props/defaultProps.js +13 -0
  51. package/es/Onboarding/props/propTypes.js +55 -0
  52. package/es/VideoLookup/VideoLookup.js +81 -0
  53. package/es/VideoLookup/__tests__/VideoLookup.spec.js +86 -0
  54. package/es/VideoLookup/__tests__/__snapshots__/VideoLookup.spec.js.snap +434 -0
  55. package/es/VideoLookup/css/VideoLookup.module.css +67 -0
  56. package/es/VideoLookup/props/defaultProps.js +8 -0
  57. package/es/VideoLookup/props/propTypes.js +12 -0
  58. package/es/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1 -1
  59. package/es/common/dot_boxShadow.module.css +6 -0
  60. package/es/form/fields/Fields.module.css +0 -4
  61. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -4
  62. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +116 -116
  63. package/es/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  64. package/es/form/fields/TextEditorField/__tests__/__snapshots__/TextEditorField.spec.js.snap +1 -1
  65. package/es/form/fields/TextEditorWrapper/__tests__/__snapshots__/TextEditorWrapper.spec.js.snap +1 -1
  66. package/es/form/fields/TextareaField/__tests__/__snapshots__/TextareaField.spec.js.snap +1 -1
  67. package/es/index.js +1 -0
  68. package/es/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
  69. package/es/list/DepartmentDropDown/props/defaultProps.js +1 -2
  70. package/es/list/DepartmentDropDown/props/propTypes.js +0 -3
  71. package/es/list/status/StatusListItem/StatusListItem.module.css +4 -2
  72. package/es/lookup/header/Close/__tests__/__snapshots__/Close.spec.js.snap +1 -1
  73. package/es/lookup/header/TicketHeader/__tests__/__snapshots__/TicketHeader.spec.js.snap +1 -1
  74. package/es/utils/General.js +2 -1
  75. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +2 -4
  76. package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  77. package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +2 -7
  78. package/es/v1/list/DepartmentDropDown/props/defaultProps.js +1 -2
  79. package/es/v1/list/DepartmentDropDown/props/propTypes.js +0 -3
  80. package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +3 -3
  81. package/lib/DotProvider/libraryChunks/appearance/component/Dark_Component.js +5 -0
  82. package/lib/DotProvider/libraryChunks/appearance/component/Light_Component.js +5 -0
  83. package/lib/DotProvider/libraryChunks/appearance/component/PureDark_Component.js +5 -0
  84. package/lib/DotProvider/utils/themeAppearanceAssetsConfig.js +3 -3
  85. package/lib/IconButton/IconButton.js +2 -1
  86. package/lib/IconButton/IconButton.module.css +30 -3
  87. package/lib/IconButton/__tests__/IconButton.spec.js +35 -26
  88. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +87 -22
  89. package/lib/IconButton/props/defaultProps.js +1 -0
  90. package/lib/IconButton/props/propTypes.js +1 -0
  91. package/lib/Onboarding/CarouselDots/CarouselDot/CarouselDot.js +44 -0
  92. package/lib/Onboarding/CarouselDots/CarouselDot/__tests__/CarouselDot.spec.js +50 -0
  93. package/lib/Onboarding/CarouselDots/CarouselDot/__tests__/__snapshots__/CarouselDot.spec.js.snap +51 -0
  94. package/lib/Onboarding/CarouselDots/CarouselDot/css/CarouselDot.module.css +83 -0
  95. package/lib/Onboarding/CarouselDots/CarouselDot/props/defaultProps.js +13 -0
  96. package/lib/Onboarding/CarouselDots/CarouselDot/props/propTypes.js +20 -0
  97. package/lib/Onboarding/CarouselDots/CarouselDots.js +66 -0
  98. package/lib/Onboarding/CarouselDots/__tests__/CarouselDots.spec.js +71 -0
  99. package/lib/Onboarding/CarouselDots/__tests__/__snapshots__/CarouselDots.spec.js.snap +94 -0
  100. package/lib/Onboarding/CarouselDots/css/CarouselDots.module.css +6 -0
  101. package/lib/Onboarding/CarouselDots/props/defaultProps.js +14 -0
  102. package/lib/Onboarding/CarouselDots/props/propTypes.js +24 -0
  103. package/lib/Onboarding/Onboarding.js +316 -0
  104. package/lib/Onboarding/__tests__/Onboarding.spec.js +435 -0
  105. package/lib/Onboarding/__tests__/__snapshots__/Onboarding.spec.js.snap +3573 -0
  106. package/lib/Onboarding/css/Onboarding.module.css +460 -0
  107. package/lib/Onboarding/hooks/useOnboarding.js +59 -0
  108. package/lib/Onboarding/hooks/useOnboardingSlider.js +85 -0
  109. package/lib/Onboarding/props/defaultProps.js +20 -0
  110. package/lib/Onboarding/props/propTypes.js +72 -0
  111. package/lib/VideoLookup/VideoLookup.js +104 -0
  112. package/lib/VideoLookup/__tests__/VideoLookup.spec.js +93 -0
  113. package/lib/VideoLookup/__tests__/__snapshots__/VideoLookup.spec.js.snap +434 -0
  114. package/lib/VideoLookup/css/VideoLookup.module.css +67 -0
  115. package/lib/VideoLookup/props/defaultProps.js +15 -0
  116. package/lib/VideoLookup/props/propTypes.js +23 -0
  117. package/lib/alert/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +1 -1
  118. package/lib/common/dot_boxShadow.module.css +6 -0
  119. package/lib/form/fields/Fields.module.css +0 -4
  120. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -5
  121. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +116 -116
  122. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  123. package/lib/form/fields/TextEditorField/__tests__/__snapshots__/TextEditorField.spec.js.snap +1 -1
  124. package/lib/form/fields/TextEditorWrapper/__tests__/__snapshots__/TextEditorWrapper.spec.js.snap +1 -1
  125. package/lib/form/fields/TextareaField/__tests__/__snapshots__/TextareaField.spec.js.snap +1 -1
  126. package/lib/index.js +9 -0
  127. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
  128. package/lib/list/DepartmentDropDown/props/defaultProps.js +1 -2
  129. package/lib/list/DepartmentDropDown/props/propTypes.js +0 -2
  130. package/lib/list/status/StatusListItem/StatusListItem.module.css +4 -2
  131. package/lib/lookup/header/Close/__tests__/__snapshots__/Close.spec.js.snap +1 -1
  132. package/lib/lookup/header/TicketHeader/__tests__/__snapshots__/TicketHeader.spec.js.snap +1 -1
  133. package/lib/utils/General.js +5 -1
  134. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -5
  135. package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +1 -2
  136. package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +3 -8
  137. package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +1 -2
  138. package/lib/v1/list/DepartmentDropDown/props/propTypes.js +0 -2
  139. package/package.json +10 -8
  140. package/result.json +1 -1
  141. package/unittest/index.html +4 -12
@@ -0,0 +1,428 @@
1
+ import React from 'react';
2
+ import { render } from '@testing-library/react';
3
+ import Onboarding from "../Onboarding";
4
+ describe('Onboarding', () => {
5
+ test('rendering the defult props', () => {
6
+ const {
7
+ asFragment
8
+ } = render( /*#__PURE__*/React.createElement(Onboarding, null));
9
+ expect(asFragment()).toMatchSnapshot();
10
+ });
11
+ test('rendering data of hasCloseIcon', () => {
12
+ const {
13
+ asFragment
14
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
15
+ hasCloseIcon: true,
16
+ onClose: () => {}
17
+ }));
18
+ expect(asFragment()).toMatchSnapshot();
19
+ });
20
+ test('rendering data without hasCloseIcon', () => {
21
+ const {
22
+ asFragment
23
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
24
+ hasCloseIcon: false
25
+ }));
26
+ expect(asFragment()).toMatchSnapshot();
27
+ });
28
+ test('rendering prop of ribbonText', () => {
29
+ const {
30
+ asFragment
31
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
32
+ hasRibbon: true,
33
+ ribbonText: "closed"
34
+ }));
35
+ expect(asFragment()).toMatchSnapshot();
36
+ });
37
+ test('rendering the prop of hasRibbon is false', () => {
38
+ const {
39
+ asFragment
40
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
41
+ hasRibbon: false
42
+ }));
43
+ expect(asFragment()).toMatchSnapshot();
44
+ });
45
+ test('rendering data with customStyle', () => {
46
+ const {
47
+ asFragment
48
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
49
+ customStyle: {
50
+ mainContainer: "customMainContainer"
51
+ }
52
+ }));
53
+ expect(asFragment()).toMatchSnapshot();
54
+ });
55
+ test('rendering data of sliderData with heading and description', () => {
56
+ const {
57
+ asFragment
58
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
59
+ sliderData: [{
60
+ tabName: "slide1",
61
+ heading: "Onboarding Heading",
62
+ description: "Onboarding Description"
63
+ }]
64
+ }));
65
+ expect(asFragment()).toMatchSnapshot();
66
+ });
67
+ test('rendering data of sliderData with image ', () => {
68
+ const {
69
+ asFragment
70
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
71
+ sliderData: [{
72
+ imageSource: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3Mu0NdfXXqvCExZ9YG_j93CKuU4DIdcIlEQ&s"
73
+ }]
74
+ }));
75
+ expect(asFragment()).toMatchSnapshot();
76
+ });
77
+ test('rendering data of image with hasVideoPlayButton ', () => {
78
+ const {
79
+ asFragment
80
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
81
+ sliderData: [{
82
+ hasVideoPlayButton: true,
83
+ imageSource: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3Mu0NdfXXqvCExZ9YG_j93CKuU4DIdcIlEQ&s",
84
+ videoLookupSource: {
85
+ link: 'https://static.videezy.com/system/resources/previews/000/043/458/original/30_strings.mp4',
86
+ format: 'mp4'
87
+ }
88
+ }]
89
+ }));
90
+ expect(asFragment()).toMatchSnapshot();
91
+ });
92
+ test('rendering data of image without hasVideoPlayButton', () => {
93
+ const {
94
+ asFragment
95
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
96
+ sliderData: [{
97
+ hasVideoPlayButton: false,
98
+ imageSource: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3Mu0NdfXXqvCExZ9YG_j93CKuU4DIdcIlEQ&s"
99
+ }]
100
+ }));
101
+ expect(asFragment()).toMatchSnapshot();
102
+ });
103
+ test('rendering data of videoSource ', () => {
104
+ const {
105
+ asFragment
106
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
107
+ sliderData: [{
108
+ videoSource: {
109
+ link: 'https://www.w3schools.com/html/mov_bbb.mp4',
110
+ format: 'mp4'
111
+ }
112
+ }]
113
+ }));
114
+ expect(asFragment()).toMatchSnapshot();
115
+ });
116
+ test('rendering data of primaryButtonText', () => {
117
+ const {
118
+ asFragment
119
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
120
+ sliderData: [{
121
+ hasPrimaryButton: true,
122
+ primaryButtonText: "Got it"
123
+ }]
124
+ }));
125
+ expect(asFragment()).toMatchSnapshot();
126
+ });
127
+ test('rendering data without primaryButtonText', () => {
128
+ const {
129
+ asFragment
130
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
131
+ sliderData: [{
132
+ hasPrimaryButton: false
133
+ }]
134
+ }));
135
+ expect(asFragment()).toMatchSnapshot();
136
+ });
137
+ test('rendering data of secondaryButtonText', () => {
138
+ const {
139
+ asFragment
140
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
141
+ sliderData: [{
142
+ hasSecondaryButton: true,
143
+ secondaryButtonText: "read more"
144
+ }]
145
+ }));
146
+ expect(asFragment()).toMatchSnapshot();
147
+ });
148
+ test('rendering data without secondaryButtonText', () => {
149
+ const {
150
+ asFragment
151
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
152
+ sliderData: [{
153
+ hasSecondaryButton: false
154
+ }]
155
+ }));
156
+ expect(asFragment()).toMatchSnapshot();
157
+ });
158
+ test('rendering data of SecondaryButton as link', () => {
159
+ const {
160
+ asFragment
161
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
162
+ sliderData: [{
163
+ hasSecondaryButton: true,
164
+ hasSecondaryButtonLink: true,
165
+ secondaryButtonText: "read more",
166
+ secondaryButtonLink: "https://gc.zoho.com/org/746519053/widgets/4398000000528001"
167
+ }]
168
+ }));
169
+ expect(asFragment()).toMatchSnapshot();
170
+ });
171
+ test('rendering data without SecondaryButton as link', () => {
172
+ const {
173
+ asFragment
174
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
175
+ sliderData: [{
176
+ hasSecondaryButton: true,
177
+ hasSecondaryButtonLink: false,
178
+ secondaryButtonText: "read more"
179
+ }]
180
+ }));
181
+ expect(asFragment()).toMatchSnapshot();
182
+ });
183
+ test('rendering data of customprops for primarybuttonprops ', () => {
184
+ const {
185
+ asFragment
186
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
187
+ sliderData: [{
188
+ tabName: "visibility",
189
+ hasPrimaryButton: true
190
+ }],
191
+ customProps: {
192
+ primaryButtonProps: {
193
+ text: "New primaryButton text "
194
+ }
195
+ }
196
+ }));
197
+ expect(asFragment()).toMatchSnapshot();
198
+ });
199
+ test('rendering data of two sliderData', () => {
200
+ const {
201
+ asFragment
202
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
203
+ sliderData: [{
204
+ tabName: 'slide 1',
205
+ heading: "Onboarding with carousel Slide 1"
206
+ }, {
207
+ tabName: 'slide 2',
208
+ heading: "Onboarding with carousel Slide 2"
209
+ }]
210
+ }));
211
+ expect(asFragment()).toMatchSnapshot();
212
+ });
213
+ test('rendering data of hasBouncAnimationOnMount', () => {
214
+ const {
215
+ asFragment
216
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
217
+ hasBouncAnimationOnMount: true
218
+ }));
219
+ expect(asFragment()).toMatchSnapshot();
220
+ });
221
+ test('rendering data without hasBouncAnimationOnMount', () => {
222
+ const {
223
+ asFragment
224
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
225
+ hasBouncAnimationOnMount: false
226
+ }));
227
+ expect(asFragment()).toMatchSnapshot();
228
+ });
229
+ test('rendering with customId', () => {
230
+ const {
231
+ asFragment
232
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
233
+ customId: "radar_onboarding",
234
+ ribbonText: "new",
235
+ hasCloseIcon: true,
236
+ sliderData: [{
237
+ tabName: "video",
238
+ primaryButtonText: "Got It",
239
+ secondaryButttonText: "learn more",
240
+ hasPrimaryButton: true,
241
+ hasSecondaryButton: true,
242
+ hasVideoPlayButton: true,
243
+ videoSource: {
244
+ link: 'https://www.w3schools.com/html/mov_bbb.mp4',
245
+ format: 'mp4'
246
+ },
247
+ heading: "Video source",
248
+ description: "Onboarding with Video Source – Embeds a video to provide dynamic and allows users to continue watching a video while exploring the interface."
249
+ }]
250
+ }));
251
+ expect(asFragment()).toMatchSnapshot();
252
+ });
253
+ test('rendering with customId - hasSecondaryButtonLink ', () => {
254
+ const {
255
+ asFragment
256
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
257
+ customId: "radar_onboarding",
258
+ ribbonText: "new",
259
+ hasCloseIcon: true,
260
+ sliderData: [{
261
+ tabName: "visibility",
262
+ secondaryButtonText: "learn more",
263
+ hasSecondaryButtonLink: true,
264
+ secondaryButtonLink: "https://gc.zoho.com/org/746519053/widgets/4398000000528001",
265
+ hasSecondaryButton: true
266
+ }]
267
+ }));
268
+ expect(asFragment()).toMatchSnapshot();
269
+ });
270
+ test('rendering with testId', () => {
271
+ const {
272
+ asFragment
273
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
274
+ testId: "radar_onboarding",
275
+ ribbonText: "new",
276
+ hasCloseIcon: true,
277
+ sliderData: [{
278
+ tabName: "video",
279
+ hasVideoPlayButton: true
280
+ }]
281
+ }));
282
+ expect(asFragment()).toMatchSnapshot();
283
+ });
284
+ test('rendering data of Video with videoFormats', () => {
285
+ const {
286
+ asFragment
287
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
288
+ videoFormats: ['webm', 'mp4', 'ogg'],
289
+ sliderData: [{
290
+ hasVideoPlayButton: true,
291
+ videoSource: {
292
+ link: 'https://www.w3schools.com/html/mov_bbb.mp4',
293
+ format: 'mp4'
294
+ },
295
+ videoLookupSource: {
296
+ link: 'https://www.w3schools.com/html/mov_bbb.mp4',
297
+ format: 'mp4'
298
+ }
299
+ }]
300
+ }));
301
+ expect(asFragment()).toMatchSnapshot();
302
+ });
303
+ test('rendering data with hasExpandedButton by hasSecondaryButton, hasSecondaryButtonLink as true', () => {
304
+ const {
305
+ asFragment
306
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
307
+ hasExpandedButton: true,
308
+ sliderData: [{
309
+ hasSecondaryButton: true,
310
+ hasSecondaryButtonLink: true,
311
+ secondaryButtonLink: "https://gc.zoho.com/org/746519053/widgets/4398000000528001"
312
+ }]
313
+ }));
314
+ expect(asFragment()).toMatchSnapshot();
315
+ });
316
+ test('rendering data with hasExpandedButton - hasSecondaryButton as true, hasSecondaryButtonLink as false', () => {
317
+ const {
318
+ asFragment
319
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
320
+ hasExpandedButton: true,
321
+ sliderData: [{
322
+ hasSecondaryButton: true,
323
+ hasSecondaryButtonLink: false
324
+ }]
325
+ }));
326
+ expect(asFragment()).toMatchSnapshot();
327
+ });
328
+ test('rendering data without hasExpandedButton', () => {
329
+ const {
330
+ asFragment
331
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
332
+ hasExpandedButton: false
333
+ }));
334
+ expect(asFragment()).toMatchSnapshot();
335
+ });
336
+ test('rendering data of customprops for Secondarybuttonprops ', () => {
337
+ const {
338
+ asFragment
339
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
340
+ sliderData: [{
341
+ tabName: "visibility",
342
+ hasSecondaryButton: true
343
+ }],
344
+ customProps: {
345
+ secondaryButtonProps: {
346
+ text: "New secondaryButton text"
347
+ }
348
+ }
349
+ }));
350
+ expect(asFragment()).toMatchSnapshot();
351
+ });
352
+ test('rendering data of customprops for secondaryButtonLinkProps ', () => {
353
+ const {
354
+ asFragment
355
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
356
+ sliderData: [{
357
+ tabName: "visibility",
358
+ secondaryButtonText: "learn more",
359
+ hasSecondaryButtonLink: true,
360
+ secondaryButtonLink: "https://gc.zoho.com/org/746519053/widgets/4398000000528001",
361
+ hasSecondaryButton: true
362
+ }],
363
+ customProps: {
364
+ secondaryButtonLinkProps: {
365
+ target: '_self'
366
+ }
367
+ }
368
+ }));
369
+ expect(asFragment()).toMatchSnapshot();
370
+ });
371
+ test('rendering data of customprops for ribbonProps ', () => {
372
+ const {
373
+ asFragment
374
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
375
+ hasRibbon: true,
376
+ customProps: {
377
+ ribbonProps: {
378
+ type: "sticker"
379
+ }
380
+ }
381
+ }));
382
+ expect(asFragment()).toMatchSnapshot();
383
+ });
384
+ test('rendering data of customprops for footerProps ', () => {
385
+ const {
386
+ asFragment
387
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
388
+ customProps: {
389
+ footerProps: {
390
+ $ui_displayMode: 'inline'
391
+ }
392
+ }
393
+ }));
394
+ expect(asFragment()).toMatchSnapshot();
395
+ });
396
+ test('rendering data of customprops for headingProps ', () => {
397
+ const {
398
+ asFragment
399
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
400
+ sliderData: [{
401
+ tabName: "heading",
402
+ heading: "Slide 6"
403
+ }],
404
+ customProps: {
405
+ headingProps: {
406
+ $ui_size: '12'
407
+ }
408
+ }
409
+ }));
410
+ expect(asFragment()).toMatchSnapshot();
411
+ });
412
+ test('rendering data of customprops for descriptionProps ', () => {
413
+ const {
414
+ asFragment
415
+ } = render( /*#__PURE__*/React.createElement(Onboarding, {
416
+ sliderData: [{
417
+ tabName: "description",
418
+ description: "Discover innovative tools and solutions to streamline your processes and boost productivity on Slide 1."
419
+ }],
420
+ customProps: {
421
+ descriptionProps: {
422
+ $ui_size: '10'
423
+ }
424
+ }
425
+ }));
426
+ expect(asFragment()).toMatchSnapshot();
427
+ });
428
+ });