]> source.dussan.org Git - sonarqube.git/blob
c57e8c544391aa436307157e703e40aabe3a7a47
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display applications 1`] = `
4 <div
5   className="display-flex-column boxed-group it_project_card"
6   data-key="foo"
7   style={
8     Object {
9       "height": 100,
10     }
11   }
12 >
13   <div
14     className="display-flex-center"
15   >
16     <div
17       className="project-card-main big-padded padded-bottom display-flex-center"
18     >
19       <Tooltip
20         overlay={
21           <span>
22             qualifier.APP
23           </span>
24         }
25         placement="top"
26       >
27         <span
28           className="spacer-right"
29         >
30           <QualifierIcon
31             qualifier="APP"
32           />
33         </span>
34       </Tooltip>
35       <h2
36         className="project-card-name text-ellipsis"
37         title="Foo"
38       >
39         <Link
40           onlyActiveOnIndex={false}
41           style={Object {}}
42           to={
43             Object {
44               "pathname": "/dashboard",
45               "query": Object {
46                 "branch": undefined,
47                 "id": "foo",
48               },
49             }
50           }
51         >
52           Foo
53         </Link>
54       </h2>
55       <ProjectCardQualityGate
56         status="OK"
57       />
58       <span
59         className="flex-grow"
60       />
61       <DateTimeFormatter
62         date="2017-01-01"
63       >
64         <Component />
65       </DateTimeFormatter>
66     </div>
67     <div
68       className="project-card-meta big-padded padded-bottom display-flex-center"
69     >
70       <div
71         className="display-flex-center overflow-hidden"
72       >
73         <PrivacyBadgeContainer
74           className="spacer-right"
75           qualifier="APP"
76           visibility="public"
77         />
78       </div>
79     </div>
80   </div>
81   <div
82     className="display-flex-end flex-grow"
83   >
84     <div
85       className="project-card-main big-padded-left big-padded-right big-padded-bottom"
86     >
87       <ProjectCardMeasures
88         componentQualifier="APP"
89         isNewCode={false}
90         measures={
91           Object {
92             "alert_status": "OK",
93             "new_bugs": "12",
94             "reliability_rating": "1.0",
95             "sqale_rating": "1.0",
96           }
97         }
98       />
99     </div>
100     <div
101       className="project-card-meta display-flex-end big-padded-left big-padded-right big-padded-bottom"
102     />
103   </div>
104 </div>
105 `;
106
107 exports[`should display applications: with project count 1`] = `
108 <div
109   className="display-flex-column boxed-group it_project_card"
110   data-key="foo"
111   style={
112     Object {
113       "height": 100,
114     }
115   }
116 >
117   <div
118     className="display-flex-center"
119   >
120     <div
121       className="project-card-main big-padded padded-bottom display-flex-center"
122     >
123       <Tooltip
124         overlay={
125           <span>
126             qualifier.APP
127             <span>
128                ‒ 
129               x_projects_.3
130             </span>
131           </span>
132         }
133         placement="top"
134       >
135         <span
136           className="spacer-right"
137         >
138           <QualifierIcon
139             qualifier="APP"
140           />
141         </span>
142       </Tooltip>
143       <h2
144         className="project-card-name text-ellipsis"
145         title="Foo"
146       >
147         <Link
148           onlyActiveOnIndex={false}
149           style={Object {}}
150           to={
151             Object {
152               "pathname": "/dashboard",
153               "query": Object {
154                 "branch": undefined,
155                 "id": "foo",
156               },
157             }
158           }
159         >
160           Foo
161         </Link>
162       </h2>
163       <ProjectCardQualityGate
164         status="OK"
165       />
166       <span
167         className="flex-grow"
168       />
169       <DateTimeFormatter
170         date="2017-01-01"
171       >
172         <Component />
173       </DateTimeFormatter>
174     </div>
175     <div
176       className="project-card-meta big-padded padded-bottom display-flex-center"
177     >
178       <div
179         className="display-flex-center overflow-hidden"
180       >
181         <PrivacyBadgeContainer
182           className="spacer-right"
183           qualifier="APP"
184           visibility="public"
185         />
186       </div>
187     </div>
188   </div>
189   <div
190     className="display-flex-end flex-grow"
191   >
192     <div
193       className="project-card-main big-padded-left big-padded-right big-padded-bottom"
194     >
195       <ProjectCardMeasures
196         componentQualifier="APP"
197         isNewCode={false}
198         measures={
199           Object {
200             "alert_status": "OK",
201             "new_bugs": "12",
202             "projects": "3",
203             "reliability_rating": "1.0",
204             "sqale_rating": "1.0",
205           }
206         }
207       />
208     </div>
209     <div
210       className="project-card-meta display-flex-end big-padded-left big-padded-right big-padded-bottom"
211     />
212   </div>
213 </div>
214 `;
215
216 exports[`should display configure analysis button for logged in user: default 1`] = `
217 <div
218   className="display-flex-column boxed-group it_project_card"
219   data-key="foo"
220   style={
221     Object {
222       "height": 100,
223     }
224   }
225 >
226   <div
227     className="display-flex-center"
228   >
229     <div
230       className="project-card-main big-padded padded-bottom display-flex-center"
231     >
232       <h2
233         className="project-card-name text-ellipsis"
234         title="Foo"
235       >
236         <Link
237           onlyActiveOnIndex={false}
238           style={Object {}}
239           to={
240             Object {
241               "pathname": "/dashboard",
242               "query": Object {
243                 "branch": undefined,
244                 "id": "foo",
245               },
246             }
247           }
248         >
249           Foo
250         </Link>
251       </h2>
252     </div>
253     <div
254       className="project-card-meta big-padded padded-bottom display-flex-center"
255     >
256       <div
257         className="display-flex-center overflow-hidden"
258       >
259         <PrivacyBadgeContainer
260           className="spacer-right"
261           qualifier="TRK"
262           visibility="public"
263         />
264       </div>
265     </div>
266   </div>
267   <div
268     className="display-flex-end flex-grow"
269   >
270     <div
271       className="project-card-main big-padded-left big-padded-right big-padded-bottom"
272     >
273       <div
274         className="spacer-top spacer-bottom"
275       >
276         <span
277           className="note"
278         >
279           projects.not_analyzed.TRK
280         </span>
281         <Link
282           className="button spacer-left"
283           onlyActiveOnIndex={false}
284           style={Object {}}
285           to={
286             Object {
287               "pathname": "/dashboard",
288               "query": Object {
289                 "branch": undefined,
290                 "id": "foo",
291               },
292             }
293           }
294         >
295           projects.configure_analysis
296         </Link>
297       </div>
298     </div>
299     <div
300       className="project-card-meta display-flex-end big-padded-left big-padded-right big-padded-bottom"
301     />
302   </div>
303 </div>
304 `;
305
306 exports[`should display configure analysis button for logged in user: hidden if sync in place 1`] = `
307 <div
308   className="display-flex-column boxed-group it_project_card project-card-disabled"
309   data-key="foo"
310   style={
311     Object {
312       "height": 100,
313     }
314   }
315 >
316   <div
317     className="display-flex-center"
318   >
319     <div
320       className="project-card-main big-padded padded-bottom display-flex-center"
321     >
322       <h2
323         className="project-card-name text-ellipsis"
324         title="Foo"
325       >
326         Foo
327       </h2>
328     </div>
329     <div
330       className="project-card-meta big-padded padded-bottom display-flex-center"
331     >
332       <div
333         className="display-flex-center overflow-hidden"
334       >
335         <PrivacyBadgeContainer
336           className="spacer-right"
337           qualifier="TRK"
338           visibility="public"
339         />
340       </div>
341     </div>
342   </div>
343   <div
344     className="display-flex-end flex-grow"
345   >
346     <div
347       className="project-card-main big-padded-left big-padded-right big-padded-bottom"
348     >
349       <div
350         className="spacer-top spacer-bottom"
351       >
352         <span
353           className="note"
354         >
355           projects.not_analyzed.TRK
356         </span>
357       </div>
358     </div>
359     <div
360       className="project-card-meta display-flex-end big-padded-left big-padded-right big-padded-bottom"
361     />
362   </div>
363 </div>
364 `;
365
366 exports[`should display correclty when project need issue synch 1`] = `
367 <div
368   className="display-flex-column boxed-group it_project_card project-card-disabled"
369   data-key="foo"
370   style={
371     Object {
372       "height": 100,
373     }
374   }
375 >
376   <div
377     className="display-flex-center"
378   >
379     <div
380       className="project-card-main big-padded padded-bottom display-flex-center"
381     >
382       <h2
383         className="project-card-name text-ellipsis"
384         title="Foo"
385       >
386         Foo
387       </h2>
388       <ProjectCardQualityGate
389         status="OK"
390       />
391       <span
392         className="flex-grow"
393       />
394       <DateTimeFormatter
395         date="2017-01-01"
396       >
397         <Component />
398       </DateTimeFormatter>
399     </div>
400     <div
401       className="project-card-meta big-padded padded-bottom display-flex-center"
402     >
403       <div
404         className="display-flex-center overflow-hidden"
405       >
406         <PrivacyBadgeContainer
407           className="spacer-right"
408           qualifier="TRK"
409           visibility="public"
410         />
411       </div>
412     </div>
413   </div>
414   <div
415     className="display-flex-end flex-grow"
416   >
417     <div
418       className="project-card-main big-padded-left big-padded-right big-padded-bottom"
419     >
420       <ProjectCardMeasures
421         componentQualifier="TRK"
422         isNewCode={false}
423         measures={
424           Object {
425             "alert_status": "OK",
426             "new_bugs": "12",
427             "reliability_rating": "1.0",
428             "sqale_rating": "1.0",
429           }
430         }
431       />
432     </div>
433     <div
434       className="project-card-meta display-flex-end big-padded-left big-padded-right big-padded-bottom"
435     />
436   </div>
437 </div>
438 `;
439
440 exports[`should display not analyzed yet 1`] = `
441 <div
442   className="display-flex-column boxed-group it_project_card"
443   data-key="foo"
444   style={
445     Object {
446       "height": 100,
447     }
448   }
449 >
450   <div
451     className="display-flex-center"
452   >
453     <div
454       className="project-card-main big-padded padded-bottom display-flex-center"
455     >
456       <h2
457         className="project-card-name text-ellipsis"
458         title="Foo"
459       >
460         <Link
461           onlyActiveOnIndex={false}
462           style={Object {}}
463           to={
464             Object {
465               "pathname": "/dashboard",
466               "query": Object {
467                 "branch": undefined,
468                 "id": "foo",
469               },
470             }
471           }
472         >
473           Foo
474         </Link>
475       </h2>
476     </div>
477     <div
478       className="project-card-meta big-padded padded-bottom display-flex-center"
479     >
480       <div
481         className="display-flex-center overflow-hidden"
482       >
483         <PrivacyBadgeContainer
484           className="spacer-right"
485           qualifier="TRK"
486           visibility="public"
487         />
488       </div>
489     </div>
490   </div>
491   <div
492     className="display-flex-end flex-grow"
493   >
494     <div
495       className="project-card-main big-padded-left big-padded-right big-padded-bottom"
496     >
497       <div
498         className="spacer-top spacer-bottom"
499       >
500         <span
501           className="note"
502         >
503           projects.not_analyzed.TRK
504         </span>
505       </div>
506     </div>
507     <div
508       className="project-card-meta display-flex-end big-padded-left big-padded-right big-padded-bottom"
509     />
510   </div>
511 </div>
512 `;
513
514 exports[`should display the overall measures and quality gate 1`] = `
515 <div
516   className="display-flex-column boxed-group it_project_card"
517   data-key="foo"
518   style={
519     Object {
520       "height": 100,
521     }
522   }
523 >
524   <div
525     className="display-flex-center"
526   >
527     <div
528       className="project-card-main big-padded padded-bottom display-flex-center"
529     >
530       <h2
531         className="project-card-name text-ellipsis"
532         title="Foo"
533       >
534         <Link
535           onlyActiveOnIndex={false}
536           style={Object {}}
537           to={
538             Object {
539               "pathname": "/dashboard",
540               "query": Object {
541                 "branch": undefined,
542                 "id": "foo",
543               },
544             }
545           }
546         >
547           Foo
548         </Link>
549       </h2>
550       <ProjectCardQualityGate
551         status="OK"
552       />
553       <span
554         className="flex-grow"
555       />
556       <DateTimeFormatter
557         date="2017-01-01"
558       >
559         <Component />
560       </DateTimeFormatter>
561     </div>
562     <div
563       className="project-card-meta big-padded padded-bottom display-flex-center"
564     >
565       <div
566         className="display-flex-center overflow-hidden"
567       >
568         <PrivacyBadgeContainer
569           className="spacer-right"
570           qualifier="TRK"
571           visibility="public"
572         />
573       </div>
574     </div>
575   </div>
576   <div
577     className="display-flex-end flex-grow"
578   >
579     <div
580       className="project-card-main big-padded-left big-padded-right big-padded-bottom"
581     >
582       <ProjectCardMeasures
583         componentQualifier="TRK"
584         isNewCode={false}
585         measures={
586           Object {
587             "alert_status": "OK",
588             "new_bugs": "12",
589             "reliability_rating": "1.0",
590             "sqale_rating": "1.0",
591           }
592         }
593       />
594     </div>
595     <div
596       className="project-card-meta display-flex-end big-padded-left big-padded-right big-padded-bottom"
597     />
598   </div>
599 </div>
600 `;