]> source.dussan.org Git - sonarqube.git/blob
cd06179f636ddd0c9a1117c43e2823774805a11f
[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       <img
28         alt=""
29         height={80}
30         src="/images/sonarcloud/analysis/manual.svg"
31       />
32       <div
33         className="medium big-spacer-top"
34       >
35         onboarding.create_project.select_method.manual
36       </div>
37     </button>
38     <button
39       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm"
40       disabled={false}
41       onClick={[Function]}
42       type="button"
43     >
44       <img
45         alt=""
46         height={80}
47         src="/images/alm/bitbucket.svg"
48       />
49       <div
50         className="medium big-spacer-top"
51       >
52         onboarding.create_project.select_method.bitbucket
53       </div>
54     </button>
55     <button
56       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm disabled"
57       disabled={true}
58       onClick={[Function]}
59       type="button"
60     >
61       <img
62         alt=""
63         height={80}
64         src="/images/alm/github.svg"
65       />
66       <div
67         className="medium big-spacer-top"
68       >
69         onboarding.create_project.select_method.github
70       </div>
71       <div
72         className="text-muted small spacer-top"
73         style={
74           Object {
75             "lineHeight": 1.5,
76           }
77         }
78       >
79         onboarding.create_project.alm_not_configured
80         <HelpTooltip
81           className="little-spacer-left"
82           overlay="onboarding.create_project.zero_alm_instances.github"
83         />
84       </div>
85     </button>
86     <button
87       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm disabled"
88       disabled={true}
89       onClick={[Function]}
90       type="button"
91     >
92       <img
93         alt=""
94         height={80}
95         src="/images/alm/gitlab.svg"
96       />
97       <div
98         className="medium big-spacer-top"
99       >
100         onboarding.create_project.select_method.gitlab
101       </div>
102       <div
103         className="text-muted small spacer-top"
104         style={
105           Object {
106             "lineHeight": 1.5,
107           }
108         }
109       >
110         onboarding.create_project.alm_not_configured
111         <HelpTooltip
112           className="little-spacer-left"
113           overlay="onboarding.create_project.zero_alm_instances.gitlab"
114         />
115       </div>
116     </button>
117   </div>
118 </Fragment>
119 `;
120
121 exports[`should render correctly: invalid configs 1`] = `
122 <Fragment>
123   <header
124     className="huge-spacer-top big-spacer-bottom padded"
125   >
126     <h1
127       className="text-center huge big-spacer-bottom"
128     >
129       my_account.create_new.TRK
130     </h1>
131     <p
132       className="text-center big"
133     >
134       onboarding.create_project.select_method
135     </p>
136   </header>
137   <div
138     className="create-project-modes huge-spacer-top display-flex-justify-center"
139   >
140     <button
141       className="button button-huge display-flex-column create-project-mode-type-manual"
142       onClick={[Function]}
143       type="button"
144     >
145       <img
146         alt=""
147         height={80}
148         src="/images/sonarcloud/analysis/manual.svg"
149       />
150       <div
151         className="medium big-spacer-top"
152       >
153         onboarding.create_project.select_method.manual
154       </div>
155     </button>
156     <button
157       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm disabled"
158       disabled={true}
159       onClick={[Function]}
160       type="button"
161     >
162       <img
163         alt=""
164         height={80}
165         src="/images/alm/bitbucket.svg"
166       />
167       <div
168         className="medium big-spacer-top"
169       >
170         onboarding.create_project.select_method.bitbucket
171       </div>
172       <div
173         className="text-muted small spacer-top"
174         style={
175           Object {
176             "lineHeight": 1.5,
177           }
178         }
179       >
180         onboarding.create_project.alm_not_configured
181         <HelpTooltip
182           className="little-spacer-left"
183           overlay="onboarding.create_project.zero_alm_instances.bitbucket"
184         />
185       </div>
186     </button>
187     <button
188       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm disabled"
189       disabled={true}
190       onClick={[Function]}
191       type="button"
192     >
193       <img
194         alt=""
195         height={80}
196         src="/images/alm/github.svg"
197       />
198       <div
199         className="medium big-spacer-top"
200       >
201         onboarding.create_project.select_method.github
202       </div>
203       <div
204         className="text-muted small spacer-top"
205         style={
206           Object {
207             "lineHeight": 1.5,
208           }
209         }
210       >
211         onboarding.create_project.alm_not_configured
212         <HelpTooltip
213           className="little-spacer-left"
214           overlay="onboarding.create_project.too_many_alm_instances.github 
215                   onboarding.create_project.alm_instances_count_X.2"
216         />
217       </div>
218     </button>
219     <button
220       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm disabled"
221       disabled={true}
222       onClick={[Function]}
223       type="button"
224     >
225       <img
226         alt=""
227         height={80}
228         src="/images/alm/gitlab.svg"
229       />
230       <div
231         className="medium big-spacer-top"
232       >
233         onboarding.create_project.select_method.gitlab
234       </div>
235       <div
236         className="text-muted small spacer-top"
237         style={
238           Object {
239             "lineHeight": 1.5,
240           }
241         }
242       >
243         onboarding.create_project.alm_not_configured
244         <HelpTooltip
245           className="little-spacer-left"
246           overlay="onboarding.create_project.zero_alm_instances.gitlab"
247         />
248       </div>
249     </button>
250   </div>
251 </Fragment>
252 `;
253
254 exports[`should render correctly: loading instances 1`] = `
255 <Fragment>
256   <header
257     className="huge-spacer-top big-spacer-bottom padded"
258   >
259     <h1
260       className="text-center huge big-spacer-bottom"
261     >
262       my_account.create_new.TRK
263     </h1>
264     <p
265       className="text-center big"
266     >
267       onboarding.create_project.select_method
268     </p>
269   </header>
270   <div
271     className="create-project-modes huge-spacer-top display-flex-justify-center"
272   >
273     <button
274       className="button button-huge display-flex-column create-project-mode-type-manual"
275       onClick={[Function]}
276       type="button"
277     >
278       <img
279         alt=""
280         height={80}
281         src="/images/sonarcloud/analysis/manual.svg"
282       />
283       <div
284         className="medium big-spacer-top"
285       >
286         onboarding.create_project.select_method.manual
287       </div>
288     </button>
289     <button
290       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm disabled"
291       disabled={true}
292       onClick={[Function]}
293       type="button"
294     >
295       <img
296         alt=""
297         height={80}
298         src="/images/alm/bitbucket.svg"
299       />
300       <div
301         className="medium big-spacer-top"
302       >
303         onboarding.create_project.select_method.bitbucket
304       </div>
305       <span>
306         onboarding.create_project.check_alm_supported
307         <i
308           className="little-spacer-left spinner"
309         />
310       </span>
311     </button>
312     <button
313       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm disabled"
314       disabled={true}
315       onClick={[Function]}
316       type="button"
317     >
318       <img
319         alt=""
320         height={80}
321         src="/images/alm/github.svg"
322       />
323       <div
324         className="medium big-spacer-top"
325       >
326         onboarding.create_project.select_method.github
327       </div>
328       <span>
329         onboarding.create_project.check_alm_supported
330         <i
331           className="little-spacer-left spinner"
332         />
333       </span>
334     </button>
335     <button
336       className="button button-huge big-spacer-left display-flex-column create-project-mode-type-alm disabled"
337       disabled={true}
338       onClick={[Function]}
339       type="button"
340     >
341       <img
342         alt=""
343         height={80}
344         src="/images/alm/gitlab.svg"
345       />
346       <div
347         className="medium big-spacer-top"
348       >
349         onboarding.create_project.select_method.gitlab
350       </div>
351       <span>
352         onboarding.create_project.check_alm_supported
353         <i
354           className="little-spacer-left spinner"
355         />
356       </span>
357     </button>
358   </div>
359 </Fragment>
360 `;