]> source.dussan.org Git - sonarqube.git/blob
90b14ae0e81d20be3bb4f773e5fe4904b550c015
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="overview-panel big-spacer-top"
6   data-test="overview__activity-panel"
7 >
8   <h2
9     className="overview-panel-title"
10   >
11     overview.activity
12   </h2>
13   <div
14     className="overview-panel-content"
15   >
16     <div
17       className="display-flex-row"
18     >
19       <div
20         className="display-flex-column flex-1"
21       >
22         <div
23           aria-hidden={true}
24           className="overview-panel-padded display-flex-column flex-1"
25         >
26           <GraphsHeader
27             graph="issues"
28             metrics={
29               Array [
30                 Object {
31                   "id": "bugs",
32                   "key": "bugs",
33                   "name": "Bugs",
34                   "type": "PERCENT",
35                 },
36               ]
37             }
38             updateGraph={[MockFunction]}
39           />
40           <GraphsHistory
41             analyses={
42               Array [
43                 Object {
44                   "date": 2017-03-01T08:36:01.000Z,
45                   "events": Array [
46                     Object {
47                       "category": "QUALITY_GATE",
48                       "description": "Lorem ipsum dolor sit amet",
49                       "key": "E11",
50                       "name": "Lorem ipsum",
51                       "qualityGate": Object {
52                         "failing": Array [
53                           Object {
54                             "branch": "master",
55                             "key": "foo",
56                             "name": "Foo",
57                           },
58                           Object {
59                             "branch": "feature/bar",
60                             "key": "bar",
61                             "name": "Bar",
62                           },
63                         ],
64                         "status": "ERROR",
65                         "stillFailing": true,
66                       },
67                     },
68                   ],
69                   "key": "foo",
70                   "projectVersion": "1.0",
71                 },
72                 Object {
73                   "date": 2017-03-01T08:36:01.000Z,
74                   "events": Array [],
75                   "key": "foo",
76                   "projectVersion": "1.0",
77                 },
78               ]
79             }
80             graph="issues"
81             graphs={
82               Array [
83                 Array [
84                   Object {
85                     "data": Array [
86                       Object {
87                         "x": 2016-10-27T14:33:50.000Z,
88                         "y": 20,
89                       },
90                     ],
91                     "name": "bugs",
92                     "translatedName": "Bugs",
93                     "type": "PERCENT",
94                   },
95                 ],
96               ]
97             }
98             loading={false}
99             measuresHistory={
100               Array [
101                 Object {
102                   "bestValue": true,
103                   "history": Array [
104                     Object {
105                       "date": 2016-10-27T14:33:50.000Z,
106                       "value": "20",
107                     },
108                   ],
109                   "metric": "bugs",
110                   "periods": Array [
111                     Object {
112                       "bestValue": true,
113                       "index": 1,
114                       "value": "1.0",
115                     },
116                   ],
117                   "value": "1.0",
118                 },
119               ]
120             }
121             series={
122               Array [
123                 Object {
124                   "data": Array [
125                     Object {
126                       "x": 2016-10-27T14:33:50.000Z,
127                       "y": 20,
128                     },
129                   ],
130                   "name": "bugs",
131                   "translatedName": "Bugs",
132                   "type": "PERCENT",
133                 },
134               ]
135             }
136           />
137         </div>
138         <div
139           className="overview-panel-padded bordered-top text-right"
140         >
141           <ActivityLink
142             branchLike={
143               Object {
144                 "analysisDate": "2018-01-01",
145                 "excludedFromPurge": true,
146                 "isMain": true,
147                 "name": "master",
148               }
149             }
150             component="my-project"
151             graph="issues"
152           />
153         </div>
154       </div>
155       <div
156         className="overview-panel-padded bordered-left width-30"
157       >
158         <div
159           data-test="overview__activity-analyses"
160         >
161           <DeferredSpinner
162             className="spacer-top spacer-left"
163             loading={false}
164             timeout={100}
165           >
166             <ul
167               className="spacer-top spacer-left"
168             >
169               <Memo(Analysis)
170                 analysis={
171                   Object {
172                     "date": "2017-03-01T09:36:01+0100",
173                     "events": Array [
174                       Object {
175                         "category": "QUALITY_GATE",
176                         "description": "Lorem ipsum dolor sit amet",
177                         "key": "E11",
178                         "name": "Lorem ipsum",
179                         "qualityGate": Object {
180                           "failing": Array [
181                             Object {
182                               "branch": "master",
183                               "key": "foo",
184                               "name": "Foo",
185                             },
186                             Object {
187                               "branch": "feature/bar",
188                               "key": "bar",
189                               "name": "Bar",
190                             },
191                           ],
192                           "status": "ERROR",
193                           "stillFailing": true,
194                         },
195                       },
196                     ],
197                     "key": "foo",
198                     "projectVersion": "1.0",
199                   }
200                 }
201                 key="foo"
202                 qualifier="TRK"
203               />
204             </ul>
205           </DeferredSpinner>
206         </div>
207       </div>
208     </div>
209   </div>
210 </div>
211 `;
212
213 exports[`should render correctly 2`] = `
214 <div
215   className="overview-panel big-spacer-top"
216   data-test="overview__activity-panel"
217 >
218   <h2
219     className="overview-panel-title"
220   >
221     overview.activity
222   </h2>
223   <div
224     className="overview-panel-content"
225   >
226     <div
227       className="display-flex-row"
228     >
229       <div
230         className="display-flex-column flex-1"
231       >
232         <div
233           aria-hidden={true}
234           className="overview-panel-padded display-flex-column flex-1"
235         >
236           <GraphsHeader
237             graph="issues"
238             metrics={
239               Array [
240                 Object {
241                   "id": "bugs",
242                   "key": "bugs",
243                   "name": "Bugs",
244                   "type": "PERCENT",
245                 },
246               ]
247             }
248             updateGraph={[MockFunction]}
249           />
250           <GraphsHistory
251             analyses={Array []}
252             graph="issues"
253             graphs={
254               Array [
255                 Array [
256                   Object {
257                     "data": Array [
258                       Object {
259                         "x": 2016-10-27T14:33:50.000Z,
260                         "y": 20,
261                       },
262                     ],
263                     "name": "bugs",
264                     "translatedName": "Bugs",
265                     "type": "PERCENT",
266                   },
267                 ],
268               ]
269             }
270             loading={true}
271             measuresHistory={
272               Array [
273                 Object {
274                   "bestValue": true,
275                   "history": Array [
276                     Object {
277                       "date": 2016-10-27T14:33:50.000Z,
278                       "value": "20",
279                     },
280                   ],
281                   "metric": "bugs",
282                   "periods": Array [
283                     Object {
284                       "bestValue": true,
285                       "index": 1,
286                       "value": "1.0",
287                     },
288                   ],
289                   "value": "1.0",
290                 },
291               ]
292             }
293             series={
294               Array [
295                 Object {
296                   "data": Array [
297                     Object {
298                       "x": 2016-10-27T14:33:50.000Z,
299                       "y": 20,
300                     },
301                   ],
302                   "name": "bugs",
303                   "translatedName": "Bugs",
304                   "type": "PERCENT",
305                 },
306               ]
307             }
308           />
309         </div>
310         <div
311           className="overview-panel-padded bordered-top text-right"
312         >
313           <ActivityLink
314             branchLike={
315               Object {
316                 "analysisDate": "2018-01-01",
317                 "excludedFromPurge": true,
318                 "isMain": true,
319                 "name": "master",
320               }
321             }
322             component="my-project"
323             graph="issues"
324           />
325         </div>
326       </div>
327       <div
328         className="overview-panel-padded bordered-left width-30"
329       >
330         <div
331           data-test="overview__activity-analyses"
332         >
333           <DeferredSpinner
334             className="spacer-top spacer-left"
335             loading={true}
336             timeout={100}
337           >
338             <p
339               className="spacer-top spacer-left note"
340             >
341               no_results
342             </p>
343           </DeferredSpinner>
344         </div>
345       </div>
346     </div>
347   </div>
348 </div>
349 `;