]> source.dussan.org Git - sonarqube.git/blob
4fce50260a749097e45fd3d83eeaaf783c100bea
[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.pr_decoration.description"
127       >
128         <span>
129           settings.almintegration.feature.pr_decoration.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.pr_decoration.description"
252       >
253         <span>
254           settings.almintegration.feature.pr_decoration.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.pr_decoration.description"
326       >
327         <span>
328           settings.almintegration.feature.pr_decoration.title
329         </span>
330       </Tooltip>
331       <AlertSuccessIcon
332         className="spacer-left"
333       />
334     </div>
335   </div>
336   <div
337     className="width-50"
338   />
339   <Button
340     className="big-spacer-top"
341     onClick={[Function]}
342   >
343     settings.almintegration.check_configuration
344   </Button>
345 </div>
346 `;
347
348 exports[`should render correctly: success for GitLab 1`] = `
349 <div
350   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
351 >
352   <div
353     className="actions pull-right"
354   >
355     <Button
356       onClick={[Function]}
357     >
358       <EditIcon
359         className="spacer-right"
360       />
361       edit
362     </Button>
363     <Button
364       className="button-red spacer-left"
365       onClick={[Function]}
366     >
367       <DeleteIcon
368         className="spacer-right"
369       />
370       delete
371     </Button>
372   </div>
373   <div
374     className="big-spacer-bottom"
375   >
376     <h3>
377       foo
378     </h3>
379   </div>
380   <div
381     className="display-flex-row spacer-bottom"
382   >
383     <div
384       className="huge-spacer-right"
385     >
386       <Tooltip
387         overlay="settings.almintegration.feature.mr_decoration.description"
388       >
389         <span>
390           settings.almintegration.feature.mr_decoration.title
391         </span>
392       </Tooltip>
393       <AlertSuccessIcon
394         className="spacer-left"
395       />
396     </div>
397     <div>
398       <Tooltip
399         overlay="settings.almintegration.feature.alm_repo_import.description"
400       >
401         <span>
402           settings.almintegration.feature.alm_repo_import.title
403         </span>
404       </Tooltip>
405       <div
406         className="display-inline-flex-center"
407       >
408         <strong
409           className="spacer-left"
410         >
411           settings.almintegration.feature.alm_repo_import.disabled
412         </strong>
413         <HelpTooltip
414           className="little-spacer-left"
415           overlay="settings.almintegration.feature.alm_repo_import.disabled.no_url"
416         />
417       </div>
418     </div>
419   </div>
420   <div
421     className="width-50"
422   />
423   <Button
424     className="big-spacer-top"
425     onClick={[Function]}
426   >
427     settings.almintegration.check_configuration
428   </Button>
429 </div>
430 `;
431
432 exports[`should render correctly: success with alert 1`] = `
433 <div
434   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
435 >
436   <div
437     className="actions pull-right"
438   >
439     <Button
440       onClick={[Function]}
441     >
442       <EditIcon
443         className="spacer-right"
444       />
445       edit
446     </Button>
447     <Button
448       className="button-red spacer-left"
449       onClick={[Function]}
450     >
451       <DeleteIcon
452         className="spacer-right"
453       />
454       delete
455     </Button>
456   </div>
457   <div
458     className="big-spacer-bottom"
459   >
460     <h3>
461       key
462     </h3>
463     <span>
464       http://github.enterprise.com
465     </span>
466   </div>
467   <div
468     className="display-flex-row spacer-bottom"
469   >
470     <div
471       className="huge-spacer-right"
472     >
473       <Tooltip
474         overlay="settings.almintegration.feature.pr_decoration.description"
475       >
476         <span>
477           settings.almintegration.feature.pr_decoration.title
478         </span>
479       </Tooltip>
480       <AlertSuccessIcon
481         className="spacer-left"
482       />
483     </div>
484     <div>
485       <Tooltip
486         overlay="settings.almintegration.feature.alm_repo_import.description"
487       >
488         <span>
489           settings.almintegration.feature.alm_repo_import.title
490         </span>
491       </Tooltip>
492       <AlertSuccessIcon
493         className="spacer-left"
494       />
495     </div>
496   </div>
497   <div
498     className="width-50"
499   >
500     <Alert
501       variant="success"
502     >
503       settings.almintegration.configuration_valid
504     </Alert>
505   </div>
506   <Button
507     className="big-spacer-top"
508     onClick={[Function]}
509   >
510     settings.almintegration.check_configuration
511   </Button>
512 </div>
513 `;
514
515 exports[`should render correctly: success with branches disabled 1`] = `
516 <div
517   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
518 >
519   <div
520     className="actions pull-right"
521   >
522     <Button
523       onClick={[Function]}
524     >
525       <EditIcon
526         className="spacer-right"
527       />
528       edit
529     </Button>
530     <Button
531       className="button-red spacer-left"
532       onClick={[Function]}
533     >
534       <DeleteIcon
535         className="spacer-right"
536       />
537       delete
538     </Button>
539   </div>
540   <div
541     className="big-spacer-bottom"
542   >
543     <h3>
544       key
545     </h3>
546     <span>
547       http://github.enterprise.com
548     </span>
549   </div>
550   <div
551     className="display-flex-row spacer-bottom"
552   >
553     <div
554       className="huge-spacer-right"
555     >
556       <Tooltip
557         overlay="settings.almintegration.feature.pr_decoration.description"
558       >
559         <span>
560           settings.almintegration.feature.pr_decoration.title
561         </span>
562       </Tooltip>
563       <div
564         className="display-inline-flex-center"
565       >
566         <strong
567           className="spacer-left"
568         >
569           settings.almintegration.feature.pr_decoration.disabled
570         </strong>
571         <HelpTooltip
572           className="little-spacer-left"
573           overlay={
574             <FormattedMessage
575               defaultMessage="settings.almintegration.feature.pr_decoration.disabled.no_branches"
576               id="settings.almintegration.feature.pr_decoration.disabled.no_branches"
577               values={
578                 Object {
579                   "link": <a
580                     href="https://redirect.sonarsource.com/editions/developer.html?sourceEdition=community"
581                     rel="noopener noreferrer"
582                     target="_blank"
583                   >
584                     settings.almintegration.feature.pr_decoration.disabled.no_branches.link
585                   </a>,
586                 }
587               }
588             />
589           }
590         />
591       </div>
592     </div>
593     <div>
594       <Tooltip
595         overlay="settings.almintegration.feature.alm_repo_import.description"
596       >
597         <span>
598           settings.almintegration.feature.alm_repo_import.title
599         </span>
600       </Tooltip>
601       <AlertSuccessIcon
602         className="spacer-left"
603       />
604     </div>
605   </div>
606   <div
607     className="width-50"
608   >
609     <Alert
610       variant="success"
611     >
612       settings.almintegration.configuration_valid
613     </Alert>
614   </div>
615   <Button
616     className="big-spacer-top"
617     onClick={[Function]}
618   >
619     settings.almintegration.check_configuration
620   </Button>
621 </div>
622 `;
623
624 exports[`should render correctly: warning 1`] = `
625 <div
626   className="boxed-group-inner bordered spacer-top spacer-bottom it__alm-binding-definition"
627 >
628   <div
629     className="actions pull-right"
630   >
631     <Button
632       onClick={[Function]}
633     >
634       <EditIcon
635         className="spacer-right"
636       />
637       edit
638     </Button>
639     <Button
640       className="button-red spacer-left"
641       onClick={[Function]}
642     >
643       <DeleteIcon
644         className="spacer-right"
645       />
646       delete
647     </Button>
648   </div>
649   <div
650     className="big-spacer-bottom"
651   >
652     <h3>
653       key
654     </h3>
655     <span>
656       http://github.enterprise.com
657     </span>
658   </div>
659   <div
660     className="width-50"
661   >
662     <Alert
663       variant="warning"
664     >
665       settings.almintegration.could_not_validate
666     </Alert>
667   </div>
668   <Button
669     className="big-spacer-top"
670     onClick={[Function]}
671   >
672     settings.almintegration.check_configuration
673   </Button>
674 </div>
675 `;