]> source.dussan.org Git - sonarqube.git/blob
9232fe2c56c1abd735f466fc39ec0b115637f522
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display applications 1`] = `
4 <div
5   className="boxed-group project-card big-padded display-flex-column display-flex-space-between"
6   data-key="foo"
7   style={
8     Object {
9       "height": 100,
10     }
11   }
12 >
13   <div>
14     <div
15       className="project-card-header"
16     >
17       <h2
18         className="project-card-name"
19       >
20         <Connect(ProjectCardOrganization)
21           organization={
22             Object {
23               "key": "org",
24               "name": "org",
25             }
26           }
27         />
28         <Link
29           onlyActiveOnIndex={false}
30           style={Object {}}
31           to={
32             Object {
33               "pathname": "/dashboard",
34               "query": Object {
35                 "branch": undefined,
36                 "id": "foo",
37               },
38             }
39           }
40         >
41           Foo
42         </Link>
43       </h2>
44       <ProjectCardQualityGate
45         status="OK"
46       />
47       <div
48         className="project-card-header-right"
49       >
50         <Connect(PrivacyBadge)
51           className="spacer-left"
52           organization={
53             Object {
54               "key": "org",
55               "name": "org",
56             }
57           }
58           qualifier="APP"
59           tooltipProps={
60             Object {
61               "projectKey": "foo",
62             }
63           }
64           visibility="public"
65         />
66       </div>
67     </div>
68     <div
69       className="display-flex-center project-card-dates spacer-top"
70     >
71       <DateTimeFormatter
72         date="2017-01-01"
73       >
74         <Component />
75       </DateTimeFormatter>
76       <div
77         className="text-right flex-1-0-auto"
78       >
79         <QualifierIcon
80           className="spacer-right"
81           qualifier="APP"
82         />
83         qualifier.APP
84       </div>
85     </div>
86   </div>
87   <ProjectCardOverallMeasures
88     componentQualifier="APP"
89     measures={
90       Object {
91         "alert_status": "OK",
92         "new_bugs": "12",
93         "reliability_rating": "1.0",
94         "sqale_rating": "1.0",
95       }
96     }
97   />
98 </div>
99 `;
100
101 exports[`should display applications: with project count 1`] = `
102 <div
103   className="boxed-group project-card big-padded display-flex-column display-flex-space-between"
104   data-key="foo"
105   style={
106     Object {
107       "height": 100,
108     }
109   }
110 >
111   <div>
112     <div
113       className="project-card-header"
114     >
115       <h2
116         className="project-card-name"
117       >
118         <Connect(ProjectCardOrganization)
119           organization={
120             Object {
121               "key": "org",
122               "name": "org",
123             }
124           }
125         />
126         <Link
127           onlyActiveOnIndex={false}
128           style={Object {}}
129           to={
130             Object {
131               "pathname": "/dashboard",
132               "query": Object {
133                 "branch": undefined,
134                 "id": "foo",
135               },
136             }
137           }
138         >
139           Foo
140         </Link>
141       </h2>
142       <ProjectCardQualityGate
143         status="OK"
144       />
145       <div
146         className="project-card-header-right"
147       >
148         <Connect(PrivacyBadge)
149           className="spacer-left"
150           organization={
151             Object {
152               "key": "org",
153               "name": "org",
154             }
155           }
156           qualifier="APP"
157           tooltipProps={
158             Object {
159               "projectKey": "foo",
160             }
161           }
162           visibility="public"
163         />
164       </div>
165     </div>
166     <div
167       className="display-flex-center project-card-dates spacer-top"
168     >
169       <DateTimeFormatter
170         date="2017-01-01"
171       >
172         <Component />
173       </DateTimeFormatter>
174       <div
175         className="text-right flex-1-0-auto"
176       >
177         <QualifierIcon
178           className="spacer-right"
179           qualifier="APP"
180         />
181         qualifier.APP
182          ‒ 
183         x_projects_.3
184       </div>
185     </div>
186   </div>
187   <ProjectCardOverallMeasures
188     componentQualifier="APP"
189     measures={
190       Object {
191         "alert_status": "OK",
192         "new_bugs": "12",
193         "projects": "3",
194         "reliability_rating": "1.0",
195         "sqale_rating": "1.0",
196       }
197     }
198   />
199 </div>
200 `;
201
202 exports[`should display configure analysis button for logged in user 1`] = `
203 <div
204   className="boxed-group project-card big-padded display-flex-column display-flex-space-between"
205   data-key="foo"
206   style={
207     Object {
208       "height": 100,
209     }
210   }
211 >
212   <div>
213     <div
214       className="project-card-header"
215     >
216       <h2
217         className="project-card-name"
218       >
219         <Connect(ProjectCardOrganization)
220           organization={
221             Object {
222               "key": "org",
223               "name": "org",
224             }
225           }
226         />
227         <Link
228           onlyActiveOnIndex={false}
229           style={Object {}}
230           to={
231             Object {
232               "pathname": "/dashboard",
233               "query": Object {
234                 "branch": undefined,
235                 "id": "foo",
236               },
237             }
238           }
239         >
240           Foo
241         </Link>
242       </h2>
243       <div
244         className="project-card-header-right"
245       >
246         <Connect(PrivacyBadge)
247           className="spacer-left"
248           organization={
249             Object {
250               "key": "org",
251               "name": "org",
252             }
253           }
254           qualifier="TRK"
255           tooltipProps={
256             Object {
257               "projectKey": "foo",
258             }
259           }
260           visibility="public"
261         />
262       </div>
263     </div>
264   </div>
265   <div
266     className="project-card-not-analyzed"
267   >
268     <span
269       className="note"
270     >
271       projects.not_analyzed.TRK
272     </span>
273     <Link
274       className="button spacer-left"
275       onlyActiveOnIndex={false}
276       style={Object {}}
277       to={
278         Object {
279           "pathname": "/dashboard",
280           "query": Object {
281             "branch": undefined,
282             "id": "foo",
283           },
284         }
285       }
286     >
287       projects.configure_analysis
288     </Link>
289   </div>
290 </div>
291 `;
292
293 exports[`should display not analyzed yet 1`] = `
294 <div
295   className="boxed-group project-card big-padded display-flex-column display-flex-space-between"
296   data-key="foo"
297   style={
298     Object {
299       "height": 100,
300     }
301   }
302 >
303   <div>
304     <div
305       className="project-card-header"
306     >
307       <h2
308         className="project-card-name"
309       >
310         <Connect(ProjectCardOrganization)
311           organization={
312             Object {
313               "key": "org",
314               "name": "org",
315             }
316           }
317         />
318         <Link
319           onlyActiveOnIndex={false}
320           style={Object {}}
321           to={
322             Object {
323               "pathname": "/dashboard",
324               "query": Object {
325                 "branch": undefined,
326                 "id": "foo",
327               },
328             }
329           }
330         >
331           Foo
332         </Link>
333       </h2>
334       <div
335         className="project-card-header-right"
336       >
337         <Connect(PrivacyBadge)
338           className="spacer-left"
339           organization={
340             Object {
341               "key": "org",
342               "name": "org",
343             }
344           }
345           qualifier="TRK"
346           tooltipProps={
347             Object {
348               "projectKey": "foo",
349             }
350           }
351           visibility="public"
352         />
353       </div>
354     </div>
355   </div>
356   <div
357     className="project-card-not-analyzed"
358   >
359     <span
360       className="note"
361     >
362       projects.not_analyzed.TRK
363     </span>
364   </div>
365 </div>
366 `;
367
368 exports[`should display the overall measures and quality gate 1`] = `
369 <div
370   className="boxed-group project-card big-padded display-flex-column display-flex-space-between"
371   data-key="foo"
372   style={
373     Object {
374       "height": 100,
375     }
376   }
377 >
378   <div>
379     <div
380       className="project-card-header"
381     >
382       <h2
383         className="project-card-name"
384       >
385         <Connect(ProjectCardOrganization)
386           organization={
387             Object {
388               "key": "org",
389               "name": "org",
390             }
391           }
392         />
393         <Link
394           onlyActiveOnIndex={false}
395           style={Object {}}
396           to={
397             Object {
398               "pathname": "/dashboard",
399               "query": Object {
400                 "branch": undefined,
401                 "id": "foo",
402               },
403             }
404           }
405         >
406           Foo
407         </Link>
408       </h2>
409       <ProjectCardQualityGate
410         status="OK"
411       />
412       <div
413         className="project-card-header-right"
414       >
415         <Connect(PrivacyBadge)
416           className="spacer-left"
417           organization={
418             Object {
419               "key": "org",
420               "name": "org",
421             }
422           }
423           qualifier="TRK"
424           tooltipProps={
425             Object {
426               "projectKey": "foo",
427             }
428           }
429           visibility="public"
430         />
431       </div>
432     </div>
433     <div
434       className="display-flex-center project-card-dates spacer-top"
435     >
436       <DateTimeFormatter
437         date="2017-01-01"
438       >
439         <Component />
440       </DateTimeFormatter>
441     </div>
442   </div>
443   <ProjectCardOverallMeasures
444     componentQualifier="TRK"
445     measures={
446       Object {
447         "alert_status": "OK",
448         "new_bugs": "12",
449         "reliability_rating": "1.0",
450         "sqale_rating": "1.0",
451       }
452     }
453   />
454 </div>
455 `;