]> source.dussan.org Git - sonarqube.git/blob
b8c6dc9ddb65407f992531f5d7d00aed0592fa9f
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="overview-card"
6 >
7   <div
8     className="overview-card-header"
9   >
10     <div
11       className="overview-title"
12     >
13       <span>
14         metric_domain.Security
15       </span>
16       <Link
17         className="spacer-left small"
18         onlyActiveOnIndex={false}
19         style={Object {}}
20         to={
21           Object {
22             "pathname": "/component_measures",
23             "query": Object {
24               "id": "my-project",
25               "metric": "Security",
26             },
27           }
28         }
29       >
30         layout.measures
31       </Link>
32     </div>
33   </div>
34   <div
35     className="overview-domain-panel"
36   >
37     <div
38       className="overview-domain-nutshell"
39     >
40       <div
41         className="overview-domain-measures"
42       >
43         <div
44           className="overview-domain-measure"
45         >
46           <div
47             className="overview-domain-measure-value"
48           >
49             <span
50               className="offset-left"
51             >
52               <Link
53                 onlyActiveOnIndex={false}
54                 style={Object {}}
55                 to={
56                   Object {
57                     "pathname": "/project/issues",
58                     "query": Object {
59                       "id": "my-project",
60                       "resolved": "false",
61                       "types": "VULNERABILITY",
62                     },
63                   }
64                 }
65               >
66                 0
67               </Link>
68             </span>
69             <Tooltip
70               overlay="metric.security_rating.tooltip.A"
71             >
72               <div
73                 className="overview-domain-measure-sup"
74               >
75                 <DrilldownLink
76                   branchLike={
77                     Object {
78                       "analysisDate": "2018-01-01",
79                       "isMain": true,
80                       "name": "master",
81                     }
82                   }
83                   className="link-no-underline"
84                   component="my-project"
85                   metric="security_rating"
86                 >
87                   <Rating
88                     value="1.0"
89                   />
90                 </DrilldownLink>
91               </div>
92             </Tooltip>
93           </div>
94           <div
95             className="overview-domain-measure-label display-flex-center display-flex-justify-center"
96           >
97             <VulnerabilityIcon
98               className="little-spacer-right"
99             />
100             overview.metric.vulnerabilities
101             <DocTooltip
102               className="little-spacer-left"
103               doc={Promise {}}
104             />
105           </div>
106           <Link
107             className="overview-domain-measure-history-link"
108             onlyActiveOnIndex={false}
109             style={Object {}}
110             to={
111               Object {
112                 "pathname": "/project/activity",
113                 "query": Object {
114                   "custom_metrics": "vulnerabilities",
115                   "graph": "custom",
116                   "id": "my-project",
117                 },
118               }
119             }
120           >
121             <HistoryIcon />
122             <span>
123               project_activity.page
124             </span>
125           </Link>
126         </div>
127         <div
128           className="overview-domain-measure"
129         >
130           <div
131             className="overview-domain-measure-value overview-domain-measure-value-small"
132           >
133             <Link
134               onlyActiveOnIndex={false}
135               style={Object {}}
136               to={
137                 Object {
138                   "pathname": "/project/issues",
139                   "query": Object {
140                     "id": "my-project",
141                     "resolved": "false",
142                     "types": "SECURITY_HOTSPOT",
143                   },
144                 }
145               }
146             >
147               0
148             </Link>
149           </div>
150           <div
151             className="overview-domain-measure-label display-flex-center display-flex-justify-center"
152           >
153             <SecurityHotspotIcon
154               className="little-spacer-right"
155             />
156             overview.metric.security_hotspots
157             <DocTooltip
158               className="little-spacer-left"
159               doc={Promise {}}
160             />
161           </div>
162           <Link
163             className="overview-domain-measure-history-link"
164             onlyActiveOnIndex={false}
165             style={Object {}}
166             to={
167               Object {
168                 "pathname": "/project/activity",
169                 "query": Object {
170                   "custom_metrics": "security_hotspots",
171                   "graph": "custom",
172                   "id": "my-project",
173                 },
174               }
175             }
176           >
177             <HistoryIcon />
178             <span>
179               project_activity.page
180             </span>
181           </Link>
182         </div>
183       </div>
184       <div
185         className="overview-domain-timeline"
186       >
187         <Timeline
188           history={Array []}
189         />
190       </div>
191     </div>
192     <div
193       className="overview-domain-leak"
194     >
195       <div
196         className="overview-domain-measures"
197       >
198         <div
199           className="overview-domain-measure"
200         >
201           <div
202             className="overview-domain-measure-value"
203           >
204             <span
205               className="offset-left"
206             >
207               <Link
208                 onlyActiveOnIndex={false}
209                 style={Object {}}
210                 to={
211                   Object {
212                     "pathname": "/project/issues",
213                     "query": Object {
214                       "id": "my-project",
215                       "resolved": "false",
216                       "sinceLeakPeriod": "true",
217                       "types": "VULNERABILITY",
218                     },
219                   }
220                 }
221               >
222                 1
223               </Link>
224             </span>
225             <Tooltip
226               overlay="metric.security_rating.tooltip.E"
227             >
228               <div
229                 className="overview-domain-measure-sup"
230               >
231                 <DrilldownLink
232                   branchLike={
233                     Object {
234                       "analysisDate": "2018-01-01",
235                       "isMain": true,
236                       "name": "master",
237                     }
238                   }
239                   className="link-no-underline"
240                   component="my-project"
241                   metric="new_security_rating"
242                 >
243                   <Rating
244                     value="5.0"
245                   />
246                 </DrilldownLink>
247               </div>
248             </Tooltip>
249           </div>
250           <div
251             className="overview-domain-measure-label"
252           >
253             <VulnerabilityIcon
254               className="little-spacer-right"
255             />
256             overview.metric.new_vulnerabilities
257           </div>
258         </div>
259         <div
260           className="overview-domain-measure"
261         >
262           <div
263             className="overview-domain-measure-value overview-domain-measure-value-small"
264           >
265             <span>
266               <Link
267                 onlyActiveOnIndex={false}
268                 style={Object {}}
269                 to={
270                   Object {
271                     "pathname": "/project/issues",
272                     "query": Object {
273                       "id": "my-project",
274                       "resolved": "false",
275                       "sinceLeakPeriod": "true",
276                       "types": "SECURITY_HOTSPOT",
277                     },
278                   }
279                 }
280               >
281                 10
282               </Link>
283             </span>
284           </div>
285           <div
286             className="overview-domain-measure-label"
287           >
288             <SecurityHotspotIcon
289               className="little-spacer-right"
290             />
291             overview.metric.new_security_hotspots
292           </div>
293         </div>
294       </div>
295       <div
296         className="overview-domain-timeline"
297       >
298         <Timeline
299           history={Array []}
300         />
301       </div>
302     </div>
303   </div>
304 </div>
305 `;