]> source.dussan.org Git - sonarqube.git/blob
8aff649b8639015466a41415d5f606c998020479
[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="New Bugs"
45           placement="bottom"
46         >
47           <span
48             id="measure-new_bugs-name"
49           >
50             <IssueTypeIcon
51               className="little-spacer-right"
52               query="new_bugs"
53             />
54             New 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": "new_bugs",
67                 "name": "New Bugs",
68                 "type": "INT",
69               },
70               "periods": Array [
71                 Object {
72                   "index": 1,
73                   "value": "5",
74                 },
75               ],
76             }
77           }
78         />
79       }
80       value="new_bugs"
81     />
82     <FacetItem
83       active={false}
84       disabled={false}
85       halfWidth={false}
86       name={
87         <Tooltip
88           mouseEnterDelay={0.5}
89           overlay="Bugs"
90           placement="bottom"
91         >
92           <span
93             id="measure-bugs-name"
94           >
95             <IssueTypeIcon
96               className="little-spacer-right"
97               query="bugs"
98             />
99             Bugs
100           </span>
101         </Tooltip>
102       }
103       onClick={[Function]}
104       stat={
105         <FacetMeasureValue
106           measure={
107             Object {
108               "leak": "5",
109               "metric": Object {
110                 "domain": "Reliability",
111                 "key": "bugs",
112                 "name": "Bugs",
113                 "type": "INT",
114               },
115               "periods": Array [
116                 Object {
117                   "index": 1,
118                   "value": "5",
119                 },
120               ],
121               "value": "5",
122             }
123           }
124         />
125       }
126       value="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={false}
168       disabled={false}
169       halfWidth={false}
170       name={
171         <Tooltip
172           mouseEnterDelay={0.5}
173           overlay="New Bugs"
174           placement="bottom"
175         >
176           <span
177             id="measure-new_bugs-name"
178           >
179             <IssueTypeIcon
180               className="little-spacer-right"
181               query="new_bugs"
182             />
183             New 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": "new_bugs",
196                 "name": "New Bugs",
197                 "type": "INT",
198               },
199               "periods": Array [
200                 Object {
201                   "index": 1,
202                   "value": "5",
203                 },
204               ],
205             }
206           }
207         />
208       }
209       value="new_bugs"
210     />
211     <FacetItem
212       active={true}
213       disabled={false}
214       halfWidth={false}
215       name={
216         <Tooltip
217           mouseEnterDelay={0.5}
218           overlay="Bugs"
219           placement="bottom"
220         >
221           <span
222             id="measure-bugs-name"
223           >
224             <IssueTypeIcon
225               className="little-spacer-right"
226               query="bugs"
227             />
228             Bugs
229           </span>
230         </Tooltip>
231       }
232       onClick={[Function]}
233       stat={
234         <FacetMeasureValue
235           measure={
236             Object {
237               "leak": "5",
238               "metric": Object {
239                 "domain": "Reliability",
240                 "key": "bugs",
241                 "name": "Bugs",
242                 "type": "INT",
243               },
244               "periods": Array [
245                 Object {
246                   "index": 1,
247                   "value": "5",
248                 },
249               ],
250               "value": "5",
251             }
252           }
253         />
254       }
255       value="bugs"
256     />
257   </FacetItemsList>
258 </FacetBox>
259 `;