]> source.dussan.org Git - sonarqube.git/blob
3b11a53b1ff7a75c322e3c79c31b70e1d9a5c14b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display facet item list 1`] = `
4 <FacetBox>
5   <FacetHeader
6     name="Reliability"
7     onClick={[Function]}
8     open={true}
9     values={0}
10   />
11   <FacetItemsList>
12     <FacetItem
13       active={false}
14       disabled={false}
15       halfWidth={false}
16       name={
17         <Tooltip
18           mouseEnterDelay={0.5}
19           overlay="component_measures.domain_x_overview.Reliability"
20           placement="bottom"
21         >
22           <span
23             id="measure-overview-Reliability-name"
24           >
25             component_measures.domain_x_overview.Reliability
26           </span>
27         </Tooltip>
28       }
29       onClick={[Function]}
30       stat={
31         <BubblesIcon
32           size={14}
33         />
34       }
35       value="Reliability"
36     />
37     <FacetItem
38       active={false}
39       disabled={false}
40       halfWidth={false}
41       name={
42         <Tooltip
43           mouseEnterDelay={0.5}
44           overlay="Bugs"
45           placement="bottom"
46         >
47           <span
48             id="measure-bugs-name"
49           >
50             <IssueTypeIcon
51               className="little-spacer-right"
52               query="bugs"
53             />
54             Bugs
55           </span>
56         </Tooltip>
57       }
58       onClick={[Function]}
59       stat={
60         <FacetMeasureValue
61           measure={
62             Object {
63               "leak": "5",
64               "metric": Object {
65                 "domain": "Reliability",
66                 "key": "bugs",
67                 "name": "Bugs",
68                 "type": "INT",
69               },
70               "periods": Array [
71                 Object {
72                   "index": 1,
73                   "value": "5",
74                 },
75               ],
76               "value": "5",
77             }
78           }
79         />
80       }
81       value="bugs"
82     />
83     <FacetItem
84       active={false}
85       disabled={false}
86       halfWidth={false}
87       name={
88         <Tooltip
89           mouseEnterDelay={0.5}
90           overlay="New Bugs"
91           placement="bottom"
92         >
93           <span
94             id="measure-new_bugs-name"
95           >
96             <IssueTypeIcon
97               className="little-spacer-right"
98               query="new_bugs"
99             />
100             New Bugs
101           </span>
102         </Tooltip>
103       }
104       onClick={[Function]}
105       stat={
106         <FacetMeasureValue
107           measure={
108             Object {
109               "leak": "5",
110               "metric": Object {
111                 "domain": "Reliability",
112                 "key": "new_bugs",
113                 "name": "New Bugs",
114                 "type": "INT",
115               },
116               "periods": Array [
117                 Object {
118                   "index": 1,
119                   "value": "5",
120                 },
121               ],
122             }
123           }
124         />
125       }
126       value="new_bugs"
127     />
128   </FacetItemsList>
129 </FacetBox>
130 `;
131
132 exports[`should display facet item list with bugs selected 1`] = `
133 <FacetBox>
134   <FacetHeader
135     name="Reliability"
136     onClick={[Function]}
137     open={true}
138     values={1}
139   />
140   <FacetItemsList>
141     <FacetItem
142       active={false}
143       disabled={false}
144       halfWidth={false}
145       name={
146         <Tooltip
147           mouseEnterDelay={0.5}
148           overlay="component_measures.domain_x_overview.Reliability"
149           placement="bottom"
150         >
151           <span
152             id="measure-overview-Reliability-name"
153           >
154             component_measures.domain_x_overview.Reliability
155           </span>
156         </Tooltip>
157       }
158       onClick={[Function]}
159       stat={
160         <BubblesIcon
161           size={14}
162         />
163       }
164       value="Reliability"
165     />
166     <FacetItem
167       active={true}
168       disabled={false}
169       halfWidth={false}
170       name={
171         <Tooltip
172           mouseEnterDelay={0.5}
173           overlay="Bugs"
174           placement="bottom"
175         >
176           <span
177             id="measure-bugs-name"
178           >
179             <IssueTypeIcon
180               className="little-spacer-right"
181               query="bugs"
182             />
183             Bugs
184           </span>
185         </Tooltip>
186       }
187       onClick={[Function]}
188       stat={
189         <FacetMeasureValue
190           measure={
191             Object {
192               "leak": "5",
193               "metric": Object {
194                 "domain": "Reliability",
195                 "key": "bugs",
196                 "name": "Bugs",
197                 "type": "INT",
198               },
199               "periods": Array [
200                 Object {
201                   "index": 1,
202                   "value": "5",
203                 },
204               ],
205               "value": "5",
206             }
207           }
208         />
209       }
210       value="bugs"
211     />
212     <FacetItem
213       active={false}
214       disabled={false}
215       halfWidth={false}
216       name={
217         <Tooltip
218           mouseEnterDelay={0.5}
219           overlay="New Bugs"
220           placement="bottom"
221         >
222           <span
223             id="measure-new_bugs-name"
224           >
225             <IssueTypeIcon
226               className="little-spacer-right"
227               query="new_bugs"
228             />
229             New Bugs
230           </span>
231         </Tooltip>
232       }
233       onClick={[Function]}
234       stat={
235         <FacetMeasureValue
236           measure={
237             Object {
238               "leak": "5",
239               "metric": Object {
240                 "domain": "Reliability",
241                 "key": "new_bugs",
242                 "name": "New Bugs",
243                 "type": "INT",
244               },
245               "periods": Array [
246                 Object {
247                   "index": 1,
248                   "value": "5",
249                 },
250               ],
251             }
252           }
253         />
254       }
255       value="new_bugs"
256     />
257   </FacetItemsList>
258 </FacetBox>
259 `;