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