]> source.dussan.org Git - sonarqube.git/blob
c43527dccbd274d988e540dfe265a95868821899
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: azure pipelines tutorial 1`] = `
4 <Fragment>
5   <AzurePipelinesTutorial
6     component={
7       Object {
8         "breadcrumbs": Array [],
9         "key": "my-project",
10         "name": "MyProject",
11         "qualifier": "TRK",
12         "qualityGate": Object {
13           "isDefault": true,
14           "key": "30",
15           "name": "Sonar way",
16         },
17         "qualityProfiles": Array [
18           Object {
19             "deleted": false,
20             "key": "my-qp",
21             "language": "ts",
22             "name": "Sonar way",
23           },
24         ],
25         "tags": Array [],
26       }
27     }
28     currentUser={
29       Object {
30         "groups": Array [],
31         "isLoggedIn": true,
32         "login": "luke",
33         "name": "Skywalker",
34         "scmAccounts": Array [],
35       }
36     }
37     projectBinding={
38       Object {
39         "alm": "azure",
40         "key": "foo",
41         "monorepo": false,
42         "repository": "REPOSITORY_NAME",
43         "slug": "PROJECT_NAME",
44         "url": "https://ado.my_company.com/mycollection",
45       }
46     }
47   />
48 </Fragment>
49 `;
50
51 exports[`should render correctly: gitlab tutorial 1`] = `
52 <Fragment>
53   <GitLabCITutorial
54     component={
55       Object {
56         "breadcrumbs": Array [],
57         "key": "my-project",
58         "name": "MyProject",
59         "qualifier": "TRK",
60         "qualityGate": Object {
61           "isDefault": true,
62           "key": "30",
63           "name": "Sonar way",
64         },
65         "qualityProfiles": Array [
66           Object {
67             "deleted": false,
68             "key": "my-qp",
69             "language": "ts",
70             "name": "Sonar way",
71           },
72         ],
73         "tags": Array [],
74       }
75     }
76     currentUser={
77       Object {
78         "groups": Array [],
79         "isLoggedIn": true,
80         "login": "luke",
81         "name": "Skywalker",
82         "scmAccounts": Array [],
83       }
84     }
85     projectBinding={
86       Object {
87         "alm": "gitlab",
88         "key": "foo",
89         "repository": "PROJECT_KEY",
90         "url": "https://gitlab.com/api/v4",
91       }
92     }
93   />
94 </Fragment>
95 `;
96
97 exports[`should render correctly: jenkins tutorial 1`] = `
98 <Fragment>
99   <Connect(JenkinsTutorial)
100     almBinding={
101       Object {
102         "key": "key",
103         "personalAccessToken": "asdf1234",
104         "url": "http://bbs.enterprise.com",
105       }
106     }
107     component={
108       Object {
109         "breadcrumbs": Array [],
110         "key": "my-project",
111         "name": "MyProject",
112         "qualifier": "TRK",
113         "qualityGate": Object {
114           "isDefault": true,
115           "key": "30",
116           "name": "Sonar way",
117         },
118         "qualityProfiles": Array [
119           Object {
120             "deleted": false,
121             "key": "my-qp",
122             "language": "ts",
123             "name": "Sonar way",
124           },
125         ],
126         "tags": Array [],
127       }
128     }
129     projectBinding={
130       Object {
131         "alm": "bitbucket",
132         "key": "foo",
133         "monorepo": true,
134         "repository": "PROJECT_KEY",
135         "slug": "repo-slug",
136       }
137     }
138   />
139 </Fragment>
140 `;
141
142 exports[`should render correctly: loading 1`] = `
143 <i
144   className="spinner"
145 />
146 `;
147
148 exports[`should render correctly: manual tutorial 1`] = `
149 <Fragment>
150   <ManualTutorial
151     component={
152       Object {
153         "breadcrumbs": Array [],
154         "key": "my-project",
155         "name": "MyProject",
156         "qualifier": "TRK",
157         "qualityGate": Object {
158           "isDefault": true,
159           "key": "30",
160           "name": "Sonar way",
161         },
162         "qualityProfiles": Array [
163           Object {
164             "deleted": false,
165             "key": "my-qp",
166             "language": "ts",
167             "name": "Sonar way",
168           },
169         ],
170         "tags": Array [],
171       }
172     }
173     currentUser={
174       Object {
175         "groups": Array [],
176         "isLoggedIn": true,
177         "login": "luke",
178         "name": "Skywalker",
179         "scmAccounts": Array [],
180       }
181     }
182   />
183 </Fragment>
184 `;
185
186 exports[`should render correctly: selection 1`] = `
187 <Fragment>
188   <div
189     className="tutorial-selection"
190   >
191     <header
192       className="spacer-top spacer-bottom padded"
193     >
194       <h1
195         className="text-center big-spacer-bottom"
196       >
197         onboarding.tutorial.choose_method
198       </h1>
199     </header>
200     <div
201       className="display-flex-justify-center"
202     >
203       <button
204         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
205         onClick={[Function]}
206         type="button"
207       >
208         <img
209           alt=""
210           height={80}
211           src="/images/sonarcloud/analysis/manual.svg"
212         />
213         <div
214           className="medium big-spacer-top"
215         >
216           onboarding.tutorial.choose_method.manual
217         </div>
218       </button>
219     </div>
220   </div>
221 </Fragment>
222 `;
223
224 exports[`should render correctly: selection with jenkins available 1`] = `
225 <Fragment>
226   <div
227     className="tutorial-selection"
228   >
229     <header
230       className="spacer-top spacer-bottom padded"
231     >
232       <h1
233         className="text-center big-spacer-bottom"
234       >
235         onboarding.tutorial.choose_method
236       </h1>
237     </header>
238     <div
239       className="display-flex-justify-center"
240     >
241       <button
242         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-jenkins"
243         onClick={[Function]}
244         type="button"
245       >
246         <img
247           alt=""
248           height={80}
249           src="/images/tutorials/jenkins.svg"
250         />
251         <div
252           className="medium big-spacer-top"
253         >
254           onboarding.tutorial.choose_method.jenkins
255         </div>
256       </button>
257       <button
258         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
259         onClick={[Function]}
260         type="button"
261       >
262         <img
263           alt=""
264           height={80}
265           src="/images/sonarcloud/analysis/manual.svg"
266         />
267         <div
268           className="medium big-spacer-top"
269         >
270           onboarding.tutorial.choose_method.manual
271         </div>
272       </button>
273     </div>
274   </div>
275 </Fragment>
276 `;