]> source.dussan.org Git - sonarqube.git/blob
a3b3e0f8eb873de4d2828aa003277640440fc5d1
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for azure 1`] = `
4 <Fragment>
5   <div
6     className="tutorial-selection"
7   >
8     <header
9       className="spacer-top spacer-bottom padded"
10     >
11       <h1
12         className="text-center big-spacer-bottom"
13       >
14         onboarding.tutorial.choose_method
15       </h1>
16     </header>
17     <div
18       className="display-flex-justify-center"
19     >
20       <button
21         className="button button-huge display-flex-column spacer-left spacer-right azure-pipelines"
22         onClick={[Function]}
23         type="button"
24       >
25         <img
26           alt=""
27           height={80}
28           src="/images/alm/azure.svg"
29         />
30         <div
31           className="medium big-spacer-top"
32         >
33           onboarding.tutorial.choose_method.azure_pipelines
34         </div>
35       </button>
36       <button
37         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
38         onClick={[Function]}
39         type="button"
40       >
41         <img
42           alt=""
43           height={80}
44           src="/images/sonarcloud/analysis/manual.svg"
45         />
46         <div
47           className="medium big-spacer-top"
48         >
49           onboarding.tutorial.choose_method.manual
50         </div>
51       </button>
52     </div>
53   </div>
54 </Fragment>
55 `;
56
57 exports[`should render correctly for bitbucket server 1`] = `
58 <Fragment>
59   <div
60     className="tutorial-selection"
61   >
62     <header
63       className="spacer-top spacer-bottom padded"
64     >
65       <h1
66         className="text-center big-spacer-bottom"
67       >
68         onboarding.tutorial.choose_method
69       </h1>
70     </header>
71     <div
72       className="display-flex-justify-center"
73     >
74       <button
75         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-jenkins"
76         onClick={[Function]}
77         type="button"
78       >
79         <img
80           alt=""
81           height={80}
82           src="/images/tutorials/jenkins.svg"
83         />
84         <div
85           className="medium big-spacer-top"
86         >
87           onboarding.tutorial.choose_method.jenkins
88         </div>
89       </button>
90       <button
91         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
92         onClick={[Function]}
93         type="button"
94       >
95         <img
96           alt=""
97           height={80}
98           src="/images/sonarcloud/analysis/manual.svg"
99         />
100         <div
101           className="medium big-spacer-top"
102         >
103           onboarding.tutorial.choose_method.manual
104         </div>
105       </button>
106     </div>
107   </div>
108 </Fragment>
109 `;
110
111 exports[`should render correctly for github 1`] = `
112 <Fragment>
113   <div
114     className="tutorial-selection"
115   >
116     <header
117       className="spacer-top spacer-bottom padded"
118     >
119       <h1
120         className="text-center big-spacer-bottom"
121       >
122         onboarding.tutorial.choose_method
123       </h1>
124     </header>
125     <div
126       className="display-flex-justify-center"
127     >
128       <button
129         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-github"
130         onClick={[Function]}
131         type="button"
132       >
133         <img
134           alt=""
135           className="spacer-bottom spacer-top"
136           height={64}
137           src="/images/tutorials/github-actions.svg"
138         />
139         <div
140           className="medium big-spacer-top"
141         >
142           onboarding.tutorial.choose_method.github_action
143         </div>
144       </button>
145       <button
146         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-jenkins"
147         onClick={[Function]}
148         type="button"
149       >
150         <img
151           alt=""
152           height={80}
153           src="/images/tutorials/jenkins.svg"
154         />
155         <div
156           className="medium big-spacer-top"
157         >
158           onboarding.tutorial.choose_method.jenkins
159         </div>
160       </button>
161       <button
162         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
163         onClick={[Function]}
164         type="button"
165       >
166         <img
167           alt=""
168           height={80}
169           src="/images/sonarcloud/analysis/manual.svg"
170         />
171         <div
172           className="medium big-spacer-top"
173         >
174           onboarding.tutorial.choose_method.manual
175         </div>
176       </button>
177     </div>
178   </div>
179 </Fragment>
180 `;
181
182 exports[`should render correctly for gitlab 1`] = `
183 <Fragment>
184   <div
185     className="tutorial-selection"
186   >
187     <header
188       className="spacer-top spacer-bottom padded"
189     >
190       <h1
191         className="text-center big-spacer-bottom"
192       >
193         onboarding.tutorial.choose_method
194       </h1>
195     </header>
196     <div
197       className="display-flex-justify-center"
198     >
199       <button
200         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-gitlab"
201         onClick={[Function]}
202         type="button"
203       >
204         <img
205           alt=""
206           height={80}
207           src="/images/alm/gitlab.svg"
208         />
209         <div
210           className="medium big-spacer-top"
211         >
212           onboarding.tutorial.choose_method.gitlab_ci
213         </div>
214       </button>
215       <button
216         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-jenkins"
217         onClick={[Function]}
218         type="button"
219       >
220         <img
221           alt=""
222           height={80}
223           src="/images/tutorials/jenkins.svg"
224         />
225         <div
226           className="medium big-spacer-top"
227         >
228           onboarding.tutorial.choose_method.jenkins
229         </div>
230       </button>
231       <button
232         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
233         onClick={[Function]}
234         type="button"
235       >
236         <img
237           alt=""
238           height={80}
239           src="/images/sonarcloud/analysis/manual.svg"
240         />
241         <div
242           className="medium big-spacer-top"
243         >
244           onboarding.tutorial.choose_method.manual
245         </div>
246       </button>
247     </div>
248   </div>
249 </Fragment>
250 `;
251
252 exports[`should render correctly: azure pipelines tutorial 1`] = `
253 <Fragment>
254   <AzurePipelinesTutorial
255     baseUrl="http://localhost:9000"
256     component={
257       Object {
258         "breadcrumbs": Array [],
259         "key": "my-project",
260         "name": "MyProject",
261         "qualifier": "TRK",
262         "qualityGate": Object {
263           "isDefault": true,
264           "key": "30",
265           "name": "Sonar way",
266         },
267         "qualityProfiles": Array [
268           Object {
269             "deleted": false,
270             "key": "my-qp",
271             "language": "ts",
272             "name": "Sonar way",
273           },
274         ],
275         "tags": Array [],
276       }
277     }
278     currentUser={
279       Object {
280         "groups": Array [],
281         "isLoggedIn": true,
282         "login": "luke",
283         "name": "Skywalker",
284         "scmAccounts": Array [],
285       }
286     }
287     projectBinding={
288       Object {
289         "alm": "azure",
290         "key": "foo",
291         "monorepo": false,
292         "repository": "REPOSITORY_NAME",
293         "slug": "PROJECT_NAME",
294         "url": "https://ado.my_company.com/mycollection",
295       }
296     }
297   />
298 </Fragment>
299 `;
300
301 exports[`should render correctly: github actions tutorial 1`] = `
302 <Fragment>
303   <GitHubActionTutorial
304     almBinding={
305       Object {
306         "appId": "123456",
307         "clientId": "client1",
308         "clientSecret": "**clientsecret**",
309         "key": "key",
310         "privateKey": "asdf1234",
311         "url": "http://github.enterprise.com",
312       }
313     }
314     baseUrl="http://localhost:9000"
315     component={
316       Object {
317         "breadcrumbs": Array [],
318         "key": "my-project",
319         "name": "MyProject",
320         "qualifier": "TRK",
321         "qualityGate": Object {
322           "isDefault": true,
323           "key": "30",
324           "name": "Sonar way",
325         },
326         "qualityProfiles": Array [
327           Object {
328             "deleted": false,
329             "key": "my-qp",
330             "language": "ts",
331             "name": "Sonar way",
332           },
333         ],
334         "tags": Array [],
335       }
336     }
337     currentUser={
338       Object {
339         "groups": Array [],
340         "isLoggedIn": true,
341         "login": "luke",
342         "name": "Skywalker",
343         "scmAccounts": Array [],
344       }
345     }
346     projectBinding={
347       Object {
348         "alm": "github",
349         "key": "foo",
350         "monorepo": true,
351         "repository": "PROJECT_KEY",
352       }
353     }
354   />
355 </Fragment>
356 `;
357
358 exports[`should render correctly: gitlab tutorial 1`] = `
359 <Fragment>
360   <GitLabCITutorial
361     baseUrl="http://localhost:9000"
362     component={
363       Object {
364         "breadcrumbs": Array [],
365         "key": "my-project",
366         "name": "MyProject",
367         "qualifier": "TRK",
368         "qualityGate": Object {
369           "isDefault": true,
370           "key": "30",
371           "name": "Sonar way",
372         },
373         "qualityProfiles": Array [
374           Object {
375             "deleted": false,
376             "key": "my-qp",
377             "language": "ts",
378             "name": "Sonar way",
379           },
380         ],
381         "tags": Array [],
382       }
383     }
384     currentUser={
385       Object {
386         "groups": Array [],
387         "isLoggedIn": true,
388         "login": "luke",
389         "name": "Skywalker",
390         "scmAccounts": Array [],
391       }
392     }
393     projectBinding={
394       Object {
395         "alm": "gitlab",
396         "key": "foo",
397         "monorepo": true,
398         "repository": "PROJECT_KEY",
399         "url": "https://gitlab.com/api/v4",
400       }
401     }
402   />
403 </Fragment>
404 `;
405
406 exports[`should render correctly: jenkins tutorial 1`] = `
407 <Fragment>
408   <Connect(JenkinsTutorial)
409     almBinding={
410       Object {
411         "key": "key",
412         "personalAccessToken": "asdf1234",
413         "url": "http://bbs.enterprise.com",
414       }
415     }
416     component={
417       Object {
418         "breadcrumbs": Array [],
419         "key": "my-project",
420         "name": "MyProject",
421         "qualifier": "TRK",
422         "qualityGate": Object {
423           "isDefault": true,
424           "key": "30",
425           "name": "Sonar way",
426         },
427         "qualityProfiles": Array [
428           Object {
429             "deleted": false,
430             "key": "my-qp",
431             "language": "ts",
432             "name": "Sonar way",
433           },
434         ],
435         "tags": Array [],
436       }
437     }
438     projectBinding={
439       Object {
440         "alm": "bitbucket",
441         "key": "foo",
442         "monorepo": true,
443         "repository": "PROJECT_KEY",
444         "slug": "repo-slug",
445       }
446     }
447   />
448 </Fragment>
449 `;
450
451 exports[`should render correctly: loading 1`] = `
452 <i
453   className="spinner"
454 />
455 `;
456
457 exports[`should render correctly: manual tutorial 1`] = `
458 <Fragment>
459   <ManualTutorial
460     component={
461       Object {
462         "breadcrumbs": Array [],
463         "key": "my-project",
464         "name": "MyProject",
465         "qualifier": "TRK",
466         "qualityGate": Object {
467           "isDefault": true,
468           "key": "30",
469           "name": "Sonar way",
470         },
471         "qualityProfiles": Array [
472           Object {
473             "deleted": false,
474             "key": "my-qp",
475             "language": "ts",
476             "name": "Sonar way",
477           },
478         ],
479         "tags": Array [],
480       }
481     }
482     currentUser={
483       Object {
484         "groups": Array [],
485         "isLoggedIn": true,
486         "login": "luke",
487         "name": "Skywalker",
488         "scmAccounts": Array [],
489       }
490     }
491   />
492 </Fragment>
493 `;
494
495 exports[`should render correctly: selection 1`] = `
496 <Fragment>
497   <div
498     className="tutorial-selection"
499   >
500     <header
501       className="spacer-top spacer-bottom padded"
502     >
503       <h1
504         className="text-center big-spacer-bottom"
505       >
506         onboarding.tutorial.choose_method
507       </h1>
508     </header>
509     <div
510       className="display-flex-justify-center"
511     >
512       <button
513         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
514         onClick={[Function]}
515         type="button"
516       >
517         <img
518           alt=""
519           height={80}
520           src="/images/sonarcloud/analysis/manual.svg"
521         />
522         <div
523           className="medium big-spacer-top"
524         >
525           onboarding.tutorial.choose_method.manual
526         </div>
527       </button>
528     </div>
529   </div>
530 </Fragment>
531 `;