]> source.dussan.org Git - sonarqube.git/blob
623e4d2b0dc50c5f3ee4ac069640928d49f07b1a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render alm configuration creation correctly 1`] = `
4 <Fragment>
5   <Helmet
6     defer={true}
7     encodeSpecialCharacters={true}
8     prioritizeSeoTags={false}
9     title="onboarding.create_project.select_method"
10     titleTemplate="%s"
11   />
12   <A11ySkipTarget
13     anchor="create_project_main"
14   />
15   <div
16     className="page page-limited huge-spacer-bottom position-relative"
17     id="create-project"
18   >
19     <withAppStateContext(CreateProjectModeSelection)
20       almCounts={
21         Object {
22           "azure": 0,
23           "bitbucket": 0,
24           "bitbucketcloud": 0,
25           "github": 0,
26           "gitlab": 0,
27         }
28       }
29       loadingBindings={true}
30       onConfigMode={[Function]}
31       onSelectMode={[Function]}
32     />
33     <AlmBindingDefinitionForm
34       afterSubmit={[Function]}
35       alm="azure"
36       alreadyHaveInstanceConfigured={false}
37       enforceValidation={true}
38       onCancel={[Function]}
39     />
40   </div>
41 </Fragment>
42 `;
43
44 exports[`should render correctly 1`] = `
45 <Fragment>
46   <Helmet
47     defer={true}
48     encodeSpecialCharacters={true}
49     prioritizeSeoTags={false}
50     title="onboarding.create_project.select_method"
51     titleTemplate="%s"
52   />
53   <A11ySkipTarget
54     anchor="create_project_main"
55   />
56   <div
57     className="page page-limited huge-spacer-bottom position-relative"
58     id="create-project"
59   >
60     <withAppStateContext(CreateProjectModeSelection)
61       almCounts={
62         Object {
63           "azure": 0,
64           "bitbucket": 0,
65           "bitbucketcloud": 0,
66           "github": 0,
67           "gitlab": 0,
68         }
69       }
70       loadingBindings={true}
71       onConfigMode={[Function]}
72       onSelectMode={[Function]}
73     />
74   </div>
75 </Fragment>
76 `;
77
78 exports[`should render correctly for azure mode 1`] = `
79 <Fragment>
80   <Helmet
81     defer={true}
82     encodeSpecialCharacters={true}
83     prioritizeSeoTags={false}
84     title="onboarding.create_project.select_method"
85     titleTemplate="%s"
86   />
87   <A11ySkipTarget
88     anchor="create_project_main"
89   />
90   <div
91     className="page page-limited huge-spacer-bottom position-relative"
92     id="create-project"
93   >
94     <AzureProjectCreate
95       almInstances={Array []}
96       canAdmin={false}
97       loadingBindings={true}
98       location={
99         Object {
100           "hash": "",
101           "key": "key",
102           "pathname": "/path",
103           "query": Object {
104             "mode": "azure",
105           },
106           "search": "",
107           "state": Object {},
108         }
109       }
110       onProjectCreate={[Function]}
111       router={
112         Object {
113           "createHref": [MockFunction],
114           "createPath": [MockFunction],
115           "go": [MockFunction],
116           "goBack": [MockFunction],
117           "goForward": [MockFunction],
118           "isActive": [MockFunction],
119           "push": [MockFunction],
120           "replace": [MockFunction],
121           "setRouteLeaveHook": [MockFunction],
122         }
123       }
124     />
125   </div>
126 </Fragment>
127 `;
128
129 exports[`should render correctly for bitbucket mode 1`] = `
130 <Fragment>
131   <Helmet
132     defer={true}
133     encodeSpecialCharacters={true}
134     prioritizeSeoTags={false}
135     title="onboarding.create_project.select_method"
136     titleTemplate="%s"
137   />
138   <A11ySkipTarget
139     anchor="create_project_main"
140   />
141   <div
142     className="page page-limited huge-spacer-bottom position-relative"
143     id="create-project"
144   >
145     <BitbucketProjectCreate
146       bitbucketSettings={Array []}
147       canAdmin={false}
148       loadingBindings={true}
149       location={
150         Object {
151           "hash": "",
152           "key": "key",
153           "pathname": "/path",
154           "query": Object {
155             "mode": "bitbucket",
156           },
157           "search": "",
158           "state": Object {},
159         }
160       }
161       onProjectCreate={[Function]}
162       router={
163         Object {
164           "createHref": [MockFunction],
165           "createPath": [MockFunction],
166           "go": [MockFunction],
167           "goBack": [MockFunction],
168           "goForward": [MockFunction],
169           "isActive": [MockFunction],
170           "push": [MockFunction],
171           "replace": [MockFunction],
172           "setRouteLeaveHook": [MockFunction],
173         }
174       }
175     />
176   </div>
177 </Fragment>
178 `;
179
180 exports[`should render correctly for bitbucketcloud mode 1`] = `
181 <Fragment>
182   <Helmet
183     defer={true}
184     encodeSpecialCharacters={true}
185     prioritizeSeoTags={false}
186     title="onboarding.create_project.select_method"
187     titleTemplate="%s"
188   />
189   <A11ySkipTarget
190     anchor="create_project_main"
191   />
192   <div
193     className="page page-limited huge-spacer-bottom position-relative"
194     id="create-project"
195   >
196     <BitbucketCloudProjectCreate
197       canAdmin={false}
198       loadingBindings={true}
199       location={
200         Object {
201           "hash": "",
202           "key": "key",
203           "pathname": "/path",
204           "query": Object {
205             "mode": "bitbucketcloud",
206           },
207           "search": "",
208           "state": Object {},
209         }
210       }
211       onProjectCreate={[Function]}
212       router={
213         Object {
214           "createHref": [MockFunction],
215           "createPath": [MockFunction],
216           "go": [MockFunction],
217           "goBack": [MockFunction],
218           "goForward": [MockFunction],
219           "isActive": [MockFunction],
220           "push": [MockFunction],
221           "replace": [MockFunction],
222           "setRouteLeaveHook": [MockFunction],
223         }
224       }
225       settings={Array []}
226     />
227   </div>
228 </Fragment>
229 `;
230
231 exports[`should render correctly for github mode 1`] = `
232 <Fragment>
233   <Helmet
234     defer={true}
235     encodeSpecialCharacters={true}
236     prioritizeSeoTags={false}
237     title="onboarding.create_project.select_method"
238     titleTemplate="%s"
239   />
240   <A11ySkipTarget
241     anchor="create_project_main"
242   />
243   <div
244     className="page page-limited huge-spacer-bottom position-relative"
245     id="create-project"
246   >
247     <GitHubProjectCreate
248       almInstances={Array []}
249       canAdmin={false}
250       loadingBindings={true}
251       location={
252         Object {
253           "hash": "",
254           "key": "key",
255           "pathname": "/path",
256           "query": Object {
257             "mode": "github",
258           },
259           "search": "",
260           "state": Object {},
261         }
262       }
263       onProjectCreate={[Function]}
264       router={
265         Object {
266           "createHref": [MockFunction],
267           "createPath": [MockFunction],
268           "go": [MockFunction],
269           "goBack": [MockFunction],
270           "goForward": [MockFunction],
271           "isActive": [MockFunction],
272           "push": [MockFunction],
273           "replace": [MockFunction],
274           "setRouteLeaveHook": [MockFunction],
275         }
276       }
277     />
278   </div>
279 </Fragment>
280 `;
281
282 exports[`should render correctly for gitlab mode 1`] = `
283 <Fragment>
284   <Helmet
285     defer={true}
286     encodeSpecialCharacters={true}
287     prioritizeSeoTags={false}
288     title="onboarding.create_project.select_method"
289     titleTemplate="%s"
290   />
291   <A11ySkipTarget
292     anchor="create_project_main"
293   />
294   <div
295     className="page page-limited huge-spacer-bottom position-relative"
296     id="create-project"
297   >
298     <GitlabProjectCreate
299       almInstances={Array []}
300       canAdmin={false}
301       loadingBindings={true}
302       location={
303         Object {
304           "hash": "",
305           "key": "key",
306           "pathname": "/path",
307           "query": Object {
308             "mode": "gitlab",
309           },
310           "search": "",
311           "state": Object {},
312         }
313       }
314       onProjectCreate={[Function]}
315       router={
316         Object {
317           "createHref": [MockFunction],
318           "createPath": [MockFunction],
319           "go": [MockFunction],
320           "goBack": [MockFunction],
321           "goForward": [MockFunction],
322           "isActive": [MockFunction],
323           "push": [MockFunction],
324           "replace": [MockFunction],
325           "setRouteLeaveHook": [MockFunction],
326         }
327       }
328     />
329   </div>
330 </Fragment>
331 `;
332
333 exports[`should render correctly for manual mode 1`] = `
334 <Fragment>
335   <Helmet
336     defer={true}
337     encodeSpecialCharacters={true}
338     prioritizeSeoTags={false}
339     title="onboarding.create_project.select_method"
340     titleTemplate="%s"
341   />
342   <A11ySkipTarget
343     anchor="create_project_main"
344   />
345   <div
346     className="page page-limited huge-spacer-bottom position-relative"
347     id="create-project"
348   >
349     <ManualProjectCreate
350       branchesEnabled={false}
351       onProjectCreate={[Function]}
352     />
353   </div>
354 </Fragment>
355 `;