]> source.dussan.org Git - sonarqube.git/blob
dd37526a134e137552f2f2b34a922eb857bb307a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="overview-quality-gate-conditions"
6 >
7   <div
8     className="big-padded bordered-bottom overview-quality-gate-conditions-list"
9   >
10     <CleanAsYouCodeWarning />
11   </div>
12   <h4
13     className="big-padded overview-quality-gate-conditions-section-title"
14   >
15     quality_gates.conditions.new_code_x.1
16   </h4>
17   <Memo(QualityGateConditions)
18     component={
19       {
20         "failedConditions": [
21           {
22             "actual": "10",
23             "error": "0",
24             "level": "ERROR",
25             "measure": {
26               "bestValue": true,
27               "leak": "1",
28               "metric": {
29                 "id": "coverage",
30                 "key": "coverage",
31                 "name": "coverage",
32                 "type": "PERCENT",
33               },
34               "period": {
35                 "bestValue": true,
36                 "index": 1,
37                 "value": "1.0",
38               },
39               "value": "1.0",
40             },
41             "metric": "bugs",
42             "op": "GT",
43           },
44           {
45             "actual": "10",
46             "error": "0",
47             "level": "ERROR",
48             "measure": {
49               "bestValue": true,
50               "leak": "1",
51               "metric": {
52                 "id": "coverage",
53                 "key": "coverage",
54                 "name": "coverage",
55                 "type": "PERCENT",
56               },
57               "period": {
58                 "bestValue": true,
59                 "index": 1,
60                 "value": "1.0",
61               },
62               "value": "1.0",
63             },
64             "metric": "new_bugs",
65             "op": "GT",
66           },
67         ],
68         "ignoredConditions": false,
69         "isCaycCompliant": false,
70         "key": "foo",
71         "name": "Foo",
72         "status": "ERROR",
73       }
74     }
75     failedConditions={
76       [
77         {
78           "actual": "10",
79           "error": "0",
80           "level": "ERROR",
81           "measure": {
82             "bestValue": true,
83             "leak": "1",
84             "metric": {
85               "id": "coverage",
86               "key": "coverage",
87               "name": "coverage",
88               "type": "PERCENT",
89             },
90             "period": {
91               "bestValue": true,
92               "index": 1,
93               "value": "1.0",
94             },
95             "value": "1.0",
96           },
97           "metric": "new_bugs",
98           "op": "GT",
99         },
100       ]
101     }
102   />
103   <h4
104     className="big-padded overview-quality-gate-conditions-section-title"
105   >
106     quality_gates.conditions.overall_code_x.1
107   </h4>
108   <Memo(QualityGateConditions)
109     component={
110       {
111         "failedConditions": [
112           {
113             "actual": "10",
114             "error": "0",
115             "level": "ERROR",
116             "measure": {
117               "bestValue": true,
118               "leak": "1",
119               "metric": {
120                 "id": "coverage",
121                 "key": "coverage",
122                 "name": "coverage",
123                 "type": "PERCENT",
124               },
125               "period": {
126                 "bestValue": true,
127                 "index": 1,
128                 "value": "1.0",
129               },
130               "value": "1.0",
131             },
132             "metric": "bugs",
133             "op": "GT",
134           },
135           {
136             "actual": "10",
137             "error": "0",
138             "level": "ERROR",
139             "measure": {
140               "bestValue": true,
141               "leak": "1",
142               "metric": {
143                 "id": "coverage",
144                 "key": "coverage",
145                 "name": "coverage",
146                 "type": "PERCENT",
147               },
148               "period": {
149                 "bestValue": true,
150                 "index": 1,
151                 "value": "1.0",
152               },
153               "value": "1.0",
154             },
155             "metric": "new_bugs",
156             "op": "GT",
157           },
158         ],
159         "ignoredConditions": false,
160         "isCaycCompliant": false,
161         "key": "foo",
162         "name": "Foo",
163         "status": "ERROR",
164       }
165     }
166     failedConditions={
167       [
168         {
169           "actual": "10",
170           "error": "0",
171           "level": "ERROR",
172           "measure": {
173             "bestValue": true,
174             "leak": "1",
175             "metric": {
176               "id": "coverage",
177               "key": "coverage",
178               "name": "coverage",
179               "type": "PERCENT",
180             },
181             "period": {
182               "bestValue": true,
183               "index": 1,
184               "value": "1.0",
185             },
186             "value": "1.0",
187           },
188           "metric": "bugs",
189           "op": "GT",
190         },
191       ]
192     }
193   />
194 </div>
195 `;
196
197 exports[`should render correctly 2`] = `
198 <div
199   className="overview-quality-gate-conditions"
200 >
201   <ButtonPlain
202     aria-expanded={true}
203     aria-label="overview.quality_gate.hide_project_conditions_x.Foo"
204     className="width-100 text-left"
205     onClick={[Function]}
206   >
207     <div
208       className="display-flex-center"
209     >
210       <h3
211         className="overview-quality-gate-conditions-project-name text-ellipsis"
212         title="Foo"
213       >
214         <ChevronDownIcon />
215         <span
216           className="spacer-left"
217         >
218           Foo
219         </span>
220       </h3>
221     </div>
222   </ButtonPlain>
223   <div
224     className="big-padded bordered-bottom overview-quality-gate-conditions-list"
225   >
226     <CleanAsYouCodeWarning />
227   </div>
228   <h4
229     className="big-padded overview-quality-gate-conditions-section-title"
230   >
231     quality_gates.conditions.new_code_x.1
232   </h4>
233   <Memo(QualityGateConditions)
234     component={
235       {
236         "failedConditions": [
237           {
238             "actual": "10",
239             "error": "0",
240             "level": "ERROR",
241             "measure": {
242               "bestValue": true,
243               "leak": "1",
244               "metric": {
245                 "id": "coverage",
246                 "key": "coverage",
247                 "name": "coverage",
248                 "type": "PERCENT",
249               },
250               "period": {
251                 "bestValue": true,
252                 "index": 1,
253                 "value": "1.0",
254               },
255               "value": "1.0",
256             },
257             "metric": "bugs",
258             "op": "GT",
259           },
260           {
261             "actual": "10",
262             "error": "0",
263             "level": "ERROR",
264             "measure": {
265               "bestValue": true,
266               "leak": "1",
267               "metric": {
268                 "id": "coverage",
269                 "key": "coverage",
270                 "name": "coverage",
271                 "type": "PERCENT",
272               },
273               "period": {
274                 "bestValue": true,
275                 "index": 1,
276                 "value": "1.0",
277               },
278               "value": "1.0",
279             },
280             "metric": "new_bugs",
281             "op": "GT",
282           },
283         ],
284         "ignoredConditions": false,
285         "isCaycCompliant": false,
286         "key": "foo",
287         "name": "Foo",
288         "status": "ERROR",
289       }
290     }
291     failedConditions={
292       [
293         {
294           "actual": "10",
295           "error": "0",
296           "level": "ERROR",
297           "measure": {
298             "bestValue": true,
299             "leak": "1",
300             "metric": {
301               "id": "coverage",
302               "key": "coverage",
303               "name": "coverage",
304               "type": "PERCENT",
305             },
306             "period": {
307               "bestValue": true,
308               "index": 1,
309               "value": "1.0",
310             },
311             "value": "1.0",
312           },
313           "metric": "new_bugs",
314           "op": "GT",
315         },
316       ]
317     }
318   />
319   <h4
320     className="big-padded overview-quality-gate-conditions-section-title"
321   >
322     quality_gates.conditions.overall_code_x.1
323   </h4>
324   <Memo(QualityGateConditions)
325     component={
326       {
327         "failedConditions": [
328           {
329             "actual": "10",
330             "error": "0",
331             "level": "ERROR",
332             "measure": {
333               "bestValue": true,
334               "leak": "1",
335               "metric": {
336                 "id": "coverage",
337                 "key": "coverage",
338                 "name": "coverage",
339                 "type": "PERCENT",
340               },
341               "period": {
342                 "bestValue": true,
343                 "index": 1,
344                 "value": "1.0",
345               },
346               "value": "1.0",
347             },
348             "metric": "bugs",
349             "op": "GT",
350           },
351           {
352             "actual": "10",
353             "error": "0",
354             "level": "ERROR",
355             "measure": {
356               "bestValue": true,
357               "leak": "1",
358               "metric": {
359                 "id": "coverage",
360                 "key": "coverage",
361                 "name": "coverage",
362                 "type": "PERCENT",
363               },
364               "period": {
365                 "bestValue": true,
366                 "index": 1,
367                 "value": "1.0",
368               },
369               "value": "1.0",
370             },
371             "metric": "new_bugs",
372             "op": "GT",
373           },
374         ],
375         "ignoredConditions": false,
376         "isCaycCompliant": false,
377         "key": "foo",
378         "name": "Foo",
379         "status": "ERROR",
380       }
381     }
382     failedConditions={
383       [
384         {
385           "actual": "10",
386           "error": "0",
387           "level": "ERROR",
388           "measure": {
389             "bestValue": true,
390             "leak": "1",
391             "metric": {
392               "id": "coverage",
393               "key": "coverage",
394               "name": "coverage",
395               "type": "PERCENT",
396             },
397             "period": {
398               "bestValue": true,
399               "index": 1,
400               "value": "1.0",
401             },
402             "value": "1.0",
403           },
404           "metric": "bugs",
405           "op": "GT",
406         },
407       ]
408     }
409   />
410 </div>
411 `;