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