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