]> source.dussan.org Git - sonarqube.git/blob
572d371879f836af019bea054c335368b00af10d
[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 bitbucketcloud and monorepo=false 1`] = `
428 <Fragment>
429   <div
430     className="form-field"
431   >
432     <label
433       className="display-flex-center"
434       htmlFor="bitbucketcloud.repository"
435     >
436       settings.pr_decoration.binding.form.bitbucketcloud.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.bitbucketcloud.repository.help"
447             id="settings.pr_decoration.binding.form.bitbucketcloud.repository.help"
448             values={
449               Object {
450                 "example": <React.Fragment>
451                   https://bitbucket.org/{workspace}/
452                   <strong>
453                     {repository}
454                   </strong>
455                 </React.Fragment>,
456               }
457             }
458           />
459         }
460         placement="right"
461       />
462     </label>
463     <input
464       className="input-super-large"
465       id="bitbucketcloud.repository"
466       maxLength={256}
467       name="bitbucketcloud.repository"
468       onChange={[Function]}
469       type="text"
470       value=""
471     />
472   </div>
473 </Fragment>
474 `;
475
476 exports[`it should render correctly for github and monorepo=false 1`] = `
477 <Fragment>
478   <div
479     className="form-field"
480   >
481     <label
482       className="display-flex-center"
483       htmlFor="github.repository"
484     >
485       settings.pr_decoration.binding.form.github.repository
486       <em
487         className="mandatory"
488       >
489         *
490       </em>
491       <HelpTooltip
492         className="spacer-left"
493         overlay={
494           <FormattedMessage
495             defaultMessage="settings.pr_decoration.binding.form.github.repository.help"
496             id="settings.pr_decoration.binding.form.github.repository.help"
497             values={
498               Object {
499                 "example": "SonarSource/sonarqube",
500               }
501             }
502           />
503         }
504         placement="right"
505       />
506     </label>
507     <input
508       className="input-super-large"
509       id="github.repository"
510       maxLength={256}
511       name="github.repository"
512       onChange={[Function]}
513       type="text"
514       value=""
515     />
516   </div>
517   <div
518     className="form-field"
519   >
520     <label
521       className="display-flex-center"
522       htmlFor="github.summary_comment_setting"
523     >
524       settings.pr_decoration.binding.form.github.summary_comment_setting
525       <HelpTooltip
526         className="spacer-left"
527         overlay={
528           <FormattedMessage
529             defaultMessage="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
530             id="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
531             values={Object {}}
532           />
533         }
534         placement="right"
535       />
536     </label>
537     <div
538       className="display-flex-center"
539     >
540       <InputForBoolean
541         isDefault={true}
542         name="github.summary_comment_setting"
543         onChange={[Function]}
544         value={true}
545       />
546     </div>
547   </div>
548 </Fragment>
549 `;
550
551 exports[`it should render correctly for github and monorepo=true 1`] = `
552 <Fragment>
553   <div
554     className="form-field"
555   >
556     <label
557       className="display-flex-center"
558       htmlFor="github.repository"
559     >
560       settings.pr_decoration.binding.form.github.repository
561       <em
562         className="mandatory"
563       >
564         *
565       </em>
566       <HelpTooltip
567         className="spacer-left"
568         overlay={
569           <FormattedMessage
570             defaultMessage="settings.pr_decoration.binding.form.github.repository.help"
571             id="settings.pr_decoration.binding.form.github.repository.help"
572             values={
573               Object {
574                 "example": "SonarSource/sonarqube",
575               }
576             }
577           />
578         }
579         placement="right"
580       />
581     </label>
582     <input
583       className="input-super-large"
584       id="github.repository"
585       maxLength={256}
586       name="github.repository"
587       onChange={[Function]}
588       type="text"
589       value=""
590     />
591   </div>
592   <div
593     className="form-field"
594   >
595     <label
596       className="display-flex-center"
597       htmlFor="github.summary_comment_setting"
598     >
599       settings.pr_decoration.binding.form.github.summary_comment_setting
600       <HelpTooltip
601         className="spacer-left"
602         overlay={
603           <FormattedMessage
604             defaultMessage="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
605             id="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
606             values={Object {}}
607           />
608         }
609         placement="right"
610       />
611     </label>
612     <div
613       className="display-flex-center"
614     >
615       <InputForBoolean
616         isDefault={true}
617         name="github.summary_comment_setting"
618         onChange={[Function]}
619         value={true}
620       />
621     </div>
622   </div>
623   <div
624     className="form-field"
625   >
626     <label
627       className="display-flex-center"
628       htmlFor="monorepo"
629     >
630       settings.pr_decoration.binding.form.monorepo
631       <HelpTooltip
632         className="spacer-left"
633         overlay={
634           <FormattedMessage
635             defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
636             id="settings.pr_decoration.binding.form.monorepo.help"
637             values={
638               Object {
639                 "doc_link": <Link
640                   onlyActiveOnIndex={false}
641                   style={Object {}}
642                   target="_blank"
643                   to="/documentation/analysis/github-integration/"
644                 >
645                   learn_more
646                 </Link>,
647               }
648             }
649           />
650         }
651         placement="right"
652       />
653     </label>
654     <div
655       className="display-flex-center"
656     >
657       <InputForBoolean
658         isDefault={true}
659         name="monorepo"
660         onChange={[Function]}
661         value={false}
662       />
663     </div>
664   </div>
665 </Fragment>
666 `;
667
668 exports[`it should render correctly for gitlab and monorepo=false 1`] = `
669 <Fragment>
670   <div
671     className="form-field"
672   >
673     <label
674       className="display-flex-center"
675       htmlFor="gitlab.repository"
676     >
677       settings.pr_decoration.binding.form.gitlab.repository
678       <em
679         className="mandatory"
680       >
681         *
682       </em>
683     </label>
684     <input
685       className="input-super-large"
686       id="gitlab.repository"
687       maxLength={256}
688       name="gitlab.repository"
689       onChange={[Function]}
690       type="text"
691       value=""
692     />
693   </div>
694 </Fragment>
695 `;
696
697 exports[`it should render correctly for gitlab and monorepo=true 1`] = `
698 <Fragment>
699   <div
700     className="form-field"
701   >
702     <label
703       className="display-flex-center"
704       htmlFor="gitlab.repository"
705     >
706       settings.pr_decoration.binding.form.gitlab.repository
707       <em
708         className="mandatory"
709       >
710         *
711       </em>
712     </label>
713     <input
714       className="input-super-large"
715       id="gitlab.repository"
716       maxLength={256}
717       name="gitlab.repository"
718       onChange={[Function]}
719       type="text"
720       value=""
721     />
722   </div>
723   <div
724     className="form-field"
725   >
726     <label
727       className="display-flex-center"
728       htmlFor="monorepo"
729     >
730       settings.pr_decoration.binding.form.monorepo
731       <HelpTooltip
732         className="spacer-left"
733         overlay={
734           <FormattedMessage
735             defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
736             id="settings.pr_decoration.binding.form.monorepo.help"
737             values={
738               Object {
739                 "doc_link": <Link
740                   onlyActiveOnIndex={false}
741                   style={Object {}}
742                   target="_blank"
743                   to="/documentation/analysis/gitlab-integration/"
744                 >
745                   learn_more
746                 </Link>,
747               }
748             }
749           />
750         }
751         placement="right"
752       />
753     </label>
754     <div
755       className="display-flex-center"
756     >
757       <InputForBoolean
758         isDefault={true}
759         name="monorepo"
760         onChange={[Function]}
761         value={false}
762       />
763     </div>
764   </div>
765 </Fragment>
766 `;
767
768 exports[`should render an alert for azure when the monorepo option is activated 1`] = `
769 <Fragment>
770   <div
771     className="form-field"
772   >
773     <label
774       className="display-flex-center"
775       htmlFor="azure.project"
776     >
777       settings.pr_decoration.binding.form.azure.project
778       <em
779         className="mandatory"
780       >
781         *
782       </em>
783       <HelpTooltip
784         className="spacer-left"
785         overlay={
786           <FormattedMessage
787             defaultMessage="settings.pr_decoration.binding.form.azure.project.help"
788             id="settings.pr_decoration.binding.form.azure.project.help"
789             values={Object {}}
790           />
791         }
792         placement="right"
793       />
794     </label>
795     <input
796       className="input-super-large"
797       id="azure.project"
798       maxLength={256}
799       name="azure.project"
800       onChange={[Function]}
801       type="text"
802       value=""
803     />
804   </div>
805   <div
806     className="form-field"
807   >
808     <label
809       className="display-flex-center"
810       htmlFor="azure.repository"
811     >
812       settings.pr_decoration.binding.form.azure.repository
813       <em
814         className="mandatory"
815       >
816         *
817       </em>
818       <HelpTooltip
819         className="spacer-left"
820         overlay={
821           <FormattedMessage
822             defaultMessage="settings.pr_decoration.binding.form.azure.repository.help"
823             id="settings.pr_decoration.binding.form.azure.repository.help"
824             values={Object {}}
825           />
826         }
827         placement="right"
828       />
829     </label>
830     <input
831       className="input-super-large"
832       id="azure.repository"
833       maxLength={256}
834       name="azure.repository"
835       onChange={[Function]}
836       type="text"
837       value=""
838     />
839   </div>
840   <div
841     className="form-field"
842   >
843     <label
844       className="display-flex-center"
845       htmlFor="monorepo"
846     >
847       settings.pr_decoration.binding.form.monorepo
848       <HelpTooltip
849         className="spacer-left"
850         overlay={
851           <FormattedMessage
852             defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
853             id="settings.pr_decoration.binding.form.monorepo.help"
854             values={
855               Object {
856                 "doc_link": <Link
857                   onlyActiveOnIndex={false}
858                   style={Object {}}
859                   target="_blank"
860                   to="/documentation/analysis/azuredevops-integration/"
861                 >
862                   learn_more
863                 </Link>,
864               }
865             }
866           />
867         }
868         placement="right"
869       />
870     </label>
871     <div
872       className="display-flex-center"
873     >
874       <InputForBoolean
875         isDefault={true}
876         name="monorepo"
877         onChange={[Function]}
878         value={true}
879       />
880       <Alert
881         className="no-margin-bottom spacer-left"
882         display="inline"
883         variant="warning"
884       >
885         settings.pr_decoration.binding.form.monorepo.warning
886       </Alert>
887     </div>
888   </div>
889 </Fragment>
890 `;