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