]> source.dussan.org Git - sonarqube.git/blob
f72efa1d911a275b73d88c207299dbd87829349b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: Azure DevOps 1`] = `
4 <div
5   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
6 >
7   <div
8     className="actions pull-right"
9   >
10     <Button
11       onClick={[Function]}
12     >
13       <EditIcon
14         className="spacer-right"
15       />
16       edit
17     </Button>
18     <Button
19       className="button-red spacer-left"
20       onClick={[Function]}
21     >
22       <DeleteIcon
23         className="spacer-right"
24       />
25       delete
26     </Button>
27   </div>
28   <div
29     className="big-spacer-bottom"
30   >
31     <h3>
32       key
33     </h3>
34   </div>
35   <i
36     className="spinner spacer-right"
37   />
38   settings.almintegration.checking_configuration
39 </div>
40 `;
41
42 exports[`should render correctly: default 1`] = `
43 <div
44   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
45 >
46   <div
47     className="actions pull-right"
48   >
49     <Button
50       onClick={[Function]}
51     >
52       <EditIcon
53         className="spacer-right"
54       />
55       edit
56     </Button>
57     <Button
58       className="button-red spacer-left"
59       onClick={[Function]}
60     >
61       <DeleteIcon
62         className="spacer-right"
63       />
64       delete
65     </Button>
66   </div>
67   <div
68     className="big-spacer-bottom"
69   >
70     <h3>
71       key
72     </h3>
73     <span>
74       http://github.enterprise.com
75     </span>
76   </div>
77   <i
78     className="spinner spacer-right"
79   />
80   settings.almintegration.checking_configuration
81 </div>
82 `;
83
84 exports[`should render correctly: error 1`] = `
85 <div
86   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
87 >
88   <div
89     className="actions pull-right"
90   >
91     <Button
92       onClick={[Function]}
93     >
94       <EditIcon
95         className="spacer-right"
96       />
97       edit
98     </Button>
99     <Button
100       className="button-red spacer-left"
101       onClick={[Function]}
102     >
103       <DeleteIcon
104         className="spacer-right"
105       />
106       delete
107     </Button>
108   </div>
109   <div
110     className="big-spacer-bottom"
111   >
112     <h3>
113       key
114     </h3>
115     <span>
116       http://github.enterprise.com
117     </span>
118   </div>
119   <div
120     className="display-flex-row spacer-bottom"
121   >
122     <div
123       className="huge-spacer-right"
124     >
125       <Tooltip
126         overlay="settings.almintegration.feature.status_reporting.description_pr_and_commits"
127       >
128         <span>
129           settings.almintegration.feature.status_reporting.title
130         </span>
131       </Tooltip>
132       <AlertErrorIcon
133         className="spacer-left"
134       />
135     </div>
136     <div>
137       <Tooltip
138         overlay="settings.almintegration.feature.alm_repo_import.description"
139       >
140         <span>
141           settings.almintegration.feature.alm_repo_import.title
142         </span>
143       </Tooltip>
144       <AlertErrorIcon
145         className="spacer-left"
146       />
147     </div>
148   </div>
149   <div
150     className="width-50"
151   >
152     <Alert
153       variant="error"
154     >
155       Oops, something went wrong
156     </Alert>
157   </div>
158   <Button
159     className="big-spacer-top"
160     onClick={[Function]}
161   >
162     settings.almintegration.check_configuration
163   </Button>
164 </div>
165 `;
166
167 exports[`should render correctly: success 1`] = `
168 <div
169   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
170 >
171   <div
172     className="actions pull-right"
173   >
174     <Button
175       onClick={[Function]}
176     >
177       <EditIcon
178         className="spacer-right"
179       />
180       edit
181     </Button>
182     <Button
183       className="button-red spacer-left"
184       onClick={[Function]}
185     >
186       <DeleteIcon
187         className="spacer-right"
188       />
189       delete
190     </Button>
191   </div>
192   <div
193     className="big-spacer-bottom"
194   >
195     <h3>
196       key
197     </h3>
198     <span>
199       http://github.enterprise.com
200     </span>
201   </div>
202   <div
203     className="display-flex-row spacer-bottom"
204   >
205     <div
206       className="huge-spacer-right"
207     >
208       <Tooltip
209         overlay="settings.almintegration.feature.status_reporting.description_pr_and_commits"
210       >
211         <span>
212           settings.almintegration.feature.status_reporting.title
213         </span>
214       </Tooltip>
215       <AlertSuccessIcon
216         className="spacer-left"
217       />
218     </div>
219     <div>
220       <Tooltip
221         overlay="settings.almintegration.feature.alm_repo_import.description"
222       >
223         <span>
224           settings.almintegration.feature.alm_repo_import.title
225         </span>
226       </Tooltip>
227       <AlertSuccessIcon
228         className="spacer-left"
229       />
230     </div>
231   </div>
232   <div
233     className="width-50"
234   />
235   <Button
236     className="big-spacer-top"
237     onClick={[Function]}
238   >
239     settings.almintegration.check_configuration
240   </Button>
241 </div>
242 `;
243
244 exports[`should render correctly: success for Bitbucket Cloud 1`] = `
245 <div
246   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
247 >
248   <div
249     className="actions pull-right"
250   >
251     <Button
252       onClick={[Function]}
253     >
254       <EditIcon
255         className="spacer-right"
256       />
257       edit
258     </Button>
259     <Button
260       className="button-red spacer-left"
261       onClick={[Function]}
262     >
263       <DeleteIcon
264         className="spacer-right"
265       />
266       delete
267     </Button>
268   </div>
269   <div
270     className="big-spacer-bottom"
271   >
272     <h3>
273       key
274     </h3>
275   </div>
276   <div
277     className="display-flex-row spacer-bottom"
278   >
279     <div
280       className="huge-spacer-right"
281     >
282       <Tooltip
283         overlay="settings.almintegration.feature.status_reporting.description_pr"
284       >
285         <span>
286           settings.almintegration.feature.status_reporting.title
287         </span>
288       </Tooltip>
289       <AlertSuccessIcon
290         className="spacer-left"
291       />
292     </div>
293     <div>
294       <Tooltip
295         overlay="settings.almintegration.feature.alm_repo_import.description"
296       >
297         <span>
298           settings.almintegration.feature.alm_repo_import.title
299         </span>
300       </Tooltip>
301       <AlertSuccessIcon
302         className="spacer-left"
303       />
304     </div>
305   </div>
306   <div
307     className="width-50"
308   />
309   <Button
310     className="big-spacer-top"
311     onClick={[Function]}
312   >
313     settings.almintegration.check_configuration
314   </Button>
315 </div>
316 `;
317
318 exports[`should render correctly: success for GitLab 1`] = `
319 <div
320   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
321 >
322   <div
323     className="actions pull-right"
324   >
325     <Button
326       onClick={[Function]}
327     >
328       <EditIcon
329         className="spacer-right"
330       />
331       edit
332     </Button>
333     <Button
334       className="button-red spacer-left"
335       onClick={[Function]}
336     >
337       <DeleteIcon
338         className="spacer-right"
339       />
340       delete
341     </Button>
342   </div>
343   <div
344     className="big-spacer-bottom"
345   >
346     <h3>
347       foo
348     </h3>
349   </div>
350   <div
351     className="display-flex-row spacer-bottom"
352   >
353     <div
354       className="huge-spacer-right"
355     >
356       <Tooltip
357         overlay="settings.almintegration.feature.status_reporting.description_mr"
358       >
359         <span>
360           settings.almintegration.feature.status_reporting.title
361         </span>
362       </Tooltip>
363       <AlertSuccessIcon
364         className="spacer-left"
365       />
366     </div>
367     <div>
368       <Tooltip
369         overlay="settings.almintegration.feature.alm_repo_import.description"
370       >
371         <span>
372           settings.almintegration.feature.alm_repo_import.title
373         </span>
374       </Tooltip>
375       <div
376         className="display-inline-flex-center"
377       >
378         <strong
379           className="spacer-left"
380         >
381           settings.almintegration.feature.alm_repo_import.disabled
382         </strong>
383         <HelpTooltip
384           className="little-spacer-left"
385           overlay="settings.almintegration.feature.alm_repo_import.disabled.no_url"
386         />
387       </div>
388     </div>
389   </div>
390   <div
391     className="width-50"
392   />
393   <Button
394     className="big-spacer-top"
395     onClick={[Function]}
396   >
397     settings.almintegration.check_configuration
398   </Button>
399 </div>
400 `;
401
402 exports[`should render correctly: success with alert 1`] = `
403 <div
404   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
405 >
406   <div
407     className="actions pull-right"
408   >
409     <Button
410       onClick={[Function]}
411     >
412       <EditIcon
413         className="spacer-right"
414       />
415       edit
416     </Button>
417     <Button
418       className="button-red spacer-left"
419       onClick={[Function]}
420     >
421       <DeleteIcon
422         className="spacer-right"
423       />
424       delete
425     </Button>
426   </div>
427   <div
428     className="big-spacer-bottom"
429   >
430     <h3>
431       key
432     </h3>
433     <span>
434       http://github.enterprise.com
435     </span>
436   </div>
437   <div
438     className="display-flex-row spacer-bottom"
439   >
440     <div
441       className="huge-spacer-right"
442     >
443       <Tooltip
444         overlay="settings.almintegration.feature.status_reporting.description_pr_and_commits"
445       >
446         <span>
447           settings.almintegration.feature.status_reporting.title
448         </span>
449       </Tooltip>
450       <AlertSuccessIcon
451         className="spacer-left"
452       />
453     </div>
454     <div>
455       <Tooltip
456         overlay="settings.almintegration.feature.alm_repo_import.description"
457       >
458         <span>
459           settings.almintegration.feature.alm_repo_import.title
460         </span>
461       </Tooltip>
462       <AlertSuccessIcon
463         className="spacer-left"
464       />
465     </div>
466   </div>
467   <div
468     className="width-50"
469   >
470     <Alert
471       variant="success"
472     >
473       settings.almintegration.configuration_valid
474     </Alert>
475     <Alert
476       variant="warning"
477     >
478       <FormattedMessage
479         defaultMessage="settings.almintegration.github.additional_permission"
480         id="settings.almintegration.github.additional_permission"
481         values={
482           {
483             "link": <withAppStateContext(DocLink)
484               to="/devops-platform-integration/github-integration/"
485             >
486               learn_more
487             </withAppStateContext(DocLink)>,
488           }
489         }
490       />
491     </Alert>
492   </div>
493   <Button
494     className="big-spacer-top"
495     onClick={[Function]}
496   >
497     settings.almintegration.check_configuration
498   </Button>
499 </div>
500 `;
501
502 exports[`should render correctly: success with branches disabled 1`] = `
503 <div
504   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
505 >
506   <div
507     className="actions pull-right"
508   >
509     <Button
510       onClick={[Function]}
511     >
512       <EditIcon
513         className="spacer-right"
514       />
515       edit
516     </Button>
517     <Button
518       className="button-red spacer-left"
519       onClick={[Function]}
520     >
521       <DeleteIcon
522         className="spacer-right"
523       />
524       delete
525     </Button>
526   </div>
527   <div
528     className="big-spacer-bottom"
529   >
530     <h3>
531       key
532     </h3>
533     <span>
534       http://github.enterprise.com
535     </span>
536   </div>
537   <div
538     className="display-flex-row spacer-bottom"
539   >
540     <div
541       className="huge-spacer-right"
542     >
543       <Tooltip
544         overlay="settings.almintegration.feature.status_reporting.description_pr_and_commits"
545       >
546         <span>
547           settings.almintegration.feature.status_reporting.title
548         </span>
549       </Tooltip>
550       <div
551         className="display-inline-flex-center"
552       >
553         <strong
554           className="spacer-left"
555         >
556           settings.almintegration.feature.pr_decoration.disabled
557         </strong>
558         <HelpTooltip
559           className="little-spacer-left"
560           overlay={
561             <FormattedMessage
562               defaultMessage="settings.almintegration.feature.pr_decoration.disabled.no_branches"
563               id="settings.almintegration.feature.pr_decoration.disabled.no_branches"
564               values={
565                 {
566                   "link": <a
567                     href="https://www.sonarsource.com/plans-and-pricing/developer/?sourceEdition=community"
568                     rel="noopener noreferrer"
569                     target="_blank"
570                   >
571                     settings.almintegration.feature.pr_decoration.disabled.no_branches.link
572                   </a>,
573                 }
574               }
575             />
576           }
577         />
578       </div>
579     </div>
580     <div>
581       <Tooltip
582         overlay="settings.almintegration.feature.alm_repo_import.description"
583       >
584         <span>
585           settings.almintegration.feature.alm_repo_import.title
586         </span>
587       </Tooltip>
588       <AlertSuccessIcon
589         className="spacer-left"
590       />
591     </div>
592   </div>
593   <div
594     className="width-50"
595   >
596     <Alert
597       variant="success"
598     >
599       settings.almintegration.configuration_valid
600     </Alert>
601     <Alert
602       variant="warning"
603     >
604       <FormattedMessage
605         defaultMessage="settings.almintegration.github.additional_permission"
606         id="settings.almintegration.github.additional_permission"
607         values={
608           {
609             "link": <withAppStateContext(DocLink)
610               to="/devops-platform-integration/github-integration/"
611             >
612               learn_more
613             </withAppStateContext(DocLink)>,
614           }
615         }
616       />
617     </Alert>
618   </div>
619   <Button
620     className="big-spacer-top"
621     onClick={[Function]}
622   >
623     settings.almintegration.check_configuration
624   </Button>
625 </div>
626 `;
627
628 exports[`should render correctly: warning 1`] = `
629 <div
630   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
631 >
632   <div
633     className="actions pull-right"
634   >
635     <Button
636       onClick={[Function]}
637     >
638       <EditIcon
639         className="spacer-right"
640       />
641       edit
642     </Button>
643     <Button
644       className="button-red spacer-left"
645       onClick={[Function]}
646     >
647       <DeleteIcon
648         className="spacer-right"
649       />
650       delete
651     </Button>
652   </div>
653   <div
654     className="big-spacer-bottom"
655   >
656     <h3>
657       key
658     </h3>
659     <span>
660       http://github.enterprise.com
661     </span>
662   </div>
663   <div
664     className="width-50"
665   >
666     <Alert
667       variant="warning"
668     >
669       settings.almintegration.could_not_validate
670     </Alert>
671   </div>
672   <Button
673     className="big-spacer-top"
674     onClick={[Function]}
675   >
676     settings.almintegration.check_configuration
677   </Button>
678 </div>
679 `;