]> source.dussan.org Git - sonarqube.git/blob
bdc9b40712c00292eca6be42f9c399c8019992f8
[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         "monorepo": true,
90         "repository": "PROJECT_KEY",
91         "url": "https://gitlab.com/api/v4",
92       }
93     }
94   />
95 </Fragment>
96 `;
97
98 exports[`should render correctly: jenkins tutorial 1`] = `
99 <Fragment>
100   <Connect(JenkinsTutorial)
101     almBinding={
102       Object {
103         "key": "key",
104         "personalAccessToken": "asdf1234",
105         "url": "http://bbs.enterprise.com",
106       }
107     }
108     component={
109       Object {
110         "breadcrumbs": Array [],
111         "key": "my-project",
112         "name": "MyProject",
113         "qualifier": "TRK",
114         "qualityGate": Object {
115           "isDefault": true,
116           "key": "30",
117           "name": "Sonar way",
118         },
119         "qualityProfiles": Array [
120           Object {
121             "deleted": false,
122             "key": "my-qp",
123             "language": "ts",
124             "name": "Sonar way",
125           },
126         ],
127         "tags": Array [],
128       }
129     }
130     projectBinding={
131       Object {
132         "alm": "bitbucket",
133         "key": "foo",
134         "monorepo": true,
135         "repository": "PROJECT_KEY",
136         "slug": "repo-slug",
137       }
138     }
139   />
140 </Fragment>
141 `;
142
143 exports[`should render correctly: loading 1`] = `
144 <i
145   className="spinner"
146 />
147 `;
148
149 exports[`should render correctly: manual tutorial 1`] = `
150 <Fragment>
151   <ManualTutorial
152     component={
153       Object {
154         "breadcrumbs": Array [],
155         "key": "my-project",
156         "name": "MyProject",
157         "qualifier": "TRK",
158         "qualityGate": Object {
159           "isDefault": true,
160           "key": "30",
161           "name": "Sonar way",
162         },
163         "qualityProfiles": Array [
164           Object {
165             "deleted": false,
166             "key": "my-qp",
167             "language": "ts",
168             "name": "Sonar way",
169           },
170         ],
171         "tags": Array [],
172       }
173     }
174     currentUser={
175       Object {
176         "groups": Array [],
177         "isLoggedIn": true,
178         "login": "luke",
179         "name": "Skywalker",
180         "scmAccounts": Array [],
181       }
182     }
183   />
184 </Fragment>
185 `;
186
187 exports[`should render correctly: selection 1`] = `
188 <Fragment>
189   <div
190     className="tutorial-selection"
191   >
192     <header
193       className="spacer-top spacer-bottom padded"
194     >
195       <h1
196         className="text-center big-spacer-bottom"
197       >
198         onboarding.tutorial.choose_method
199       </h1>
200     </header>
201     <div
202       className="display-flex-justify-center"
203     >
204       <button
205         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
206         onClick={[Function]}
207         type="button"
208       >
209         <img
210           alt=""
211           height={80}
212           src="/images/sonarcloud/analysis/manual.svg"
213         />
214         <div
215           className="medium big-spacer-top"
216         >
217           onboarding.tutorial.choose_method.manual
218         </div>
219       </button>
220     </div>
221   </div>
222 </Fragment>
223 `;
224
225 exports[`should render correctly: selection with jenkins available 1`] = `
226 <Fragment>
227   <div
228     className="tutorial-selection"
229   >
230     <header
231       className="spacer-top spacer-bottom padded"
232     >
233       <h1
234         className="text-center big-spacer-bottom"
235       >
236         onboarding.tutorial.choose_method
237       </h1>
238     </header>
239     <div
240       className="display-flex-justify-center"
241     >
242       <button
243         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-jenkins"
244         onClick={[Function]}
245         type="button"
246       >
247         <img
248           alt=""
249           height={80}
250           src="/images/tutorials/jenkins.svg"
251         />
252         <div
253           className="medium big-spacer-top"
254         >
255           onboarding.tutorial.choose_method.jenkins
256         </div>
257       </button>
258       <button
259         className="button button-huge display-flex-column spacer-left spacer-right tutorial-mode-manual"
260         onClick={[Function]}
261         type="button"
262       >
263         <img
264           alt=""
265           height={80}
266           src="/images/sonarcloud/analysis/manual.svg"
267         />
268         <div
269           className="medium big-spacer-top"
270         >
271           onboarding.tutorial.choose_method.manual
272         </div>
273       </button>
274     </div>
275   </div>
276 </Fragment>
277 `;