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