]> source.dussan.org Git - sonarqube.git/blob
4afcf1ec1337ca3f5f58ceb3ddd95561c9648d06
[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: multiple definitions 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   <i
203     className="spinner spacer-right"
204   />
205   settings.almintegration.checking_configuration
206 </div>
207 `;
208
209 exports[`should render correctly: success 1`] = `
210 <div
211   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
212 >
213   <div
214     className="actions pull-right"
215   >
216     <Button
217       onClick={[Function]}
218     >
219       <EditIcon
220         className="spacer-right"
221       />
222       edit
223     </Button>
224     <Button
225       className="button-red spacer-left"
226       onClick={[Function]}
227     >
228       <DeleteIcon
229         className="spacer-right"
230       />
231       delete
232     </Button>
233   </div>
234   <div
235     className="big-spacer-bottom"
236   >
237     <h3>
238       key
239     </h3>
240     <span>
241       http://github.enterprise.com
242     </span>
243   </div>
244   <div
245     className="display-flex-row spacer-bottom"
246   >
247     <div
248       className="huge-spacer-right"
249     >
250       <Tooltip
251         overlay="settings.almintegration.feature.status_reporting.description_pr_and_commits"
252       >
253         <span>
254           settings.almintegration.feature.status_reporting.title
255         </span>
256       </Tooltip>
257       <AlertSuccessIcon
258         className="spacer-left"
259       />
260     </div>
261     <div>
262       <Tooltip
263         overlay="settings.almintegration.feature.alm_repo_import.description"
264       >
265         <span>
266           settings.almintegration.feature.alm_repo_import.title
267         </span>
268       </Tooltip>
269       <AlertSuccessIcon
270         className="spacer-left"
271       />
272     </div>
273   </div>
274   <div
275     className="width-50"
276   />
277   <Button
278     className="big-spacer-top"
279     onClick={[Function]}
280   >
281     settings.almintegration.check_configuration
282   </Button>
283 </div>
284 `;
285
286 exports[`should render correctly: success for Bitbucket Cloud 1`] = `
287 <div
288   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
289 >
290   <div
291     className="actions pull-right"
292   >
293     <Button
294       onClick={[Function]}
295     >
296       <EditIcon
297         className="spacer-right"
298       />
299       edit
300     </Button>
301     <Button
302       className="button-red spacer-left"
303       onClick={[Function]}
304     >
305       <DeleteIcon
306         className="spacer-right"
307       />
308       delete
309     </Button>
310   </div>
311   <div
312     className="big-spacer-bottom"
313   >
314     <h3>
315       key
316     </h3>
317   </div>
318   <div
319     className="display-flex-row spacer-bottom"
320   >
321     <div
322       className="huge-spacer-right"
323     >
324       <Tooltip
325         overlay="settings.almintegration.feature.status_reporting.description_pr"
326       >
327         <span>
328           settings.almintegration.feature.status_reporting.title
329         </span>
330       </Tooltip>
331       <AlertSuccessIcon
332         className="spacer-left"
333       />
334     </div>
335     <div>
336       <Tooltip
337         overlay="settings.almintegration.feature.alm_repo_import.description"
338       >
339         <span>
340           settings.almintegration.feature.alm_repo_import.title
341         </span>
342       </Tooltip>
343       <AlertSuccessIcon
344         className="spacer-left"
345       />
346     </div>
347   </div>
348   <div
349     className="width-50"
350   />
351   <Button
352     className="big-spacer-top"
353     onClick={[Function]}
354   >
355     settings.almintegration.check_configuration
356   </Button>
357 </div>
358 `;
359
360 exports[`should render correctly: success for GitLab 1`] = `
361 <div
362   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
363 >
364   <div
365     className="actions pull-right"
366   >
367     <Button
368       onClick={[Function]}
369     >
370       <EditIcon
371         className="spacer-right"
372       />
373       edit
374     </Button>
375     <Button
376       className="button-red spacer-left"
377       onClick={[Function]}
378     >
379       <DeleteIcon
380         className="spacer-right"
381       />
382       delete
383     </Button>
384   </div>
385   <div
386     className="big-spacer-bottom"
387   >
388     <h3>
389       foo
390     </h3>
391   </div>
392   <div
393     className="display-flex-row spacer-bottom"
394   >
395     <div
396       className="huge-spacer-right"
397     >
398       <Tooltip
399         overlay="settings.almintegration.feature.status_reporting.description_mr"
400       >
401         <span>
402           settings.almintegration.feature.status_reporting.title
403         </span>
404       </Tooltip>
405       <AlertSuccessIcon
406         className="spacer-left"
407       />
408     </div>
409     <div>
410       <Tooltip
411         overlay="settings.almintegration.feature.alm_repo_import.description"
412       >
413         <span>
414           settings.almintegration.feature.alm_repo_import.title
415         </span>
416       </Tooltip>
417       <div
418         className="display-inline-flex-center"
419       >
420         <strong
421           className="spacer-left"
422         >
423           settings.almintegration.feature.alm_repo_import.disabled
424         </strong>
425         <HelpTooltip
426           className="little-spacer-left"
427           overlay="settings.almintegration.feature.alm_repo_import.disabled.no_url"
428         />
429       </div>
430     </div>
431   </div>
432   <div
433     className="width-50"
434   />
435   <Button
436     className="big-spacer-top"
437     onClick={[Function]}
438   >
439     settings.almintegration.check_configuration
440   </Button>
441 </div>
442 `;
443
444 exports[`should render correctly: success with alert 1`] = `
445 <div
446   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
447 >
448   <div
449     className="actions pull-right"
450   >
451     <Button
452       onClick={[Function]}
453     >
454       <EditIcon
455         className="spacer-right"
456       />
457       edit
458     </Button>
459     <Button
460       className="button-red spacer-left"
461       onClick={[Function]}
462     >
463       <DeleteIcon
464         className="spacer-right"
465       />
466       delete
467     </Button>
468   </div>
469   <div
470     className="big-spacer-bottom"
471   >
472     <h3>
473       key
474     </h3>
475     <span>
476       http://github.enterprise.com
477     </span>
478   </div>
479   <div
480     className="display-flex-row spacer-bottom"
481   >
482     <div
483       className="huge-spacer-right"
484     >
485       <Tooltip
486         overlay="settings.almintegration.feature.status_reporting.description_pr_and_commits"
487       >
488         <span>
489           settings.almintegration.feature.status_reporting.title
490         </span>
491       </Tooltip>
492       <AlertSuccessIcon
493         className="spacer-left"
494       />
495     </div>
496     <div>
497       <Tooltip
498         overlay="settings.almintegration.feature.alm_repo_import.description"
499       >
500         <span>
501           settings.almintegration.feature.alm_repo_import.title
502         </span>
503       </Tooltip>
504       <AlertSuccessIcon
505         className="spacer-left"
506       />
507     </div>
508   </div>
509   <div
510     className="width-50"
511   >
512     <Alert
513       variant="success"
514     >
515       settings.almintegration.configuration_valid
516     </Alert>
517     <Alert
518       variant="warning"
519     >
520       <FormattedMessage
521         defaultMessage="settings.almintegration.github.additional_permission"
522         id="settings.almintegration.github.additional_permission"
523         values={
524           Object {
525             "link": <withAppStateContext(DocLink)
526               to="/analysis/github-integration/"
527             >
528               learn_more
529             </withAppStateContext(DocLink)>,
530           }
531         }
532       />
533     </Alert>
534   </div>
535   <Button
536     className="big-spacer-top"
537     onClick={[Function]}
538   >
539     settings.almintegration.check_configuration
540   </Button>
541 </div>
542 `;
543
544 exports[`should render correctly: success with branches disabled 1`] = `
545 <div
546   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
547 >
548   <div
549     className="actions pull-right"
550   >
551     <Button
552       onClick={[Function]}
553     >
554       <EditIcon
555         className="spacer-right"
556       />
557       edit
558     </Button>
559     <Button
560       className="button-red spacer-left"
561       onClick={[Function]}
562     >
563       <DeleteIcon
564         className="spacer-right"
565       />
566       delete
567     </Button>
568   </div>
569   <div
570     className="big-spacer-bottom"
571   >
572     <h3>
573       key
574     </h3>
575     <span>
576       http://github.enterprise.com
577     </span>
578   </div>
579   <div
580     className="display-flex-row spacer-bottom"
581   >
582     <div
583       className="huge-spacer-right"
584     >
585       <Tooltip
586         overlay="settings.almintegration.feature.status_reporting.description_pr_and_commits"
587       >
588         <span>
589           settings.almintegration.feature.status_reporting.title
590         </span>
591       </Tooltip>
592       <div
593         className="display-inline-flex-center"
594       >
595         <strong
596           className="spacer-left"
597         >
598           settings.almintegration.feature.pr_decoration.disabled
599         </strong>
600         <HelpTooltip
601           className="little-spacer-left"
602           overlay={
603             <FormattedMessage
604               defaultMessage="settings.almintegration.feature.pr_decoration.disabled.no_branches"
605               id="settings.almintegration.feature.pr_decoration.disabled.no_branches"
606               values={
607                 Object {
608                   "link": <a
609                     href="https://redirect.sonarsource.com/editions/developer.html?sourceEdition=community"
610                     rel="noopener noreferrer"
611                     target="_blank"
612                   >
613                     settings.almintegration.feature.pr_decoration.disabled.no_branches.link
614                   </a>,
615                 }
616               }
617             />
618           }
619         />
620       </div>
621     </div>
622     <div>
623       <Tooltip
624         overlay="settings.almintegration.feature.alm_repo_import.description"
625       >
626         <span>
627           settings.almintegration.feature.alm_repo_import.title
628         </span>
629       </Tooltip>
630       <AlertSuccessIcon
631         className="spacer-left"
632       />
633     </div>
634   </div>
635   <div
636     className="width-50"
637   >
638     <Alert
639       variant="success"
640     >
641       settings.almintegration.configuration_valid
642     </Alert>
643     <Alert
644       variant="warning"
645     >
646       <FormattedMessage
647         defaultMessage="settings.almintegration.github.additional_permission"
648         id="settings.almintegration.github.additional_permission"
649         values={
650           Object {
651             "link": <withAppStateContext(DocLink)
652               to="/analysis/github-integration/"
653             >
654               learn_more
655             </withAppStateContext(DocLink)>,
656           }
657         }
658       />
659     </Alert>
660   </div>
661   <Button
662     className="big-spacer-top"
663     onClick={[Function]}
664   >
665     settings.almintegration.check_configuration
666   </Button>
667 </div>
668 `;
669
670 exports[`should render correctly: warning 1`] = `
671 <div
672   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
673 >
674   <div
675     className="actions pull-right"
676   >
677     <Button
678       onClick={[Function]}
679     >
680       <EditIcon
681         className="spacer-right"
682       />
683       edit
684     </Button>
685     <Button
686       className="button-red spacer-left"
687       onClick={[Function]}
688     >
689       <DeleteIcon
690         className="spacer-right"
691       />
692       delete
693     </Button>
694   </div>
695   <div
696     className="big-spacer-bottom"
697   >
698     <h3>
699       key
700     </h3>
701     <span>
702       http://github.enterprise.com
703     </span>
704   </div>
705   <div
706     className="width-50"
707   >
708     <Alert
709       variant="warning"
710     >
711       settings.almintegration.could_not_validate
712     </Alert>
713   </div>
714   <Button
715     className="big-spacer-top"
716     onClick={[Function]}
717   >
718     settings.almintegration.check_configuration
719   </Button>
720 </div>
721 `;