]> source.dussan.org Git - sonarqube.git/blob
65186535bcb5bc283b1466e074129a21a545ca60
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: closed 1`] = `
4 <BoxedGroupAccordion
5   className="big-spacer-bottom"
6   onClick={[MockFunction]}
7   open={false}
8   title={
9     <h3>
10       Project
11     </h3>
12   }
13 />
14 `;
15
16 exports[`should render correctly: default 1`] = `
17 <BoxedGroupAccordion
18   className="big-spacer-bottom open"
19   onClick={[MockFunction]}
20   open={true}
21   title={
22     <h3>
23       Project
24     </h3>
25   }
26 >
27   <div
28     className="display-flex-wrap"
29   >
30     <Radio
31       checked={false}
32       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo overflow-hidden"
33       key="1"
34       onCheck={[Function]}
35       value="1"
36     >
37       <strong
38         className="text-ellipsis"
39         title="Repo"
40       >
41         Repo
42       </strong>
43     </Radio>
44     <div
45       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo"
46       key="2"
47     >
48       <CheckIcon
49         className="spacer-right"
50         fill="#00aa00"
51         size={14}
52       />
53       <div
54         className="overflow-hidden"
55       >
56         <div
57           className="little-spacer-bottom text-ellipsis"
58         >
59           <strong
60             title="Bar"
61           >
62             <ForwardRef(Link)
63               to={
64                 Object {
65                   "pathname": "/dashboard",
66                   "search": "?id=bar",
67                 }
68               }
69             >
70               Bar
71             </ForwardRef(Link)>
72           </strong>
73         </div>
74         <em>
75           onboarding.create_project.repository_imported
76         </em>
77       </div>
78     </div>
79   </div>
80 </BoxedGroupAccordion>
81 `;
82
83 exports[`should render correctly: disable options 1`] = `
84 <BoxedGroupAccordion
85   className="big-spacer-bottom open"
86   onClick={[MockFunction]}
87   open={true}
88   title={
89     <h3>
90       Project
91     </h3>
92   }
93 >
94   <div
95     className="display-flex-wrap"
96   >
97     <Radio
98       checked={false}
99       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo overflow-hidden disabled"
100       key="1"
101       onCheck={[Function]}
102       value="1"
103     >
104       <strong
105         className="text-ellipsis"
106         title="Repo"
107       >
108         Repo
109       </strong>
110     </Radio>
111     <div
112       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo"
113       key="2"
114     >
115       <CheckIcon
116         className="spacer-right"
117         fill="#00aa00"
118         size={14}
119       />
120       <div
121         className="overflow-hidden"
122       >
123         <div
124           className="little-spacer-bottom text-ellipsis"
125         >
126           <strong
127             title="Bar"
128           >
129             <ForwardRef(Link)
130               to={
131                 Object {
132                   "pathname": "/dashboard",
133                   "search": "?id=bar",
134                 }
135               }
136             >
137               Bar
138             </ForwardRef(Link)>
139           </strong>
140         </div>
141         <em>
142           onboarding.create_project.repository_imported
143         </em>
144       </div>
145     </div>
146   </div>
147 </BoxedGroupAccordion>
148 `;
149
150 exports[`should render correctly: no click handler 1`] = `
151 <BoxedGroupAccordion
152   className="big-spacer-bottom open not-clickable no-hover"
153   onClick={[Function]}
154   open={true}
155   title={
156     <h3>
157       Project
158     </h3>
159   }
160 >
161   <div
162     className="display-flex-wrap"
163   >
164     <Radio
165       checked={false}
166       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo overflow-hidden"
167       key="1"
168       onCheck={[Function]}
169       value="1"
170     >
171       <strong
172         className="text-ellipsis"
173         title="Repo"
174       >
175         Repo
176       </strong>
177     </Radio>
178     <div
179       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo"
180       key="2"
181     >
182       <CheckIcon
183         className="spacer-right"
184         fill="#00aa00"
185         size={14}
186       />
187       <div
188         className="overflow-hidden"
189       >
190         <div
191           className="little-spacer-bottom text-ellipsis"
192         >
193           <strong
194             title="Bar"
195           >
196             <ForwardRef(Link)
197               to={
198                 Object {
199                   "pathname": "/dashboard",
200                   "search": "?id=bar",
201                 }
202               }
203             >
204               Bar
205             </ForwardRef(Link)>
206           </strong>
207         </div>
208         <em>
209           onboarding.create_project.repository_imported
210         </em>
211       </div>
212     </div>
213   </div>
214 </BoxedGroupAccordion>
215 `;
216
217 exports[`should render correctly: no project info 1`] = `
218 <BoxedGroupAccordion
219   className="big-spacer-bottom open"
220   onClick={[MockFunction]}
221   open={true}
222   title={
223     <h3>
224       search_results
225     </h3>
226   }
227 >
228   <div
229     className="display-flex-wrap"
230   >
231     <Radio
232       checked={false}
233       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo overflow-hidden"
234       key="1"
235       onCheck={[Function]}
236       value="1"
237     >
238       <strong
239         className="text-ellipsis"
240         title="Repo"
241       >
242         Repo
243       </strong>
244     </Radio>
245     <div
246       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo"
247       key="2"
248     >
249       <CheckIcon
250         className="spacer-right"
251         fill="#00aa00"
252         size={14}
253       />
254       <div
255         className="overflow-hidden"
256       >
257         <div
258           className="little-spacer-bottom text-ellipsis"
259         >
260           <strong
261             title="Bar"
262           >
263             <ForwardRef(Link)
264               to={
265                 Object {
266                   "pathname": "/dashboard",
267                   "search": "?id=bar",
268                 }
269               }
270             >
271               Bar
272             </ForwardRef(Link)>
273           </strong>
274         </div>
275         <em>
276           onboarding.create_project.repository_imported
277         </em>
278       </div>
279     </div>
280   </div>
281 </BoxedGroupAccordion>
282 `;
283
284 exports[`should render correctly: no repos 1`] = `
285 <BoxedGroupAccordion
286   className="big-spacer-bottom open"
287   onClick={[MockFunction]}
288   open={true}
289   title={
290     <h3>
291       Project
292     </h3>
293   }
294 >
295   <div
296     className="display-flex-wrap"
297   >
298     <Alert
299       variant="warning"
300     >
301       <FormattedMessage
302         defaultMessage="onboarding.create_project.no_bbs_repos"
303         id="onboarding.create_project.no_bbs_repos"
304         values={
305           Object {
306             "link": <ForwardRef(Link)
307               to={
308                 Object {
309                   "pathname": "/projects/create",
310                   "search": "?mode=bitbucket&resetPat=1",
311                 }
312               }
313             >
314               onboarding.create_project.update_your_token
315             </ForwardRef(Link)>,
316           }
317         }
318       />
319     </Alert>
320   </div>
321 </BoxedGroupAccordion>
322 `;
323
324 exports[`should render correctly: not showing all repos 1`] = `
325 <BoxedGroupAccordion
326   className="big-spacer-bottom open"
327   onClick={[MockFunction]}
328   open={true}
329   title={
330     <h3>
331       Project
332     </h3>
333   }
334 >
335   <div
336     className="display-flex-wrap"
337   >
338     <Radio
339       checked={false}
340       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo overflow-hidden"
341       key="1"
342       onCheck={[Function]}
343       value="1"
344     >
345       <strong
346         className="text-ellipsis"
347         title="Repo"
348       >
349         Repo
350       </strong>
351     </Radio>
352     <div
353       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo"
354       key="2"
355     >
356       <CheckIcon
357         className="spacer-right"
358         fill="#00aa00"
359         size={14}
360       />
361       <div
362         className="overflow-hidden"
363       >
364         <div
365           className="little-spacer-bottom text-ellipsis"
366         >
367           <strong
368             title="Bar"
369           >
370             <ForwardRef(Link)
371               to={
372                 Object {
373                   "pathname": "/dashboard",
374                   "search": "?id=bar",
375                 }
376               }
377             >
378               Bar
379             </ForwardRef(Link)>
380           </strong>
381         </div>
382         <em>
383           onboarding.create_project.repository_imported
384         </em>
385       </div>
386     </div>
387   </div>
388   <Alert
389     variant="warning"
390   >
391     onboarding.create_project.only_showing_X_first_repos.2
392   </Alert>
393 </BoxedGroupAccordion>
394 `;
395
396 exports[`should render correctly: selected repo 1`] = `
397 <BoxedGroupAccordion
398   className="big-spacer-bottom open"
399   onClick={[MockFunction]}
400   open={true}
401   title={
402     <h3>
403       Project
404     </h3>
405   }
406 >
407   <div
408     className="display-flex-wrap"
409   >
410     <Radio
411       checked={true}
412       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo overflow-hidden"
413       key="1"
414       onCheck={[Function]}
415       value="1"
416     >
417       <strong
418         className="text-ellipsis"
419         title="Repo"
420       >
421         Repo
422       </strong>
423     </Radio>
424     <div
425       className="display-flex-start spacer-right spacer-bottom create-project-import-bbs-repo"
426       key="2"
427     >
428       <CheckIcon
429         className="spacer-right"
430         fill="#00aa00"
431         size={14}
432       />
433       <div
434         className="overflow-hidden"
435       >
436         <div
437           className="little-spacer-bottom text-ellipsis"
438         >
439           <strong
440             title="Bar"
441           >
442             <ForwardRef(Link)
443               to={
444                 Object {
445                   "pathname": "/dashboard",
446                   "search": "?id=bar",
447                 }
448               }
449             >
450               Bar
451             </ForwardRef(Link)>
452           </strong>
453         </div>
454         <em>
455           onboarding.create_project.repository_imported
456         </em>
457       </div>
458     </div>
459   </div>
460 </BoxedGroupAccordion>
461 `;