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