]> source.dussan.org Git - sonarqube.git/blob
1d7755f6e7acdaad86246ae929765b69c1c571ed
[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       canAdmin={false}
96       loadingBindings={true}
97       location={
98         Object {
99           "hash": "",
100           "key": "key",
101           "pathname": "/path",
102           "query": Object {
103             "mode": "azure",
104           },
105           "search": "",
106           "state": Object {},
107         }
108       }
109       onProjectCreate={[Function]}
110       router={
111         Object {
112           "createHref": [MockFunction],
113           "createPath": [MockFunction],
114           "go": [MockFunction],
115           "goBack": [MockFunction],
116           "goForward": [MockFunction],
117           "isActive": [MockFunction],
118           "push": [MockFunction],
119           "replace": [MockFunction],
120           "setRouteLeaveHook": [MockFunction],
121         }
122       }
123       settings={Array []}
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       canAdmin={false}
249       loadingBindings={true}
250       location={
251         Object {
252           "hash": "",
253           "key": "key",
254           "pathname": "/path",
255           "query": Object {
256             "mode": "github",
257           },
258           "search": "",
259           "state": Object {},
260         }
261       }
262       onProjectCreate={[Function]}
263       router={
264         Object {
265           "createHref": [MockFunction],
266           "createPath": [MockFunction],
267           "go": [MockFunction],
268           "goBack": [MockFunction],
269           "goForward": [MockFunction],
270           "isActive": [MockFunction],
271           "push": [MockFunction],
272           "replace": [MockFunction],
273           "setRouteLeaveHook": [MockFunction],
274         }
275       }
276       settings={Array []}
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       canAdmin={false}
300       loadingBindings={true}
301       location={
302         Object {
303           "hash": "",
304           "key": "key",
305           "pathname": "/path",
306           "query": Object {
307             "mode": "gitlab",
308           },
309           "search": "",
310           "state": Object {},
311         }
312       }
313       onProjectCreate={[Function]}
314       router={
315         Object {
316           "createHref": [MockFunction],
317           "createPath": [MockFunction],
318           "go": [MockFunction],
319           "goBack": [MockFunction],
320           "goForward": [MockFunction],
321           "isActive": [MockFunction],
322           "push": [MockFunction],
323           "replace": [MockFunction],
324           "setRouteLeaveHook": [MockFunction],
325         }
326       }
327       settings={Array []}
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 `;