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