]> source.dussan.org Git - sonarqube.git/blob
cc9dadc14c0c48035ef549a83cc1b696aed29bf7
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`it should render correctly for azure and monorepo=false 1`] = `
4 <Fragment>
5   <div
6     className="form-field"
7   >
8     <label
9       className="display-flex-center"
10       htmlFor="azure.project"
11     >
12       settings.pr_decoration.binding.form.azure.project
13       <em
14         className="mandatory"
15       >
16         *
17       </em>
18       <HelpTooltip
19         className="spacer-left"
20         overlay={
21           <FormattedMessage
22             defaultMessage="settings.pr_decoration.binding.form.azure.project.help"
23             id="settings.pr_decoration.binding.form.azure.project.help"
24             values={Object {}}
25           />
26         }
27         placement="right"
28       />
29     </label>
30     <input
31       className="input-super-large"
32       id="azure.project"
33       maxLength={256}
34       name="azure.project"
35       onChange={[Function]}
36       type="text"
37       value=""
38     />
39   </div>
40   <div
41     className="form-field"
42   >
43     <label
44       className="display-flex-center"
45       htmlFor="azure.repository"
46     >
47       settings.pr_decoration.binding.form.azure.repository
48       <em
49         className="mandatory"
50       >
51         *
52       </em>
53       <HelpTooltip
54         className="spacer-left"
55         overlay={
56           <FormattedMessage
57             defaultMessage="settings.pr_decoration.binding.form.azure.repository.help"
58             id="settings.pr_decoration.binding.form.azure.repository.help"
59             values={Object {}}
60           />
61         }
62         placement="right"
63       />
64     </label>
65     <input
66       className="input-super-large"
67       id="azure.repository"
68       maxLength={256}
69       name="azure.repository"
70       onChange={[Function]}
71       type="text"
72       value=""
73     />
74   </div>
75 </Fragment>
76 `;
77
78 exports[`it should render correctly for azure and monorepo=true 1`] = `
79 <Fragment>
80   <div
81     className="form-field"
82   >
83     <label
84       className="display-flex-center"
85       htmlFor="azure.project"
86     >
87       settings.pr_decoration.binding.form.azure.project
88       <em
89         className="mandatory"
90       >
91         *
92       </em>
93       <HelpTooltip
94         className="spacer-left"
95         overlay={
96           <FormattedMessage
97             defaultMessage="settings.pr_decoration.binding.form.azure.project.help"
98             id="settings.pr_decoration.binding.form.azure.project.help"
99             values={Object {}}
100           />
101         }
102         placement="right"
103       />
104     </label>
105     <input
106       className="input-super-large"
107       id="azure.project"
108       maxLength={256}
109       name="azure.project"
110       onChange={[Function]}
111       type="text"
112       value=""
113     />
114   </div>
115   <div
116     className="form-field"
117   >
118     <label
119       className="display-flex-center"
120       htmlFor="azure.repository"
121     >
122       settings.pr_decoration.binding.form.azure.repository
123       <em
124         className="mandatory"
125       >
126         *
127       </em>
128       <HelpTooltip
129         className="spacer-left"
130         overlay={
131           <FormattedMessage
132             defaultMessage="settings.pr_decoration.binding.form.azure.repository.help"
133             id="settings.pr_decoration.binding.form.azure.repository.help"
134             values={Object {}}
135           />
136         }
137         placement="right"
138       />
139     </label>
140     <input
141       className="input-super-large"
142       id="azure.repository"
143       maxLength={256}
144       name="azure.repository"
145       onChange={[Function]}
146       type="text"
147       value=""
148     />
149   </div>
150   <div
151     className="form-field"
152   >
153     <label
154       className="display-flex-center"
155       htmlFor="monorepo"
156     >
157       settings.pr_decoration.binding.form.monorepo
158       <HelpTooltip
159         className="spacer-left"
160         overlay={
161           <FormattedMessage
162             defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
163             id="settings.pr_decoration.binding.form.monorepo.help"
164             values={
165               Object {
166                 "doc_link": <Link
167                   onlyActiveOnIndex={false}
168                   style={Object {}}
169                   target="_blank"
170                   to="/documentation/analysis/azuredevops-integration/"
171                 >
172                   learn_more
173                 </Link>,
174               }
175             }
176           />
177         }
178         placement="right"
179       />
180     </label>
181     <div
182       className="display-flex-center"
183     >
184       <InputForBoolean
185         isDefault={true}
186         name="monorepo"
187         onChange={[Function]}
188         value={false}
189       />
190     </div>
191   </div>
192 </Fragment>
193 `;
194
195 exports[`it should render correctly for bitbucket and monorepo=false 1`] = `
196 <Fragment>
197   <div
198     className="form-field"
199   >
200     <label
201       className="display-flex-center"
202       htmlFor="bitbucket.repository"
203     >
204       settings.pr_decoration.binding.form.bitbucket.repository
205       <em
206         className="mandatory"
207       >
208         *
209       </em>
210       <HelpTooltip
211         className="spacer-left"
212         overlay={
213           <FormattedMessage
214             defaultMessage="settings.pr_decoration.binding.form.bitbucket.repository.help"
215             id="settings.pr_decoration.binding.form.bitbucket.repository.help"
216             values={
217               Object {
218                 "example": <React.Fragment>
219                   .../projects/
220                   <strong>
221                     {KEY}
222                   </strong>
223                   /repos/{SLUG}/browse
224                 </React.Fragment>,
225               }
226             }
227           />
228         }
229         placement="right"
230       />
231     </label>
232     <input
233       className="input-super-large"
234       id="bitbucket.repository"
235       maxLength={256}
236       name="bitbucket.repository"
237       onChange={[Function]}
238       type="text"
239       value=""
240     />
241   </div>
242   <div
243     className="form-field"
244   >
245     <label
246       className="display-flex-center"
247       htmlFor="bitbucket.slug"
248     >
249       settings.pr_decoration.binding.form.bitbucket.slug
250       <em
251         className="mandatory"
252       >
253         *
254       </em>
255       <HelpTooltip
256         className="spacer-left"
257         overlay={
258           <FormattedMessage
259             defaultMessage="settings.pr_decoration.binding.form.bitbucket.slug.help"
260             id="settings.pr_decoration.binding.form.bitbucket.slug.help"
261             values={
262               Object {
263                 "example": <React.Fragment>
264                   .../projects/{KEY}/repos/
265                   <strong>
266                     {SLUG}
267                   </strong>
268                   /browse
269                 </React.Fragment>,
270               }
271             }
272           />
273         }
274         placement="right"
275       />
276     </label>
277     <input
278       className="input-super-large"
279       id="bitbucket.slug"
280       maxLength={256}
281       name="bitbucket.slug"
282       onChange={[Function]}
283       type="text"
284       value=""
285     />
286   </div>
287 </Fragment>
288 `;
289
290 exports[`it should render correctly for bitbucket and monorepo=true 1`] = `
291 <Fragment>
292   <div
293     className="form-field"
294   >
295     <label
296       className="display-flex-center"
297       htmlFor="bitbucket.repository"
298     >
299       settings.pr_decoration.binding.form.bitbucket.repository
300       <em
301         className="mandatory"
302       >
303         *
304       </em>
305       <HelpTooltip
306         className="spacer-left"
307         overlay={
308           <FormattedMessage
309             defaultMessage="settings.pr_decoration.binding.form.bitbucket.repository.help"
310             id="settings.pr_decoration.binding.form.bitbucket.repository.help"
311             values={
312               Object {
313                 "example": <React.Fragment>
314                   .../projects/
315                   <strong>
316                     {KEY}
317                   </strong>
318                   /repos/{SLUG}/browse
319                 </React.Fragment>,
320               }
321             }
322           />
323         }
324         placement="right"
325       />
326     </label>
327     <input
328       className="input-super-large"
329       id="bitbucket.repository"
330       maxLength={256}
331       name="bitbucket.repository"
332       onChange={[Function]}
333       type="text"
334       value=""
335     />
336   </div>
337   <div
338     className="form-field"
339   >
340     <label
341       className="display-flex-center"
342       htmlFor="bitbucket.slug"
343     >
344       settings.pr_decoration.binding.form.bitbucket.slug
345       <em
346         className="mandatory"
347       >
348         *
349       </em>
350       <HelpTooltip
351         className="spacer-left"
352         overlay={
353           <FormattedMessage
354             defaultMessage="settings.pr_decoration.binding.form.bitbucket.slug.help"
355             id="settings.pr_decoration.binding.form.bitbucket.slug.help"
356             values={
357               Object {
358                 "example": <React.Fragment>
359                   .../projects/{KEY}/repos/
360                   <strong>
361                     {SLUG}
362                   </strong>
363                   /browse
364                 </React.Fragment>,
365               }
366             }
367           />
368         }
369         placement="right"
370       />
371     </label>
372     <input
373       className="input-super-large"
374       id="bitbucket.slug"
375       maxLength={256}
376       name="bitbucket.slug"
377       onChange={[Function]}
378       type="text"
379       value=""
380     />
381   </div>
382   <div
383     className="form-field"
384   >
385     <label
386       className="display-flex-center"
387       htmlFor="monorepo"
388     >
389       settings.pr_decoration.binding.form.monorepo
390       <HelpTooltip
391         className="spacer-left"
392         overlay={
393           <FormattedMessage
394             defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
395             id="settings.pr_decoration.binding.form.monorepo.help"
396             values={
397               Object {
398                 "doc_link": <Link
399                   onlyActiveOnIndex={false}
400                   style={Object {}}
401                   target="_blank"
402                   to="/documentation/analysis/bitbucket-integration/"
403                 >
404                   learn_more
405                 </Link>,
406               }
407             }
408           />
409         }
410         placement="right"
411       />
412     </label>
413     <div
414       className="display-flex-center"
415     >
416       <InputForBoolean
417         isDefault={true}
418         name="monorepo"
419         onChange={[Function]}
420         value={false}
421       />
422     </div>
423   </div>
424 </Fragment>
425 `;
426
427 exports[`it should render correctly for github and monorepo=false 1`] = `
428 <Fragment>
429   <div
430     className="form-field"
431   >
432     <label
433       className="display-flex-center"
434       htmlFor="github.repository"
435     >
436       settings.pr_decoration.binding.form.github.repository
437       <em
438         className="mandatory"
439       >
440         *
441       </em>
442       <HelpTooltip
443         className="spacer-left"
444         overlay={
445           <FormattedMessage
446             defaultMessage="settings.pr_decoration.binding.form.github.repository.help"
447             id="settings.pr_decoration.binding.form.github.repository.help"
448             values={
449               Object {
450                 "example": "SonarSource/sonarqube",
451               }
452             }
453           />
454         }
455         placement="right"
456       />
457     </label>
458     <input
459       className="input-super-large"
460       id="github.repository"
461       maxLength={256}
462       name="github.repository"
463       onChange={[Function]}
464       type="text"
465       value=""
466     />
467   </div>
468   <div
469     className="form-field"
470   >
471     <label
472       className="display-flex-center"
473       htmlFor="github.summary_comment_setting"
474     >
475       settings.pr_decoration.binding.form.github.summary_comment_setting
476       <HelpTooltip
477         className="spacer-left"
478         overlay={
479           <FormattedMessage
480             defaultMessage="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
481             id="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
482             values={Object {}}
483           />
484         }
485         placement="right"
486       />
487     </label>
488     <div
489       className="display-flex-center"
490     >
491       <InputForBoolean
492         isDefault={true}
493         name="github.summary_comment_setting"
494         onChange={[Function]}
495         value={true}
496       />
497     </div>
498   </div>
499 </Fragment>
500 `;
501
502 exports[`it should render correctly for github and monorepo=true 1`] = `
503 <Fragment>
504   <div
505     className="form-field"
506   >
507     <label
508       className="display-flex-center"
509       htmlFor="github.repository"
510     >
511       settings.pr_decoration.binding.form.github.repository
512       <em
513         className="mandatory"
514       >
515         *
516       </em>
517       <HelpTooltip
518         className="spacer-left"
519         overlay={
520           <FormattedMessage
521             defaultMessage="settings.pr_decoration.binding.form.github.repository.help"
522             id="settings.pr_decoration.binding.form.github.repository.help"
523             values={
524               Object {
525                 "example": "SonarSource/sonarqube",
526               }
527             }
528           />
529         }
530         placement="right"
531       />
532     </label>
533     <input
534       className="input-super-large"
535       id="github.repository"
536       maxLength={256}
537       name="github.repository"
538       onChange={[Function]}
539       type="text"
540       value=""
541     />
542   </div>
543   <div
544     className="form-field"
545   >
546     <label
547       className="display-flex-center"
548       htmlFor="github.summary_comment_setting"
549     >
550       settings.pr_decoration.binding.form.github.summary_comment_setting
551       <HelpTooltip
552         className="spacer-left"
553         overlay={
554           <FormattedMessage
555             defaultMessage="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
556             id="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
557             values={Object {}}
558           />
559         }
560         placement="right"
561       />
562     </label>
563     <div
564       className="display-flex-center"
565     >
566       <InputForBoolean
567         isDefault={true}
568         name="github.summary_comment_setting"
569         onChange={[Function]}
570         value={true}
571       />
572     </div>
573   </div>
574   <div
575     className="form-field"
576   >
577     <label
578       className="display-flex-center"
579       htmlFor="monorepo"
580     >
581       settings.pr_decoration.binding.form.monorepo
582       <HelpTooltip
583         className="spacer-left"
584         overlay={
585           <FormattedMessage
586             defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
587             id="settings.pr_decoration.binding.form.monorepo.help"
588             values={
589               Object {
590                 "doc_link": <Link
591                   onlyActiveOnIndex={false}
592                   style={Object {}}
593                   target="_blank"
594                   to="/documentation/analysis/github-integration/"
595                 >
596                   learn_more
597                 </Link>,
598               }
599             }
600           />
601         }
602         placement="right"
603       />
604     </label>
605     <div
606       className="display-flex-center"
607     >
608       <InputForBoolean
609         isDefault={true}
610         name="monorepo"
611         onChange={[Function]}
612         value={false}
613       />
614     </div>
615   </div>
616 </Fragment>
617 `;
618
619 exports[`it should render correctly for gitlab and monorepo=false 1`] = `
620 <div
621   className="form-field"
622 >
623   <label
624     className="display-flex-center"
625     htmlFor="gitlab.repository"
626   >
627     settings.pr_decoration.binding.form.gitlab.repository
628     <em
629       className="mandatory"
630     >
631       *
632     </em>
633   </label>
634   <input
635     className="input-super-large"
636     id="gitlab.repository"
637     maxLength={256}
638     name="gitlab.repository"
639     onChange={[Function]}
640     type="text"
641     value=""
642   />
643 </div>
644 `;
645
646 exports[`it should render correctly for gitlab and monorepo=true 1`] = `
647 <div
648   className="form-field"
649 >
650   <label
651     className="display-flex-center"
652     htmlFor="gitlab.repository"
653   >
654     settings.pr_decoration.binding.form.gitlab.repository
655     <em
656       className="mandatory"
657     >
658       *
659     </em>
660   </label>
661   <input
662     className="input-super-large"
663     id="gitlab.repository"
664     maxLength={256}
665     name="gitlab.repository"
666     onChange={[Function]}
667     type="text"
668     value=""
669   />
670 </div>
671 `;
672
673 exports[`should render an alert for azure when the monorepo option is activated 1`] = `
674 <Fragment>
675   <div
676     className="form-field"
677   >
678     <label
679       className="display-flex-center"
680       htmlFor="azure.project"
681     >
682       settings.pr_decoration.binding.form.azure.project
683       <em
684         className="mandatory"
685       >
686         *
687       </em>
688       <HelpTooltip
689         className="spacer-left"
690         overlay={
691           <FormattedMessage
692             defaultMessage="settings.pr_decoration.binding.form.azure.project.help"
693             id="settings.pr_decoration.binding.form.azure.project.help"
694             values={Object {}}
695           />
696         }
697         placement="right"
698       />
699     </label>
700     <input
701       className="input-super-large"
702       id="azure.project"
703       maxLength={256}
704       name="azure.project"
705       onChange={[Function]}
706       type="text"
707       value=""
708     />
709   </div>
710   <div
711     className="form-field"
712   >
713     <label
714       className="display-flex-center"
715       htmlFor="azure.repository"
716     >
717       settings.pr_decoration.binding.form.azure.repository
718       <em
719         className="mandatory"
720       >
721         *
722       </em>
723       <HelpTooltip
724         className="spacer-left"
725         overlay={
726           <FormattedMessage
727             defaultMessage="settings.pr_decoration.binding.form.azure.repository.help"
728             id="settings.pr_decoration.binding.form.azure.repository.help"
729             values={Object {}}
730           />
731         }
732         placement="right"
733       />
734     </label>
735     <input
736       className="input-super-large"
737       id="azure.repository"
738       maxLength={256}
739       name="azure.repository"
740       onChange={[Function]}
741       type="text"
742       value=""
743     />
744   </div>
745   <div
746     className="form-field"
747   >
748     <label
749       className="display-flex-center"
750       htmlFor="monorepo"
751     >
752       settings.pr_decoration.binding.form.monorepo
753       <HelpTooltip
754         className="spacer-left"
755         overlay={
756           <FormattedMessage
757             defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
758             id="settings.pr_decoration.binding.form.monorepo.help"
759             values={
760               Object {
761                 "doc_link": <Link
762                   onlyActiveOnIndex={false}
763                   style={Object {}}
764                   target="_blank"
765                   to="/documentation/analysis/azuredevops-integration/"
766                 >
767                   learn_more
768                 </Link>,
769               }
770             }
771           />
772         }
773         placement="right"
774       />
775     </label>
776     <div
777       className="display-flex-center"
778     >
779       <InputForBoolean
780         isDefault={true}
781         name="monorepo"
782         onChange={[Function]}
783         value={true}
784       />
785       <Alert
786         className="no-margin-bottom spacer-left"
787         display="inline"
788         variant="warning"
789       >
790         settings.pr_decoration.binding.form.monorepo.warning
791       </Alert>
792     </div>
793   </div>
794 </Fragment>
795 `;