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