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