]> source.dussan.org Git - sonarqube.git/blob
25deb6dc14a5fa37d3a17693a659bf31ae9d1414
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display facet item list 1`] = `
4 <FacetBox
5   property="Reliability"
6 >
7   <FacetHeader
8     name="Reliability"
9     onClick={[Function]}
10     open={true}
11     values={Array []}
12   />
13   <FacetItemsList>
14     <FacetItem
15       active={false}
16       disabled={false}
17       halfWidth={false}
18       key="Reliability"
19       loading={false}
20       name={
21         <span
22           id="measure-overview-Reliability-name"
23         >
24           component_measures.domain_overview
25         </span>
26       }
27       onClick={[Function]}
28       stat={
29         <BubblesIcon
30           size={14}
31         />
32       }
33       tooltip="component_measures.domain_overview"
34       value="Reliability"
35     />
36     <span
37       className="facet search-navigator-facet facet-category"
38       key="new_code_category"
39     >
40       <span
41         className="facet-name"
42       >
43         component_measures.facet_category.new_code_category
44       </span>
45     </span>
46     <FacetItem
47       active={false}
48       disabled={false}
49       halfWidth={false}
50       key="new_bugs"
51       loading={false}
52       name={
53         <span
54           className="big-spacer-left"
55           id="measure-new_bugs-name"
56         >
57           New Bugs
58         </span>
59       }
60       onClick={[Function]}
61       stat={
62         <FacetMeasureValue
63           measure={
64             Object {
65               "leak": "5",
66               "metric": Object {
67                 "domain": "Reliability",
68                 "id": "2",
69                 "key": "new_bugs",
70                 "name": "New Bugs",
71                 "type": "INT",
72               },
73               "periods": Array [
74                 Object {
75                   "index": 1,
76                   "value": "5",
77                 },
78               ],
79             }
80           }
81         />
82       }
83       tooltip="New Bugs"
84       value="new_bugs"
85     />
86     <span
87       className="facet search-navigator-facet facet-category"
88       key="overall_category"
89     >
90       <span
91         className="facet-name"
92       >
93         component_measures.facet_category.overall_category
94       </span>
95     </span>
96     <FacetItem
97       active={false}
98       disabled={false}
99       halfWidth={false}
100       key="bugs"
101       loading={false}
102       name={
103         <span
104           className="big-spacer-left"
105           id="measure-bugs-name"
106         >
107           Bugs
108         </span>
109       }
110       onClick={[Function]}
111       stat={
112         <FacetMeasureValue
113           measure={
114             Object {
115               "leak": "5",
116               "metric": Object {
117                 "domain": "Reliability",
118                 "id": "1",
119                 "key": "bugs",
120                 "name": "Bugs",
121                 "type": "INT",
122               },
123               "periods": Array [
124                 Object {
125                   "index": 1,
126                   "value": "5",
127                 },
128               ],
129               "value": "5",
130             }
131           }
132         />
133       }
134       tooltip="Bugs"
135       value="bugs"
136     />
137   </FacetItemsList>
138 </FacetBox>
139 `;
140
141 exports[`should display facet item list with bugs selected 1`] = `
142 <FacetBox
143   property="Reliability"
144 >
145   <FacetHeader
146     name="Reliability"
147     onClick={[Function]}
148     open={true}
149     values={
150       Array [
151         "Bugs",
152       ]
153     }
154   />
155   <FacetItemsList>
156     <FacetItem
157       active={false}
158       disabled={false}
159       halfWidth={false}
160       key="Reliability"
161       loading={false}
162       name={
163         <span
164           id="measure-overview-Reliability-name"
165         >
166           component_measures.domain_overview
167         </span>
168       }
169       onClick={[Function]}
170       stat={
171         <BubblesIcon
172           size={14}
173         />
174       }
175       tooltip="component_measures.domain_overview"
176       value="Reliability"
177     />
178     <span
179       className="facet search-navigator-facet facet-category"
180       key="new_code_category"
181     >
182       <span
183         className="facet-name"
184       >
185         component_measures.facet_category.new_code_category
186       </span>
187     </span>
188     <FacetItem
189       active={false}
190       disabled={false}
191       halfWidth={false}
192       key="new_bugs"
193       loading={false}
194       name={
195         <span
196           className="big-spacer-left"
197           id="measure-new_bugs-name"
198         >
199           New Bugs
200         </span>
201       }
202       onClick={[Function]}
203       stat={
204         <FacetMeasureValue
205           measure={
206             Object {
207               "leak": "5",
208               "metric": Object {
209                 "domain": "Reliability",
210                 "id": "2",
211                 "key": "new_bugs",
212                 "name": "New Bugs",
213                 "type": "INT",
214               },
215               "periods": Array [
216                 Object {
217                   "index": 1,
218                   "value": "5",
219                 },
220               ],
221             }
222           }
223         />
224       }
225       tooltip="New Bugs"
226       value="new_bugs"
227     />
228     <span
229       className="facet search-navigator-facet facet-category"
230       key="overall_category"
231     >
232       <span
233         className="facet-name"
234       >
235         component_measures.facet_category.overall_category
236       </span>
237     </span>
238     <FacetItem
239       active={true}
240       disabled={false}
241       halfWidth={false}
242       key="bugs"
243       loading={false}
244       name={
245         <span
246           className="big-spacer-left"
247           id="measure-bugs-name"
248         >
249           Bugs
250         </span>
251       }
252       onClick={[Function]}
253       stat={
254         <FacetMeasureValue
255           measure={
256             Object {
257               "leak": "5",
258               "metric": Object {
259                 "domain": "Reliability",
260                 "id": "1",
261                 "key": "bugs",
262                 "name": "Bugs",
263                 "type": "INT",
264               },
265               "periods": Array [
266                 Object {
267                   "index": 1,
268                   "value": "5",
269                 },
270               ],
271               "value": "5",
272             }
273           }
274         />
275       }
276       tooltip="Bugs"
277       value="bugs"
278     />
279   </FacetItemsList>
280 </FacetBox>
281 `;
282
283 exports[`should not display subtitles of new measures if there is none 1`] = `
284 <FacetBox
285   property="Reliability"
286 >
287   <FacetHeader
288     name="Reliability"
289     onClick={[Function]}
290     open={true}
291     values={Array []}
292   />
293   <FacetItemsList>
294     <FacetItem
295       active={false}
296       disabled={false}
297       halfWidth={false}
298       key="Reliability"
299       loading={false}
300       name={
301         <span
302           id="measure-overview-Reliability-name"
303         >
304           component_measures.domain_overview
305         </span>
306       }
307       onClick={[Function]}
308       stat={
309         <BubblesIcon
310           size={14}
311         />
312       }
313       tooltip="component_measures.domain_overview"
314       value="Reliability"
315     />
316     <span
317       className="facet search-navigator-facet facet-category"
318       key="overall_category"
319     >
320       <span
321         className="facet-name"
322       >
323         component_measures.facet_category.overall_category
324       </span>
325     </span>
326     <FacetItem
327       active={false}
328       disabled={false}
329       halfWidth={false}
330       key="bugs"
331       loading={false}
332       name={
333         <span
334           className="big-spacer-left"
335           id="measure-bugs-name"
336         >
337           Bugs
338         </span>
339       }
340       onClick={[Function]}
341       stat={
342         <FacetMeasureValue
343           measure={
344             Object {
345               "metric": Object {
346                 "domain": "Reliability",
347                 "id": "1",
348                 "key": "bugs",
349                 "name": "Bugs",
350                 "type": "INT",
351               },
352               "value": "5",
353             }
354           }
355         />
356       }
357       tooltip="Bugs"
358       value="bugs"
359     />
360   </FacetItemsList>
361 </FacetBox>
362 `;
363
364 exports[`should not display subtitles of new measures if there is none, even on last line 1`] = `
365 <FacetBox
366   property="Reliability"
367 >
368   <FacetHeader
369     name="Reliability"
370     onClick={[Function]}
371     open={true}
372     values={Array []}
373   />
374   <FacetItemsList>
375     <FacetItem
376       active={false}
377       disabled={false}
378       halfWidth={false}
379       key="Reliability"
380       loading={false}
381       name={
382         <span
383           id="measure-overview-Reliability-name"
384         >
385           component_measures.domain_overview
386         </span>
387       }
388       onClick={[Function]}
389       stat={
390         <BubblesIcon
391           size={14}
392         />
393       }
394       tooltip="component_measures.domain_overview"
395       value="Reliability"
396     />
397     <span
398       className="facet search-navigator-facet facet-category"
399       key="new_code_category"
400     >
401       <span
402         className="facet-name"
403       >
404         component_measures.facet_category.new_code_category
405       </span>
406     </span>
407     <FacetItem
408       active={false}
409       disabled={false}
410       halfWidth={false}
411       key="new_bugs"
412       loading={false}
413       name={
414         <span
415           className="big-spacer-left"
416           id="measure-new_bugs-name"
417         >
418           New Bugs
419         </span>
420       }
421       onClick={[Function]}
422       stat={
423         <FacetMeasureValue
424           measure={
425             Object {
426               "metric": Object {
427                 "domain": "Reliability",
428                 "id": "2",
429                 "key": "new_bugs",
430                 "name": "New Bugs",
431                 "type": "INT",
432               },
433               "value": "5",
434             }
435           }
436         />
437       }
438       tooltip="New Bugs"
439       value="new_bugs"
440     />
441   </FacetItemsList>
442 </FacetBox>
443 `;
444
445 exports[`should use "estimated" label for overall measures  1`] = `
446 Array [
447   "component_measures.facet_category.new_code_category",
448   "component_measures.facet_category.overall_category.estimated",
449 ]
450 `;