]> source.dussan.org Git - sonarqube.git/blob
fff6d543a90b275f5661a925aece73701a57e537
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: Analyses 1`] = `
4 <Fragment>
5   <div
6     className="spacer-bottom"
7   >
8     <label
9       className="spacer-right"
10       htmlFor="branch-analysis-from-input"
11     >
12       baseline.analysis_from
13     </label>
14     <Select
15       autoBlur={true}
16       className="input-medium spacer-left"
17       inputId="branch-analysis-from-input"
18       isSearchable={false}
19       onChange={[MockFunction]}
20       options={
21         Array [
22           Object {
23             "label": "baseline.branch_analyses.ranges.30days",
24             "value": 30,
25           },
26           Object {
27             "label": "baseline.branch_analyses.ranges.allTime",
28             "value": 0,
29           },
30         ]
31       }
32       value={
33         Array [
34           Object {
35             "label": "baseline.branch_analyses.ranges.30days",
36             "value": 30,
37           },
38         ]
39       }
40     />
41   </div>
42   <div
43     className="branch-analysis-list-wrapper"
44   >
45     <div
46       className="bordered branch-analysis-list"
47       onScroll={[MockFunction]}
48     >
49       <ul>
50         <li
51           key="noversion"
52         >
53           <ul
54             className="branch-analysis-days-list"
55           >
56             <li
57               className="branch-analysis-day"
58               data-day="ISO.1488412800000"
59               key="1488412800000"
60             >
61               <div
62                 className="branch-analysis-date"
63               >
64                 <DateFormatter
65                   date={1488412800000}
66                   long={true}
67                 />
68               </div>
69               <ul
70                 className="branch-analysis-analyses-list"
71               >
72                 <li
73                   className="branch-analysis"
74                   data-date={1488450961000}
75                   key="4"
76                   onClick={[Function]}
77                 >
78                   <div
79                     className="branch-analysis-time spacer-right"
80                   >
81                     <TimeFormatter
82                       date={2017-03-02T10:36:01.000Z}
83                       long={false}
84                     >
85                       <Component />
86                     </TimeFormatter>
87                   </div>
88                   <div
89                     className="analysis-selection-button"
90                   >
91                     <Radio
92                       checked={false}
93                       onCheck={[Function]}
94                       value=""
95                     />
96                   </div>
97                 </li>
98                 <li
99                   className="branch-analysis"
100                   data-date={1488447361000}
101                   key="3"
102                   onClick={[Function]}
103                 >
104                   <div
105                     className="branch-analysis-time spacer-right"
106                   >
107                     <TimeFormatter
108                       date={2017-03-02T09:36:01.000Z}
109                       long={false}
110                     >
111                       <Component />
112                     </TimeFormatter>
113                   </div>
114                   <Memo(Events)
115                     analysisKey="3"
116                     events={
117                       Array [
118                         Object {
119                           "category": "QUALITY_GATE",
120                           "description": "Lorem ipsum dolor sit amet",
121                           "key": "E11",
122                           "name": "Lorem ipsum",
123                           "qualityGate": Object {
124                             "failing": Array [
125                               Object {
126                                 "branch": "master",
127                                 "key": "foo",
128                                 "name": "Foo",
129                               },
130                               Object {
131                                 "branch": "feature/bar",
132                                 "key": "bar",
133                                 "name": "Bar",
134                               },
135                             ],
136                             "status": "ERROR",
137                             "stillFailing": true,
138                           },
139                         },
140                       ]
141                     }
142                     isFirst={false}
143                   />
144                   <div
145                     className="analysis-selection-button"
146                   >
147                     <Radio
148                       checked={false}
149                       onCheck={[Function]}
150                       value=""
151                     />
152                   </div>
153                 </li>
154               </ul>
155             </li>
156           </ul>
157         </li>
158         <li
159           key="E11"
160         >
161           <div
162             className="branch-analysis-version-badge"
163           >
164             <Tooltip
165               mouseEnterDelay={0.5}
166               overlay="version Lorem ipsum"
167             >
168               <span
169                 className="badge"
170               >
171                 Lorem ipsum
172               </span>
173             </Tooltip>
174           </div>
175           <ul
176             className="branch-analysis-days-list"
177           >
178             <li
179               className="branch-analysis-day"
180               data-day="ISO.1488412800000"
181               key="1488412800000"
182             >
183               <div
184                 className="branch-analysis-date"
185               >
186                 <DateFormatter
187                   date={1488412800000}
188                   long={true}
189                 />
190               </div>
191               <ul
192                 className="branch-analysis-analyses-list"
193               >
194                 <li
195                   className="branch-analysis selected"
196                   data-date={1488443761000}
197                   key="2"
198                   onClick={[Function]}
199                 >
200                   <div
201                     className="branch-analysis-time spacer-right"
202                   >
203                     <TimeFormatter
204                       date={2017-03-02T08:36:01.000Z}
205                       long={false}
206                     >
207                       <Component />
208                     </TimeFormatter>
209                   </div>
210                   <Memo(Events)
211                     analysisKey="2"
212                     events={
213                       Array [
214                         Object {
215                           "category": "QUALITY_GATE",
216                           "description": "Lorem ipsum dolor sit amet",
217                           "key": "E11",
218                           "name": "Lorem ipsum",
219                           "qualityGate": Object {
220                             "failing": Array [
221                               Object {
222                                 "branch": "master",
223                                 "key": "foo",
224                                 "name": "Foo",
225                               },
226                               Object {
227                                 "branch": "feature/bar",
228                                 "key": "bar",
229                                 "name": "Bar",
230                               },
231                             ],
232                             "status": "ERROR",
233                             "stillFailing": true,
234                           },
235                         },
236                         Object {
237                           "category": "VERSION",
238                           "description": "Lorem ipsum dolor sit amet",
239                           "key": "E11",
240                           "name": "Lorem ipsum",
241                           "qualityGate": undefined,
242                         },
243                       ]
244                     }
245                     isFirst={false}
246                   />
247                   <div
248                     className="analysis-selection-button"
249                   >
250                     <Radio
251                       checked={true}
252                       onCheck={[Function]}
253                       value=""
254                     />
255                   </div>
256                 </li>
257               </ul>
258             </li>
259             <li
260               className="branch-analysis-day"
261               data-day="ISO.1488326400000"
262               key="1488326400000"
263             >
264               <div
265                 className="branch-analysis-date"
266               >
267                 <DateFormatter
268                   date={1488326400000}
269                   long={true}
270                 />
271               </div>
272               <ul
273                 className="branch-analysis-analyses-list"
274               >
275                 <li
276                   className="branch-analysis"
277                   data-date={1488357421000}
278                   key="1"
279                   onClick={[Function]}
280                 >
281                   <div
282                     className="branch-analysis-time spacer-right"
283                   >
284                     <TimeFormatter
285                       date={2017-03-01T08:37:01.000Z}
286                       long={false}
287                     >
288                       <Component />
289                     </TimeFormatter>
290                   </div>
291                   <div
292                     className="analysis-selection-button"
293                   >
294                     <Radio
295                       checked={false}
296                       onCheck={[Function]}
297                       value=""
298                     />
299                   </div>
300                 </li>
301               </ul>
302             </li>
303           </ul>
304         </li>
305       </ul>
306     </div>
307   </div>
308 </Fragment>
309 `;
310
311 exports[`should render correctly: empty 1`] = `
312 <Fragment>
313   <div
314     className="spacer-bottom"
315   >
316     <label
317       className="spacer-right"
318       htmlFor="branch-analysis-from-input"
319     >
320       baseline.analysis_from
321     </label>
322     <Select
323       autoBlur={true}
324       className="input-medium spacer-left"
325       inputId="branch-analysis-from-input"
326       isSearchable={false}
327       onChange={[MockFunction]}
328       options={
329         Array [
330           Object {
331             "label": "baseline.branch_analyses.ranges.30days",
332             "value": 30,
333           },
334           Object {
335             "label": "baseline.branch_analyses.ranges.allTime",
336             "value": 0,
337           },
338         ]
339       }
340       value={
341         Array [
342           Object {
343             "label": "baseline.branch_analyses.ranges.30days",
344             "value": 30,
345           },
346         ]
347       }
348     />
349   </div>
350   <div
351     className="branch-analysis-list-wrapper"
352   >
353     <div
354       className="bordered branch-analysis-list"
355       onScroll={[MockFunction]}
356     >
357       <div
358         className="big-spacer-top big-spacer-bottom strong"
359       >
360         baseline.no_analyses
361       </div>
362     </div>
363   </div>
364 </Fragment>
365 `;
366
367 exports[`should render correctly: loading 1`] = `
368 <Fragment>
369   <div
370     className="spacer-bottom"
371   >
372     <label
373       className="spacer-right"
374       htmlFor="branch-analysis-from-input"
375     >
376       baseline.analysis_from
377     </label>
378     <Select
379       autoBlur={true}
380       className="input-medium spacer-left"
381       inputId="branch-analysis-from-input"
382       isSearchable={false}
383       onChange={[MockFunction]}
384       options={
385         Array [
386           Object {
387             "label": "baseline.branch_analyses.ranges.30days",
388             "value": 30,
389           },
390           Object {
391             "label": "baseline.branch_analyses.ranges.allTime",
392             "value": 0,
393           },
394         ]
395       }
396       value={
397         Array [
398           Object {
399             "label": "baseline.branch_analyses.ranges.30days",
400             "value": 30,
401           },
402         ]
403       }
404     />
405   </div>
406   <div
407     className="branch-analysis-list-wrapper"
408   >
409     <div
410       className="bordered branch-analysis-list"
411       onScroll={[MockFunction]}
412     >
413       <DeferredSpinner
414         className="big-spacer-top"
415       />
416       <ul />
417     </div>
418   </div>
419 </Fragment>
420 `;