1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly when the list of hotspot is static 1`] = `
5 className="filter-bar-outer"
11 className="filter-bar-inner display-flex-center"
16 "pathname": "/security_hotspots",
17 "search": "?id=my-project",
21 hotspot.filters.show_all
28 exports[`should render correctly: anonymous 1`] = `
30 className="filter-bar-outer"
33 className="filter-bar"
36 className="filter-bar-inner display-flex-center"
39 className="display-flex-space-between width-100"
42 className="display-flex-center"
45 className="huge-spacer-right"
50 className="spacer-right"
57 aria-label="hotspot.filters.status"
58 className="input-medium big-spacer-right"
64 "label": "hotspot.filters.status.to_review",
68 "label": "hotspot.filters.status.acknowledged",
69 "value": "ACKNOWLEDGED",
72 "label": "hotspot.filters.status.fixed",
76 "label": "hotspot.filters.status.safe",
83 "label": "hotspot.filters.status.to_review",
89 aria-label="hotspot.filters.period"
90 className="input-medium big-spacer-right"
96 "label": "hotspot.filters.period.since_leak_period",
100 "label": "hotspot.filters.period.overall",
107 "label": "hotspot.filters.period.overall",
114 className="display-flex-center"
117 className="little-spacer-right"
119 metric.security_hotspots_reviewed.name
122 className="big-spacer-right"
123 overlay="hotspots.reviewed.tooltip"
129 className="spacer-left huge it__hs-review-percentage"
130 metricKey="security_hotspots_reviewed"
141 exports[`should render correctly: logged-in 1`] = `
143 className="filter-bar-outer"
146 className="filter-bar"
149 className="filter-bar-inner display-flex-center"
152 className="display-flex-space-between width-100"
155 className="display-flex-center"
158 className="huge-spacer-right"
160 hotspot.filters.title
163 className="huge-spacer-right"
170 "label": "hotspot.filters.assignee.assigned_to_me",
174 "label": "hotspot.filters.assignee.all",
183 className="spacer-right"
190 aria-label="hotspot.filters.status"
191 className="input-medium big-spacer-right"
193 onChange={[Function]}
197 "label": "hotspot.filters.status.to_review",
198 "value": "TO_REVIEW",
201 "label": "hotspot.filters.status.acknowledged",
202 "value": "ACKNOWLEDGED",
205 "label": "hotspot.filters.status.fixed",
209 "label": "hotspot.filters.status.safe",
216 "label": "hotspot.filters.status.to_review",
217 "value": "TO_REVIEW",
222 aria-label="hotspot.filters.period"
223 className="input-medium big-spacer-right"
225 onChange={[Function]}
229 "label": "hotspot.filters.period.since_leak_period",
233 "label": "hotspot.filters.period.overall",
240 "label": "hotspot.filters.period.overall",
247 className="display-flex-center"
250 className="little-spacer-right"
252 metric.security_hotspots_reviewed.name
255 className="big-spacer-right"
256 overlay="hotspots.reviewed.tooltip"
262 className="spacer-left huge it__hs-review-percentage"
263 metricKey="security_hotspots_reviewed"
274 exports[`should render correctly: non-project 1`] = `
276 className="filter-bar-outer"
279 className="filter-bar"
282 className="filter-bar-inner display-flex-center"
285 className="display-flex-space-between width-100"
288 className="display-flex-center"
291 className="huge-spacer-right"
293 hotspot.filters.title
296 className="huge-spacer-right"
303 "label": "hotspot.filters.assignee.assigned_to_me",
307 "label": "hotspot.filters.assignee.all",
316 className="spacer-right"
323 aria-label="hotspot.filters.status"
324 className="input-medium big-spacer-right"
326 onChange={[Function]}
330 "label": "hotspot.filters.status.to_review",
331 "value": "TO_REVIEW",
334 "label": "hotspot.filters.status.acknowledged",
335 "value": "ACKNOWLEDGED",
338 "label": "hotspot.filters.status.fixed",
342 "label": "hotspot.filters.status.safe",
349 "label": "hotspot.filters.status.to_review",
350 "value": "TO_REVIEW",
355 aria-label="hotspot.filters.period"
356 className="input-medium big-spacer-right"
358 onChange={[Function]}
362 "label": "hotspot.filters.period.since_leak_period",
366 "label": "hotspot.filters.period.overall",
373 "label": "hotspot.filters.period.overall",
385 exports[`should render correctly: on Pull request 1`] = `
387 className="filter-bar-outer"
390 className="filter-bar"
393 className="filter-bar-inner display-flex-center"
396 className="display-flex-space-between width-100"
399 className="display-flex-center"
402 className="huge-spacer-right"
404 hotspot.filters.title
407 className="spacer-right"
414 aria-label="hotspot.filters.status"
415 className="input-medium big-spacer-right"
417 onChange={[Function]}
421 "label": "hotspot.filters.status.to_review",
422 "value": "TO_REVIEW",
425 "label": "hotspot.filters.status.acknowledged",
426 "value": "ACKNOWLEDGED",
429 "label": "hotspot.filters.status.fixed",
433 "label": "hotspot.filters.status.safe",
440 "label": "hotspot.filters.status.to_review",
441 "value": "TO_REVIEW",
447 className="display-flex-center"
450 className="little-spacer-right"
452 metric.security_hotspots_reviewed.name
455 className="big-spacer-right"
456 overlay="hotspots.reviewed.tooltip"
462 className="spacer-left huge it__hs-review-percentage"
463 metricKey="new_security_hotspots_reviewed"
474 exports[`should render correctly: with hotspots reviewed measure 1`] = `
476 className="filter-bar-outer"
479 className="filter-bar"
482 className="filter-bar-inner display-flex-center"
485 className="display-flex-space-between width-100"
488 className="display-flex-center"
491 className="huge-spacer-right"
493 hotspot.filters.title
496 className="spacer-right"
503 aria-label="hotspot.filters.status"
504 className="input-medium big-spacer-right"
506 onChange={[Function]}
510 "label": "hotspot.filters.status.to_review",
511 "value": "TO_REVIEW",
514 "label": "hotspot.filters.status.acknowledged",
515 "value": "ACKNOWLEDGED",
518 "label": "hotspot.filters.status.fixed",
522 "label": "hotspot.filters.status.safe",
529 "label": "hotspot.filters.status.to_review",
530 "value": "TO_REVIEW",
535 aria-label="hotspot.filters.period"
536 className="input-medium big-spacer-right"
538 onChange={[Function]}
542 "label": "hotspot.filters.period.since_leak_period",
546 "label": "hotspot.filters.period.overall",
553 "label": "hotspot.filters.period.overall",
560 className="display-flex-center"
563 className="little-spacer-right"
565 metric.security_hotspots_reviewed.name
568 className="big-spacer-right"
569 overlay="hotspots.reviewed.tooltip"
578 className="spacer-left huge it__hs-review-percentage"
579 metricKey="security_hotspots_reviewed"