]> source.dussan.org Git - sonarqube.git/blob
5b7b823d2099efac46cae07d14e1776dccff5071
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render with auto personal organization bind page 1`] = `
4 <AlmApplicationInstalling
5   almKey="github"
6 />
7 `;
8
9 exports[`should render with auto personal organization bind page 2`] = `
10 <Fragment>
11   <HelmetWrapper
12     defer={true}
13     encodeSpecialCharacters={true}
14     title="onboarding.import_organization.personal.page.header"
15     titleTemplate="%s"
16   />
17   <div
18     className="sonarcloud page page-limited"
19   >
20     <header
21       className="page-header"
22     >
23       <h1
24         className="page-title big-spacer-bottom"
25       >
26         onboarding.import_organization.personal.page.header
27       </h1>
28     </header>
29     <AutoPersonalOrganizationBind
30       almApplication={
31         Object {
32           "backgroundColor": "blue",
33           "iconPath": "icon/path",
34           "installationUrl": "https://alm.installation.url",
35           "key": "github",
36           "name": "GitHub",
37         }
38       }
39       almInstallId="foo"
40       almOrganization={
41         Object {
42           "avatar": "my-avatar",
43           "key": "foo",
44           "name": "Foo",
45           "personal": true,
46           "privateRepos": 0,
47           "publicRepos": 3,
48         }
49       }
50       handleCancelImport={[Function]}
51       handleOrgDetailsFinish={[Function]}
52       handleOrgDetailsStepOpen={[Function]}
53       importPersonalOrg={
54         Object {
55           "actions": Object {
56             "admin": true,
57           },
58           "key": "foo",
59           "name": "Foo",
60         }
61       }
62       onDone={[Function]}
63       step={0}
64       subscriptionPlans={
65         Array [
66           Object {
67             "maxNcloc": 100000,
68             "price": 10,
69           },
70           Object {
71             "maxNcloc": 250000,
72             "price": 75,
73           },
74         ]
75       }
76       updateOrganization={[MockFunction]}
77     />
78   </div>
79 </Fragment>
80 `;
81
82 exports[`should render with auto tab displayed 1`] = `
83 <Fragment>
84   <HelmetWrapper
85     defer={true}
86     encodeSpecialCharacters={true}
87     title="onboarding.create_organization.page.header"
88     titleTemplate="%s"
89   />
90   <div
91     className="sonarcloud page page-limited"
92   >
93     <header
94       className="page-header"
95     >
96       <h1
97         className="page-title big-spacer-bottom"
98       >
99         onboarding.create_organization.page.header
100       </h1>
101       <p
102         className="page-description"
103       >
104         onboarding.create_organization.page.description
105       </p>
106     </header>
107     <Tabs
108       onChange={[Function]}
109       selected="auto"
110       tabs={
111         Array [
112           Object {
113             "key": "auto",
114             "node": "onboarding.import_organization.github",
115           },
116           Object {
117             "key": "manual",
118             "node": "onboarding.create_organization.create_manually",
119           },
120         ]
121       }
122     />
123     <ManualOrganizationCreate
124       className="hidden"
125       createOrganization={[MockFunction]}
126       handleOrgDetailsFinish={[Function]}
127       handleOrgDetailsStepOpen={[Function]}
128       onDone={[Function]}
129       onUpgradeFail={[Function]}
130       step={0}
131       subscriptionPlans={
132         Array [
133           Object {
134             "maxNcloc": 100000,
135             "price": 10,
136           },
137           Object {
138             "maxNcloc": 250000,
139             "price": 75,
140           },
141         ]
142       }
143     />
144     <withRouter(RemoteOrganizationChoose)
145       almApplication={
146         Object {
147           "backgroundColor": "blue",
148           "iconPath": "icon/path",
149           "installationUrl": "https://alm.installation.url",
150           "key": "github",
151           "name": "GitHub",
152         }
153       }
154       almUnboundApplications={Array []}
155       className=""
156     />
157   </div>
158 </Fragment>
159 `;
160
161 exports[`should render with auto tab selected and manual disabled 1`] = `
162 <AlmApplicationInstalling
163   almKey="github"
164 />
165 `;
166
167 exports[`should render with auto tab selected and manual disabled 2`] = `
168 <Fragment>
169   <HelmetWrapper
170     defer={true}
171     encodeSpecialCharacters={true}
172     title="onboarding.create_organization.page.header"
173     titleTemplate="%s"
174   />
175   <div
176     className="sonarcloud page page-limited"
177   >
178     <header
179       className="page-header"
180     >
181       <h1
182         className="page-title big-spacer-bottom"
183       >
184         onboarding.create_organization.page.header
185       </h1>
186       <p
187         className="page-description"
188       >
189         onboarding.create_organization.page.description
190       </p>
191     </header>
192     <Tabs
193       onChange={[Function]}
194       selected="auto"
195       tabs={
196         Array [
197           Object {
198             "key": "auto",
199             "node": "onboarding.import_organization.github",
200           },
201           Object {
202             "key": "manual",
203             "node": "onboarding.create_organization.create_manually",
204           },
205         ]
206       }
207     />
208     <ManualOrganizationCreate
209       className="hidden"
210       createOrganization={[MockFunction]}
211       handleOrgDetailsFinish={[Function]}
212       handleOrgDetailsStepOpen={[Function]}
213       onDone={[Function]}
214       onUpgradeFail={[Function]}
215       step={0}
216       subscriptionPlans={
217         Array [
218           Object {
219             "maxNcloc": 100000,
220             "price": 10,
221           },
222           Object {
223             "maxNcloc": 250000,
224             "price": 75,
225           },
226         ]
227       }
228     />
229     <AutoOrganizationCreate
230       almApplication={
231         Object {
232           "backgroundColor": "blue",
233           "iconPath": "icon/path",
234           "installationUrl": "https://alm.installation.url",
235           "key": "github",
236           "name": "GitHub",
237         }
238       }
239       almInstallId="foo"
240       almOrganization={
241         Object {
242           "avatar": "my-avatar",
243           "description": "Continuous Code Quality",
244           "key": "sonarsource",
245           "name": "SonarSource",
246           "personal": false,
247           "privateRepos": 0,
248           "publicRepos": 3,
249           "url": "https://www.sonarsource.com",
250         }
251       }
252       className=""
253       createOrganization={[MockFunction]}
254       handleCancelImport={[Function]}
255       handleOrgDetailsFinish={[Function]}
256       handleOrgDetailsStepOpen={[Function]}
257       onDone={[Function]}
258       onOrgCreated={[Function]}
259       onUpgradeFail={[Function]}
260       step={0}
261       subscriptionPlans={
262         Array [
263           Object {
264             "maxNcloc": 100000,
265             "price": 10,
266           },
267           Object {
268             "maxNcloc": 250000,
269             "price": 75,
270           },
271         ]
272       }
273       unboundOrganizations={
274         Array [
275           Object {
276             "actions": Object {
277               "admin": true,
278             },
279             "key": "foo",
280             "name": "Foo",
281           },
282         ]
283       }
284     />
285   </div>
286 </Fragment>
287 `;
288
289 exports[`should render with manual tab displayed 1`] = `
290 <Fragment>
291   <HelmetWrapper
292     defer={true}
293     encodeSpecialCharacters={true}
294     title="onboarding.create_organization.page.header"
295     titleTemplate="%s"
296   />
297   <div
298     className="sonarcloud page page-limited"
299   >
300     <header
301       className="page-header"
302     >
303       <h1
304         className="page-title big-spacer-bottom"
305       >
306         onboarding.create_organization.page.header
307       </h1>
308       <p
309         className="page-description"
310       >
311         onboarding.create_organization.page.description
312       </p>
313     </header>
314     <ManualOrganizationCreate
315       createOrganization={[MockFunction]}
316       handleOrgDetailsFinish={[Function]}
317       handleOrgDetailsStepOpen={[Function]}
318       onDone={[Function]}
319       onUpgradeFail={[Function]}
320       step={0}
321       subscriptionPlans={
322         Array [
323           Object {
324             "maxNcloc": 100000,
325             "price": 10,
326           },
327           Object {
328             "maxNcloc": 250000,
329             "price": 75,
330           },
331         ]
332       }
333     />
334   </div>
335 </Fragment>
336 `;
337
338 exports[`should render with organization bind page 1`] = `
339 <AlmApplicationInstalling
340   almKey="github"
341 />
342 `;
343
344 exports[`should render with organization bind page 2`] = `
345 <Fragment>
346   <HelmetWrapper
347     defer={true}
348     encodeSpecialCharacters={true}
349     title="onboarding.create_organization.page.header"
350     titleTemplate="%s"
351   />
352   <div
353     className="sonarcloud page page-limited"
354   >
355     <header
356       className="page-header"
357     >
358       <h1
359         className="page-title big-spacer-bottom"
360       >
361         onboarding.create_organization.page.header
362       </h1>
363       <p
364         className="page-description"
365       >
366         onboarding.create_organization.page.description
367       </p>
368     </header>
369     <Tabs
370       onChange={[Function]}
371       selected="auto"
372       tabs={
373         Array [
374           Object {
375             "key": "auto",
376             "node": "onboarding.import_organization.github",
377           },
378           Object {
379             "key": "manual",
380             "node": "onboarding.create_organization.create_manually",
381           },
382         ]
383       }
384     />
385     <ManualOrganizationCreate
386       className="hidden"
387       createOrganization={[MockFunction]}
388       handleOrgDetailsFinish={[Function]}
389       handleOrgDetailsStepOpen={[Function]}
390       onDone={[Function]}
391       onUpgradeFail={[Function]}
392       step={0}
393       subscriptionPlans={
394         Array [
395           Object {
396             "maxNcloc": 100000,
397             "price": 10,
398           },
399           Object {
400             "maxNcloc": 250000,
401             "price": 75,
402           },
403         ]
404       }
405     />
406     <AutoOrganizationCreate
407       almApplication={
408         Object {
409           "backgroundColor": "blue",
410           "iconPath": "icon/path",
411           "installationUrl": "https://alm.installation.url",
412           "key": "github",
413           "name": "GitHub",
414         }
415       }
416       almInstallId="foo"
417       almOrganization={
418         Object {
419           "avatar": "my-avatar",
420           "key": "foo",
421           "name": "Foo",
422           "personal": false,
423           "privateRepos": 0,
424           "publicRepos": 3,
425         }
426       }
427       className=""
428       createOrganization={[MockFunction]}
429       handleCancelImport={[Function]}
430       handleOrgDetailsFinish={[Function]}
431       handleOrgDetailsStepOpen={[Function]}
432       onDone={[Function]}
433       onOrgCreated={[Function]}
434       onUpgradeFail={[Function]}
435       step={0}
436       subscriptionPlans={
437         Array [
438           Object {
439             "maxNcloc": 100000,
440             "price": 10,
441           },
442           Object {
443             "maxNcloc": 250000,
444             "price": 75,
445           },
446         ]
447       }
448       unboundOrganizations={
449         Array [
450           Object {
451             "actions": Object {
452               "admin": true,
453             },
454             "key": "foo",
455             "name": "Foo",
456           },
457         ]
458       }
459     />
460   </div>
461 </Fragment>
462 `;
463
464 exports[`should switch tabs 1`] = `
465 <Fragment>
466   <HelmetWrapper
467     defer={true}
468     encodeSpecialCharacters={true}
469     title="onboarding.create_organization.page.header"
470     titleTemplate="%s"
471   />
472   <div
473     className="sonarcloud page page-limited"
474   >
475     <header
476       className="page-header"
477     >
478       <h1
479         className="page-title big-spacer-bottom"
480       >
481         onboarding.create_organization.page.header
482       </h1>
483       <p
484         className="page-description"
485       >
486         onboarding.create_organization.page.description
487       </p>
488     </header>
489     <Tabs
490       onChange={[Function]}
491       selected="auto"
492       tabs={
493         Array [
494           Object {
495             "key": "auto",
496             "node": "onboarding.import_organization.github",
497           },
498           Object {
499             "key": "manual",
500             "node": "onboarding.create_organization.create_manually",
501           },
502         ]
503       }
504     />
505     <ManualOrganizationCreate
506       className="hidden"
507       createOrganization={[MockFunction]}
508       handleOrgDetailsFinish={[Function]}
509       handleOrgDetailsStepOpen={[Function]}
510       onDone={[Function]}
511       onUpgradeFail={[Function]}
512       step={0}
513       subscriptionPlans={
514         Array [
515           Object {
516             "maxNcloc": 100000,
517             "price": 10,
518           },
519           Object {
520             "maxNcloc": 250000,
521             "price": 75,
522           },
523         ]
524       }
525     />
526     <withRouter(RemoteOrganizationChoose)
527       almApplication={
528         Object {
529           "backgroundColor": "blue",
530           "iconPath": "icon/path",
531           "installationUrl": "https://alm.installation.url",
532           "key": "github",
533           "name": "GitHub",
534         }
535       }
536       almUnboundApplications={Array []}
537       className=""
538     />
539   </div>
540 </Fragment>
541 `;