]> source.dussan.org Git - sonarqube.git/blob
d415cbc00c89791234964f6f670c71927d4cc991
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: closed 1`] = `
4 <div
5   className="display-flex-row display-flex-end"
6 >
7   <StatusDescription
8     showTitle={true}
9     statusOption="FIXED"
10   />
11   <div
12     className="spacer-top"
13   >
14     <Tooltip
15       overlay={null}
16       placement="bottom"
17     >
18       <div
19         className="dropdown"
20       >
21         <Toggler
22           closeOnClickOutside={true}
23           closeOnEscape={true}
24           onRequestClose={[Function]}
25           open={false}
26           overlay={
27             <DropdownOverlay
28               noPadding={true}
29               placement="bottom"
30             >
31               <StatusSelection
32                 hotspot={
33                   Object {
34                     "assignee": "assignee",
35                     "assigneeUser": Object {
36                       "active": true,
37                       "local": true,
38                       "login": "assignee",
39                       "name": "John Doe",
40                     },
41                     "author": "author",
42                     "authorUser": Object {
43                       "active": true,
44                       "local": true,
45                       "login": "author",
46                       "name": "John Doe",
47                     },
48                     "canChangeStatus": true,
49                     "changelog": Array [],
50                     "comment": Array [],
51                     "component": Object {
52                       "key": "hotspot-component",
53                       "longName": "Hotspot component long name",
54                       "name": "Hotspot Component",
55                       "path": "path/to/component",
56                       "qualifier": "FIL",
57                     },
58                     "creationDate": "2013-05-13T17:55:41+0200",
59                     "flows": Array [
60                       Object {
61                         "locations": Array [
62                           Object {
63                             "component": "main.js",
64                             "textRange": Object {
65                               "endLine": 2,
66                               "endOffset": 2,
67                               "startLine": 1,
68                               "startOffset": 1,
69                             },
70                           },
71                         ],
72                       },
73                     ],
74                     "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
75                     "line": 142,
76                     "message": "'3' is a magic number.",
77                     "project": Object {
78                       "key": "hotspot-component",
79                       "longName": "Hotspot component long name",
80                       "name": "Hotspot Component",
81                       "path": "path/to/component",
82                       "qualifier": "TRK",
83                     },
84                     "resolution": "FIXED",
85                     "rule": Object {
86                       "key": "squid:S2077",
87                       "name": "That rule",
88                       "securityCategory": "sql-injection",
89                       "vulnerabilityProbability": "HIGH",
90                     },
91                     "status": "REVIEWED",
92                     "textRange": Object {
93                       "endLine": 142,
94                       "endOffset": 83,
95                       "startLine": 142,
96                       "startOffset": 26,
97                     },
98                     "updateDate": "2013-05-13T17:55:42+0200",
99                     "users": Array [
100                       Object {
101                         "active": true,
102                         "local": true,
103                         "login": "assignee",
104                         "name": "John Doe",
105                       },
106                       Object {
107                         "active": true,
108                         "local": true,
109                         "login": "author",
110                         "name": "John Doe",
111                       },
112                     ],
113                   }
114                 }
115                 onStatusOptionChange={[Function]}
116               />
117             </DropdownOverlay>
118           }
119         >
120           <Button
121             className="dropdown-toggle big-spacer-left"
122             disabled={false}
123             id="status-trigger"
124             onClick={[Function]}
125           >
126             <span>
127               hotspots.status.select_status
128             </span>
129             <DropdownIcon
130               className="little-spacer-left"
131             />
132           </Button>
133         </Toggler>
134       </div>
135     </Tooltip>
136   </div>
137 </div>
138 `;
139
140 exports[`should render correctly: open 1`] = `
141 <div
142   className="display-flex-row display-flex-end"
143 >
144   <StatusDescription
145     showTitle={true}
146     statusOption="FIXED"
147   />
148   <div
149     className="spacer-top"
150   >
151     <Tooltip
152       overlay={null}
153       placement="bottom"
154     >
155       <div
156         className="dropdown"
157       >
158         <Toggler
159           closeOnClickOutside={true}
160           closeOnEscape={true}
161           onRequestClose={[Function]}
162           open={true}
163           overlay={
164             <DropdownOverlay
165               noPadding={true}
166               placement="bottom"
167             >
168               <StatusSelection
169                 hotspot={
170                   Object {
171                     "assignee": "assignee",
172                     "assigneeUser": Object {
173                       "active": true,
174                       "local": true,
175                       "login": "assignee",
176                       "name": "John Doe",
177                     },
178                     "author": "author",
179                     "authorUser": Object {
180                       "active": true,
181                       "local": true,
182                       "login": "author",
183                       "name": "John Doe",
184                     },
185                     "canChangeStatus": true,
186                     "changelog": Array [],
187                     "comment": Array [],
188                     "component": Object {
189                       "key": "hotspot-component",
190                       "longName": "Hotspot component long name",
191                       "name": "Hotspot Component",
192                       "path": "path/to/component",
193                       "qualifier": "FIL",
194                     },
195                     "creationDate": "2013-05-13T17:55:41+0200",
196                     "flows": Array [
197                       Object {
198                         "locations": Array [
199                           Object {
200                             "component": "main.js",
201                             "textRange": Object {
202                               "endLine": 2,
203                               "endOffset": 2,
204                               "startLine": 1,
205                               "startOffset": 1,
206                             },
207                           },
208                         ],
209                       },
210                     ],
211                     "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
212                     "line": 142,
213                     "message": "'3' is a magic number.",
214                     "project": Object {
215                       "key": "hotspot-component",
216                       "longName": "Hotspot component long name",
217                       "name": "Hotspot Component",
218                       "path": "path/to/component",
219                       "qualifier": "TRK",
220                     },
221                     "resolution": "FIXED",
222                     "rule": Object {
223                       "key": "squid:S2077",
224                       "name": "That rule",
225                       "securityCategory": "sql-injection",
226                       "vulnerabilityProbability": "HIGH",
227                     },
228                     "status": "REVIEWED",
229                     "textRange": Object {
230                       "endLine": 142,
231                       "endOffset": 83,
232                       "startLine": 142,
233                       "startOffset": 26,
234                     },
235                     "updateDate": "2013-05-13T17:55:42+0200",
236                     "users": Array [
237                       Object {
238                         "active": true,
239                         "local": true,
240                         "login": "assignee",
241                         "name": "John Doe",
242                       },
243                       Object {
244                         "active": true,
245                         "local": true,
246                         "login": "author",
247                         "name": "John Doe",
248                       },
249                     ],
250                   }
251                 }
252                 onStatusOptionChange={[Function]}
253               />
254             </DropdownOverlay>
255           }
256         >
257           <Button
258             className="dropdown-toggle big-spacer-left"
259             disabled={false}
260             id="status-trigger"
261             onClick={[Function]}
262           >
263             <span>
264               hotspots.status.select_status
265             </span>
266             <DropdownIcon
267               className="little-spacer-left"
268             />
269           </Button>
270         </Toggler>
271       </div>
272     </Tooltip>
273   </div>
274 </div>
275 `;
276
277 exports[`should render correctly: readonly 1`] = `
278 <div
279   className="display-flex-row display-flex-end"
280 >
281   <StatusDescription
282     showTitle={true}
283     statusOption="FIXED"
284   />
285   <div
286     className="spacer-top"
287   >
288     <Tooltip
289       overlay="hotspots.status.cannot_change_status"
290       placement="bottom"
291     >
292       <div
293         className="dropdown"
294       >
295         <Toggler
296           closeOnClickOutside={true}
297           closeOnEscape={true}
298           onRequestClose={[Function]}
299           open={false}
300           overlay={
301             <DropdownOverlay
302               noPadding={true}
303               placement="bottom"
304             >
305               <StatusSelection
306                 hotspot={
307                   Object {
308                     "assignee": "assignee",
309                     "assigneeUser": Object {
310                       "active": true,
311                       "local": true,
312                       "login": "assignee",
313                       "name": "John Doe",
314                     },
315                     "author": "author",
316                     "authorUser": Object {
317                       "active": true,
318                       "local": true,
319                       "login": "author",
320                       "name": "John Doe",
321                     },
322                     "canChangeStatus": false,
323                     "changelog": Array [],
324                     "comment": Array [],
325                     "component": Object {
326                       "key": "hotspot-component",
327                       "longName": "Hotspot component long name",
328                       "name": "Hotspot Component",
329                       "path": "path/to/component",
330                       "qualifier": "FIL",
331                     },
332                     "creationDate": "2013-05-13T17:55:41+0200",
333                     "flows": Array [
334                       Object {
335                         "locations": Array [
336                           Object {
337                             "component": "main.js",
338                             "textRange": Object {
339                               "endLine": 2,
340                               "endOffset": 2,
341                               "startLine": 1,
342                               "startOffset": 1,
343                             },
344                           },
345                         ],
346                       },
347                     ],
348                     "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
349                     "line": 142,
350                     "message": "'3' is a magic number.",
351                     "project": Object {
352                       "key": "hotspot-component",
353                       "longName": "Hotspot component long name",
354                       "name": "Hotspot Component",
355                       "path": "path/to/component",
356                       "qualifier": "TRK",
357                     },
358                     "resolution": "FIXED",
359                     "rule": Object {
360                       "key": "squid:S2077",
361                       "name": "That rule",
362                       "securityCategory": "sql-injection",
363                       "vulnerabilityProbability": "HIGH",
364                     },
365                     "status": "REVIEWED",
366                     "textRange": Object {
367                       "endLine": 142,
368                       "endOffset": 83,
369                       "startLine": 142,
370                       "startOffset": 26,
371                     },
372                     "updateDate": "2013-05-13T17:55:42+0200",
373                     "users": Array [
374                       Object {
375                         "active": true,
376                         "local": true,
377                         "login": "assignee",
378                         "name": "John Doe",
379                       },
380                       Object {
381                         "active": true,
382                         "local": true,
383                         "login": "author",
384                         "name": "John Doe",
385                       },
386                     ],
387                   }
388                 }
389                 onStatusOptionChange={[Function]}
390               />
391             </DropdownOverlay>
392           }
393         >
394           <Button
395             className="dropdown-toggle big-spacer-left"
396             disabled={true}
397             id="status-trigger"
398             onClick={[Function]}
399           >
400             <span>
401               hotspots.status.select_status
402             </span>
403             <DropdownIcon
404               className="little-spacer-left"
405             />
406           </Button>
407         </Toggler>
408       </div>
409     </Tooltip>
410   </div>
411 </div>
412 `;