1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
5 className="big-spacer-left big-spacer-top"
9 className="big-padded hotspot-content"
12 className="huge-spacer-bottom display-flex-space-between"
15 className="big big-spacer-right"
17 '3' is a magic number.
20 className="display-flex-row flex-0"
23 className="dropdown spacer-right flex-1-0-auto"
26 onClick={[MockFunction]}
32 className="dropdown spacer-right flex-1-0-auto"
34 <HotspotOpenInIdeButton
35 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
36 projectKey="my-project"
40 className="flex-1-0-auto"
41 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
44 className="spacer-right"
47 hotspots.get_permalink
53 className="huge-spacer-bottom display-flex-row"
56 className="hotspot-information display-flex-column display-flex-space-between"
59 className="display-flex-center"
62 className="big-spacer-right"
73 className="display-flex-center"
76 className="big-spacer-right"
78 hotspots.risk_exposure
81 className="hotspot-risk-badge HIGH"
87 className="display-flex-center"
90 className="big-spacer-right"
95 <Connect(withCurrentUser(Assignee))
98 "assignee": "assignee",
99 "assigneeUser": Object {
106 "authorUser": Object {
112 "canChangeStatus": true,
113 "changelog": Array [],
115 "component": Object {
116 "breadcrumbs": Array [],
120 "qualityGate": Object {
125 "qualityProfiles": Array [
135 "creationDate": "2013-05-13T17:55:41+0200",
136 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
138 "message": "'3' is a magic number.",
140 "breadcrumbs": Array [],
144 "qualityGate": Object {
149 "qualityProfiles": Array [
159 "resolution": "FIXED",
161 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
162 "key": "squid:S2077",
164 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
165 "securityCategory": "sql-injection",
166 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
167 "vulnerabilityProbability": "HIGH",
169 "status": "REVIEWED",
170 "textRange": Object {
176 "updateDate": "2013-05-13T17:55:42+0200",
193 onAssigneeChange={[MockFunction]}
199 className="huge-spacer-left"
201 <Connect(withCurrentUser(Status))
204 "assignee": "assignee",
205 "assigneeUser": Object {
212 "authorUser": Object {
218 "canChangeStatus": true,
219 "changelog": Array [],
221 "component": Object {
222 "breadcrumbs": Array [],
226 "qualityGate": Object {
231 "qualityProfiles": Array [
241 "creationDate": "2013-05-13T17:55:41+0200",
242 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
244 "message": "'3' is a magic number.",
246 "breadcrumbs": Array [],
250 "qualityGate": Object {
255 "qualityProfiles": Array [
265 "resolution": "FIXED",
267 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
268 "key": "squid:S2077",
270 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
271 "securityCategory": "sql-injection",
272 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
273 "vulnerabilityProbability": "HIGH",
275 "status": "REVIEWED",
276 "textRange": Object {
282 "updateDate": "2013-05-13T17:55:42+0200",
299 onStatusChange={[Function]}
303 <HotspotSnippetContainer
306 "analysisDate": "2018-01-01",
307 "excludedFromPurge": true,
309 "name": "branch-6.7",
314 "breadcrumbs": Array [],
318 "qualityGate": Object {
323 "qualityProfiles": Array [
336 "assignee": "assignee",
337 "assigneeUser": Object {
344 "authorUser": Object {
350 "canChangeStatus": true,
351 "changelog": Array [],
353 "component": Object {
354 "breadcrumbs": Array [],
358 "qualityGate": Object {
363 "qualityProfiles": Array [
373 "creationDate": "2013-05-13T17:55:41+0200",
374 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
376 "message": "'3' is a magic number.",
378 "breadcrumbs": Array [],
382 "qualityGate": Object {
387 "qualityProfiles": Array [
397 "resolution": "FIXED",
399 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
400 "key": "squid:S2077",
402 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
403 "securityCategory": "sql-injection",
404 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
405 "vulnerabilityProbability": "HIGH",
407 "status": "REVIEWED",
408 "textRange": Object {
414 "updateDate": "2013-05-13T17:55:42+0200",
435 "assignee": "assignee",
436 "assigneeUser": Object {
443 "authorUser": Object {
449 "canChangeStatus": true,
450 "changelog": Array [],
452 "component": Object {
453 "breadcrumbs": Array [],
457 "qualityGate": Object {
462 "qualityProfiles": Array [
472 "creationDate": "2013-05-13T17:55:41+0200",
473 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
475 "message": "'3' is a magic number.",
477 "breadcrumbs": Array [],
481 "qualityGate": Object {
486 "qualityProfiles": Array [
496 "resolution": "FIXED",
498 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
499 "key": "squid:S2077",
501 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
502 "securityCategory": "sql-injection",
503 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
504 "vulnerabilityProbability": "HIGH",
506 "status": "REVIEWED",
507 "textRange": Object {
513 "updateDate": "2013-05-13T17:55:42+0200",
531 <HotspotReviewHistoryAndComments
537 commentVisible={false}
545 "assignee": "assignee",
546 "assigneeUser": Object {
553 "authorUser": Object {
559 "canChangeStatus": true,
560 "changelog": Array [],
562 "component": Object {
563 "breadcrumbs": Array [],
567 "qualityGate": Object {
572 "qualityProfiles": Array [
582 "creationDate": "2013-05-13T17:55:41+0200",
583 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
585 "message": "'3' is a magic number.",
587 "breadcrumbs": Array [],
591 "qualityGate": Object {
596 "qualityProfiles": Array [
606 "resolution": "FIXED",
608 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
609 "key": "squid:S2077",
611 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
612 "securityCategory": "sql-injection",
613 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
614 "vulnerabilityProbability": "HIGH",
616 "status": "REVIEWED",
617 "textRange": Object {
623 "updateDate": "2013-05-13T17:55:42+0200",
640 onCloseComment={[MockFunction]}
641 onCommentUpdate={[MockFunction]}
642 onOpenComment={[MockFunction]}
648 exports[`should render correctly: anonymous user 1`] = `
650 className="big-spacer-left big-spacer-top"
654 className="big-padded hotspot-content"
657 className="huge-spacer-bottom display-flex-space-between"
660 className="big big-spacer-right"
662 '3' is a magic number.
665 className="display-flex-row flex-0"
668 className="dropdown spacer-right flex-1-0-auto"
671 onClick={[MockFunction]}
673 hotspots.comment.open
677 className="dropdown spacer-right flex-1-0-auto"
679 <HotspotOpenInIdeButton
680 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
681 projectKey="my-project"
685 className="flex-1-0-auto"
686 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
689 className="spacer-right"
692 hotspots.get_permalink
698 className="huge-spacer-bottom display-flex-row"
701 className="hotspot-information display-flex-column display-flex-space-between"
704 className="display-flex-center"
707 className="big-spacer-right"
718 className="display-flex-center"
721 className="big-spacer-right"
723 hotspots.risk_exposure
726 className="hotspot-risk-badge HIGH"
732 className="display-flex-center"
735 className="big-spacer-right"
740 <Connect(withCurrentUser(Assignee))
743 "assignee": "assignee",
744 "assigneeUser": Object {
751 "authorUser": Object {
757 "canChangeStatus": true,
758 "changelog": Array [],
760 "component": Object {
761 "breadcrumbs": Array [],
765 "qualityGate": Object {
770 "qualityProfiles": Array [
780 "creationDate": "2013-05-13T17:55:41+0200",
781 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
783 "message": "'3' is a magic number.",
785 "breadcrumbs": Array [],
789 "qualityGate": Object {
794 "qualityProfiles": Array [
804 "resolution": "FIXED",
806 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
807 "key": "squid:S2077",
809 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
810 "securityCategory": "sql-injection",
811 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
812 "vulnerabilityProbability": "HIGH",
814 "status": "REVIEWED",
815 "textRange": Object {
821 "updateDate": "2013-05-13T17:55:42+0200",
838 onAssigneeChange={[MockFunction]}
844 className="huge-spacer-left"
846 <Connect(withCurrentUser(Status))
849 "assignee": "assignee",
850 "assigneeUser": Object {
857 "authorUser": Object {
863 "canChangeStatus": true,
864 "changelog": Array [],
866 "component": Object {
867 "breadcrumbs": Array [],
871 "qualityGate": Object {
876 "qualityProfiles": Array [
886 "creationDate": "2013-05-13T17:55:41+0200",
887 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
889 "message": "'3' is a magic number.",
891 "breadcrumbs": Array [],
895 "qualityGate": Object {
900 "qualityProfiles": Array [
910 "resolution": "FIXED",
912 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
913 "key": "squid:S2077",
915 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
916 "securityCategory": "sql-injection",
917 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
918 "vulnerabilityProbability": "HIGH",
920 "status": "REVIEWED",
921 "textRange": Object {
927 "updateDate": "2013-05-13T17:55:42+0200",
944 onStatusChange={[Function]}
948 <HotspotSnippetContainer
951 "analysisDate": "2018-01-01",
952 "excludedFromPurge": true,
954 "name": "branch-6.7",
959 "breadcrumbs": Array [],
963 "qualityGate": Object {
968 "qualityProfiles": Array [
981 "assignee": "assignee",
982 "assigneeUser": Object {
989 "authorUser": Object {
995 "canChangeStatus": true,
996 "changelog": Array [],
998 "component": Object {
999 "breadcrumbs": Array [],
1000 "key": "my-project",
1001 "name": "MyProject",
1003 "qualityGate": Object {
1006 "name": "Sonar way",
1008 "qualityProfiles": Array [
1013 "name": "Sonar way",
1018 "creationDate": "2013-05-13T17:55:41+0200",
1019 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1021 "message": "'3' is a magic number.",
1023 "breadcrumbs": Array [],
1024 "key": "my-project",
1025 "name": "MyProject",
1027 "qualityGate": Object {
1030 "name": "Sonar way",
1032 "qualityProfiles": Array [
1037 "name": "Sonar way",
1042 "resolution": "FIXED",
1044 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1045 "key": "squid:S2077",
1046 "name": "That rule",
1047 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1048 "securityCategory": "sql-injection",
1049 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1050 "vulnerabilityProbability": "HIGH",
1052 "status": "REVIEWED",
1053 "textRange": Object {
1059 "updateDate": "2013-05-13T17:55:42+0200",
1064 "login": "assignee",
1080 "assignee": "assignee",
1081 "assigneeUser": Object {
1084 "login": "assignee",
1088 "authorUser": Object {
1094 "canChangeStatus": true,
1095 "changelog": Array [],
1096 "comment": Array [],
1097 "component": Object {
1098 "breadcrumbs": Array [],
1099 "key": "my-project",
1100 "name": "MyProject",
1102 "qualityGate": Object {
1105 "name": "Sonar way",
1107 "qualityProfiles": Array [
1112 "name": "Sonar way",
1117 "creationDate": "2013-05-13T17:55:41+0200",
1118 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1120 "message": "'3' is a magic number.",
1122 "breadcrumbs": Array [],
1123 "key": "my-project",
1124 "name": "MyProject",
1126 "qualityGate": Object {
1129 "name": "Sonar way",
1131 "qualityProfiles": Array [
1136 "name": "Sonar way",
1141 "resolution": "FIXED",
1143 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1144 "key": "squid:S2077",
1145 "name": "That rule",
1146 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1147 "securityCategory": "sql-injection",
1148 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1149 "vulnerabilityProbability": "HIGH",
1151 "status": "REVIEWED",
1152 "textRange": Object {
1158 "updateDate": "2013-05-13T17:55:42+0200",
1163 "login": "assignee",
1176 <HotspotReviewHistoryAndComments
1182 commentVisible={false}
1185 "isLoggedIn": false,
1190 "assignee": "assignee",
1191 "assigneeUser": Object {
1194 "login": "assignee",
1198 "authorUser": Object {
1204 "canChangeStatus": true,
1205 "changelog": Array [],
1206 "comment": Array [],
1207 "component": Object {
1208 "breadcrumbs": Array [],
1209 "key": "my-project",
1210 "name": "MyProject",
1212 "qualityGate": Object {
1215 "name": "Sonar way",
1217 "qualityProfiles": Array [
1222 "name": "Sonar way",
1227 "creationDate": "2013-05-13T17:55:41+0200",
1228 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1230 "message": "'3' is a magic number.",
1232 "breadcrumbs": Array [],
1233 "key": "my-project",
1234 "name": "MyProject",
1236 "qualityGate": Object {
1239 "name": "Sonar way",
1241 "qualityProfiles": Array [
1246 "name": "Sonar way",
1251 "resolution": "FIXED",
1253 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1254 "key": "squid:S2077",
1255 "name": "That rule",
1256 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1257 "securityCategory": "sql-injection",
1258 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1259 "vulnerabilityProbability": "HIGH",
1261 "status": "REVIEWED",
1262 "textRange": Object {
1268 "updateDate": "2013-05-13T17:55:42+0200",
1273 "login": "assignee",
1285 onCloseComment={[MockFunction]}
1286 onCommentUpdate={[MockFunction]}
1287 onOpenComment={[MockFunction]}
1293 exports[`should render correctly: assignee without name 1`] = `
1295 className="big-spacer-left big-spacer-top"
1299 className="big-padded hotspot-content"
1302 className="huge-spacer-bottom display-flex-space-between"
1305 className="big big-spacer-right"
1307 '3' is a magic number.
1310 className="display-flex-row flex-0"
1313 className="dropdown spacer-right flex-1-0-auto"
1316 onClick={[MockFunction]}
1318 hotspots.comment.open
1322 className="dropdown spacer-right flex-1-0-auto"
1324 <HotspotOpenInIdeButton
1325 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
1326 projectKey="my-project"
1330 className="flex-1-0-auto"
1331 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
1334 className="spacer-right"
1337 hotspots.get_permalink
1343 className="huge-spacer-bottom display-flex-row"
1346 className="hotspot-information display-flex-column display-flex-space-between"
1349 className="display-flex-center"
1352 className="big-spacer-right"
1363 className="display-flex-center"
1366 className="big-spacer-right"
1368 hotspots.risk_exposure
1371 className="hotspot-risk-badge HIGH"
1377 className="display-flex-center"
1380 className="big-spacer-right"
1385 <Connect(withCurrentUser(Assignee))
1388 "assignee": "assignee",
1389 "assigneeUser": Object {
1392 "login": "assignee_login",
1396 "authorUser": Object {
1402 "canChangeStatus": true,
1403 "changelog": Array [],
1404 "comment": Array [],
1405 "component": Object {
1406 "breadcrumbs": Array [],
1407 "key": "my-project",
1408 "name": "MyProject",
1410 "qualityGate": Object {
1413 "name": "Sonar way",
1415 "qualityProfiles": Array [
1420 "name": "Sonar way",
1425 "creationDate": "2013-05-13T17:55:41+0200",
1426 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1428 "message": "'3' is a magic number.",
1430 "breadcrumbs": Array [],
1431 "key": "my-project",
1432 "name": "MyProject",
1434 "qualityGate": Object {
1437 "name": "Sonar way",
1439 "qualityProfiles": Array [
1444 "name": "Sonar way",
1449 "resolution": "FIXED",
1451 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1452 "key": "squid:S2077",
1453 "name": "That rule",
1454 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1455 "securityCategory": "sql-injection",
1456 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1457 "vulnerabilityProbability": "HIGH",
1459 "status": "REVIEWED",
1460 "textRange": Object {
1466 "updateDate": "2013-05-13T17:55:42+0200",
1471 "login": "assignee",
1483 onAssigneeChange={[MockFunction]}
1489 className="huge-spacer-left"
1491 <Connect(withCurrentUser(Status))
1494 "assignee": "assignee",
1495 "assigneeUser": Object {
1498 "login": "assignee_login",
1502 "authorUser": Object {
1508 "canChangeStatus": true,
1509 "changelog": Array [],
1510 "comment": Array [],
1511 "component": Object {
1512 "breadcrumbs": Array [],
1513 "key": "my-project",
1514 "name": "MyProject",
1516 "qualityGate": Object {
1519 "name": "Sonar way",
1521 "qualityProfiles": Array [
1526 "name": "Sonar way",
1531 "creationDate": "2013-05-13T17:55:41+0200",
1532 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1534 "message": "'3' is a magic number.",
1536 "breadcrumbs": Array [],
1537 "key": "my-project",
1538 "name": "MyProject",
1540 "qualityGate": Object {
1543 "name": "Sonar way",
1545 "qualityProfiles": Array [
1550 "name": "Sonar way",
1555 "resolution": "FIXED",
1557 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1558 "key": "squid:S2077",
1559 "name": "That rule",
1560 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1561 "securityCategory": "sql-injection",
1562 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1563 "vulnerabilityProbability": "HIGH",
1565 "status": "REVIEWED",
1566 "textRange": Object {
1572 "updateDate": "2013-05-13T17:55:42+0200",
1577 "login": "assignee",
1589 onStatusChange={[Function]}
1593 <HotspotSnippetContainer
1596 "analysisDate": "2018-01-01",
1597 "excludedFromPurge": true,
1599 "name": "branch-6.7",
1604 "breadcrumbs": Array [],
1605 "key": "my-project",
1606 "name": "MyProject",
1608 "qualityGate": Object {
1611 "name": "Sonar way",
1613 "qualityProfiles": Array [
1618 "name": "Sonar way",
1626 "assignee": "assignee",
1627 "assigneeUser": Object {
1630 "login": "assignee_login",
1634 "authorUser": Object {
1640 "canChangeStatus": true,
1641 "changelog": Array [],
1642 "comment": Array [],
1643 "component": Object {
1644 "breadcrumbs": Array [],
1645 "key": "my-project",
1646 "name": "MyProject",
1648 "qualityGate": Object {
1651 "name": "Sonar way",
1653 "qualityProfiles": Array [
1658 "name": "Sonar way",
1663 "creationDate": "2013-05-13T17:55:41+0200",
1664 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1666 "message": "'3' is a magic number.",
1668 "breadcrumbs": Array [],
1669 "key": "my-project",
1670 "name": "MyProject",
1672 "qualityGate": Object {
1675 "name": "Sonar way",
1677 "qualityProfiles": Array [
1682 "name": "Sonar way",
1687 "resolution": "FIXED",
1689 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1690 "key": "squid:S2077",
1691 "name": "That rule",
1692 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1693 "securityCategory": "sql-injection",
1694 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1695 "vulnerabilityProbability": "HIGH",
1697 "status": "REVIEWED",
1698 "textRange": Object {
1704 "updateDate": "2013-05-13T17:55:42+0200",
1709 "login": "assignee",
1725 "assignee": "assignee",
1726 "assigneeUser": Object {
1729 "login": "assignee_login",
1733 "authorUser": Object {
1739 "canChangeStatus": true,
1740 "changelog": Array [],
1741 "comment": Array [],
1742 "component": Object {
1743 "breadcrumbs": Array [],
1744 "key": "my-project",
1745 "name": "MyProject",
1747 "qualityGate": Object {
1750 "name": "Sonar way",
1752 "qualityProfiles": Array [
1757 "name": "Sonar way",
1762 "creationDate": "2013-05-13T17:55:41+0200",
1763 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1765 "message": "'3' is a magic number.",
1767 "breadcrumbs": Array [],
1768 "key": "my-project",
1769 "name": "MyProject",
1771 "qualityGate": Object {
1774 "name": "Sonar way",
1776 "qualityProfiles": Array [
1781 "name": "Sonar way",
1786 "resolution": "FIXED",
1788 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1789 "key": "squid:S2077",
1790 "name": "That rule",
1791 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1792 "securityCategory": "sql-injection",
1793 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1794 "vulnerabilityProbability": "HIGH",
1796 "status": "REVIEWED",
1797 "textRange": Object {
1803 "updateDate": "2013-05-13T17:55:42+0200",
1808 "login": "assignee",
1821 <HotspotReviewHistoryAndComments
1827 commentVisible={false}
1830 "isLoggedIn": false,
1835 "assignee": "assignee",
1836 "assigneeUser": Object {
1839 "login": "assignee_login",
1843 "authorUser": Object {
1849 "canChangeStatus": true,
1850 "changelog": Array [],
1851 "comment": Array [],
1852 "component": Object {
1853 "breadcrumbs": Array [],
1854 "key": "my-project",
1855 "name": "MyProject",
1857 "qualityGate": Object {
1860 "name": "Sonar way",
1862 "qualityProfiles": Array [
1867 "name": "Sonar way",
1872 "creationDate": "2013-05-13T17:55:41+0200",
1873 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1875 "message": "'3' is a magic number.",
1877 "breadcrumbs": Array [],
1878 "key": "my-project",
1879 "name": "MyProject",
1881 "qualityGate": Object {
1884 "name": "Sonar way",
1886 "qualityProfiles": Array [
1891 "name": "Sonar way",
1896 "resolution": "FIXED",
1898 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1899 "key": "squid:S2077",
1900 "name": "That rule",
1901 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1902 "securityCategory": "sql-injection",
1903 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1904 "vulnerabilityProbability": "HIGH",
1906 "status": "REVIEWED",
1907 "textRange": Object {
1913 "updateDate": "2013-05-13T17:55:42+0200",
1918 "login": "assignee",
1930 onCloseComment={[MockFunction]}
1931 onCommentUpdate={[MockFunction]}
1932 onOpenComment={[MockFunction]}
1938 exports[`should render correctly: deleted assignee 1`] = `
1940 className="big-spacer-left big-spacer-top"
1944 className="big-padded hotspot-content"
1947 className="huge-spacer-bottom display-flex-space-between"
1950 className="big big-spacer-right"
1952 '3' is a magic number.
1955 className="display-flex-row flex-0"
1958 className="dropdown spacer-right flex-1-0-auto"
1961 onClick={[MockFunction]}
1963 hotspots.comment.open
1967 className="dropdown spacer-right flex-1-0-auto"
1969 <HotspotOpenInIdeButton
1970 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
1971 projectKey="my-project"
1975 className="flex-1-0-auto"
1976 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
1979 className="spacer-right"
1982 hotspots.get_permalink
1988 className="huge-spacer-bottom display-flex-row"
1991 className="hotspot-information display-flex-column display-flex-space-between"
1994 className="display-flex-center"
1997 className="big-spacer-right"
2008 className="display-flex-center"
2011 className="big-spacer-right"
2013 hotspots.risk_exposure
2016 className="hotspot-risk-badge HIGH"
2022 className="display-flex-center"
2025 className="big-spacer-right"
2030 <Connect(withCurrentUser(Assignee))
2033 "assignee": "assignee",
2034 "assigneeUser": Object {
2037 "login": "john.doe",
2041 "authorUser": Object {
2047 "canChangeStatus": true,
2048 "changelog": Array [],
2049 "comment": Array [],
2050 "component": Object {
2051 "breadcrumbs": Array [],
2052 "key": "my-project",
2053 "name": "MyProject",
2055 "qualityGate": Object {
2058 "name": "Sonar way",
2060 "qualityProfiles": Array [
2065 "name": "Sonar way",
2070 "creationDate": "2013-05-13T17:55:41+0200",
2071 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2073 "message": "'3' is a magic number.",
2075 "breadcrumbs": Array [],
2076 "key": "my-project",
2077 "name": "MyProject",
2079 "qualityGate": Object {
2082 "name": "Sonar way",
2084 "qualityProfiles": Array [
2089 "name": "Sonar way",
2094 "resolution": "FIXED",
2096 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2097 "key": "squid:S2077",
2098 "name": "That rule",
2099 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2100 "securityCategory": "sql-injection",
2101 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2102 "vulnerabilityProbability": "HIGH",
2104 "status": "REVIEWED",
2105 "textRange": Object {
2111 "updateDate": "2013-05-13T17:55:42+0200",
2116 "login": "assignee",
2128 onAssigneeChange={[MockFunction]}
2134 className="huge-spacer-left"
2136 <Connect(withCurrentUser(Status))
2139 "assignee": "assignee",
2140 "assigneeUser": Object {
2143 "login": "john.doe",
2147 "authorUser": Object {
2153 "canChangeStatus": true,
2154 "changelog": Array [],
2155 "comment": Array [],
2156 "component": Object {
2157 "breadcrumbs": Array [],
2158 "key": "my-project",
2159 "name": "MyProject",
2161 "qualityGate": Object {
2164 "name": "Sonar way",
2166 "qualityProfiles": Array [
2171 "name": "Sonar way",
2176 "creationDate": "2013-05-13T17:55:41+0200",
2177 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2179 "message": "'3' is a magic number.",
2181 "breadcrumbs": Array [],
2182 "key": "my-project",
2183 "name": "MyProject",
2185 "qualityGate": Object {
2188 "name": "Sonar way",
2190 "qualityProfiles": Array [
2195 "name": "Sonar way",
2200 "resolution": "FIXED",
2202 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2203 "key": "squid:S2077",
2204 "name": "That rule",
2205 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2206 "securityCategory": "sql-injection",
2207 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2208 "vulnerabilityProbability": "HIGH",
2210 "status": "REVIEWED",
2211 "textRange": Object {
2217 "updateDate": "2013-05-13T17:55:42+0200",
2222 "login": "assignee",
2234 onStatusChange={[Function]}
2238 <HotspotSnippetContainer
2241 "analysisDate": "2018-01-01",
2242 "excludedFromPurge": true,
2244 "name": "branch-6.7",
2249 "breadcrumbs": Array [],
2250 "key": "my-project",
2251 "name": "MyProject",
2253 "qualityGate": Object {
2256 "name": "Sonar way",
2258 "qualityProfiles": Array [
2263 "name": "Sonar way",
2271 "assignee": "assignee",
2272 "assigneeUser": Object {
2275 "login": "john.doe",
2279 "authorUser": Object {
2285 "canChangeStatus": true,
2286 "changelog": Array [],
2287 "comment": Array [],
2288 "component": Object {
2289 "breadcrumbs": Array [],
2290 "key": "my-project",
2291 "name": "MyProject",
2293 "qualityGate": Object {
2296 "name": "Sonar way",
2298 "qualityProfiles": Array [
2303 "name": "Sonar way",
2308 "creationDate": "2013-05-13T17:55:41+0200",
2309 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2311 "message": "'3' is a magic number.",
2313 "breadcrumbs": Array [],
2314 "key": "my-project",
2315 "name": "MyProject",
2317 "qualityGate": Object {
2320 "name": "Sonar way",
2322 "qualityProfiles": Array [
2327 "name": "Sonar way",
2332 "resolution": "FIXED",
2334 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2335 "key": "squid:S2077",
2336 "name": "That rule",
2337 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2338 "securityCategory": "sql-injection",
2339 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2340 "vulnerabilityProbability": "HIGH",
2342 "status": "REVIEWED",
2343 "textRange": Object {
2349 "updateDate": "2013-05-13T17:55:42+0200",
2354 "login": "assignee",
2370 "assignee": "assignee",
2371 "assigneeUser": Object {
2374 "login": "john.doe",
2378 "authorUser": Object {
2384 "canChangeStatus": true,
2385 "changelog": Array [],
2386 "comment": Array [],
2387 "component": Object {
2388 "breadcrumbs": Array [],
2389 "key": "my-project",
2390 "name": "MyProject",
2392 "qualityGate": Object {
2395 "name": "Sonar way",
2397 "qualityProfiles": Array [
2402 "name": "Sonar way",
2407 "creationDate": "2013-05-13T17:55:41+0200",
2408 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2410 "message": "'3' is a magic number.",
2412 "breadcrumbs": Array [],
2413 "key": "my-project",
2414 "name": "MyProject",
2416 "qualityGate": Object {
2419 "name": "Sonar way",
2421 "qualityProfiles": Array [
2426 "name": "Sonar way",
2431 "resolution": "FIXED",
2433 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2434 "key": "squid:S2077",
2435 "name": "That rule",
2436 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2437 "securityCategory": "sql-injection",
2438 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2439 "vulnerabilityProbability": "HIGH",
2441 "status": "REVIEWED",
2442 "textRange": Object {
2448 "updateDate": "2013-05-13T17:55:42+0200",
2453 "login": "assignee",
2466 <HotspotReviewHistoryAndComments
2472 commentVisible={false}
2475 "isLoggedIn": false,
2480 "assignee": "assignee",
2481 "assigneeUser": Object {
2484 "login": "john.doe",
2488 "authorUser": Object {
2494 "canChangeStatus": true,
2495 "changelog": Array [],
2496 "comment": Array [],
2497 "component": Object {
2498 "breadcrumbs": Array [],
2499 "key": "my-project",
2500 "name": "MyProject",
2502 "qualityGate": Object {
2505 "name": "Sonar way",
2507 "qualityProfiles": Array [
2512 "name": "Sonar way",
2517 "creationDate": "2013-05-13T17:55:41+0200",
2518 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2520 "message": "'3' is a magic number.",
2522 "breadcrumbs": Array [],
2523 "key": "my-project",
2524 "name": "MyProject",
2526 "qualityGate": Object {
2529 "name": "Sonar way",
2531 "qualityProfiles": Array [
2536 "name": "Sonar way",
2541 "resolution": "FIXED",
2543 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2544 "key": "squid:S2077",
2545 "name": "That rule",
2546 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2547 "securityCategory": "sql-injection",
2548 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2549 "vulnerabilityProbability": "HIGH",
2551 "status": "REVIEWED",
2552 "textRange": Object {
2558 "updateDate": "2013-05-13T17:55:42+0200",
2563 "login": "assignee",
2575 onCloseComment={[MockFunction]}
2576 onCommentUpdate={[MockFunction]}
2577 onOpenComment={[MockFunction]}
2583 exports[`should render correctly: no hotspot 1`] = `
2585 className="big-spacer-left big-spacer-top"
2590 exports[`should render correctly: unassigned 1`] = `
2592 className="big-spacer-left big-spacer-top"
2596 className="big-padded hotspot-content"
2599 className="huge-spacer-bottom display-flex-space-between"
2602 className="big big-spacer-right"
2604 '3' is a magic number.
2607 className="display-flex-row flex-0"
2610 className="dropdown spacer-right flex-1-0-auto"
2613 onClick={[MockFunction]}
2615 hotspots.comment.open
2619 className="dropdown spacer-right flex-1-0-auto"
2621 <HotspotOpenInIdeButton
2622 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
2623 projectKey="my-project"
2627 className="flex-1-0-auto"
2628 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
2631 className="spacer-right"
2634 hotspots.get_permalink
2640 className="huge-spacer-bottom display-flex-row"
2643 className="hotspot-information display-flex-column display-flex-space-between"
2646 className="display-flex-center"
2649 className="big-spacer-right"
2660 className="display-flex-center"
2663 className="big-spacer-right"
2665 hotspots.risk_exposure
2668 className="hotspot-risk-badge HIGH"
2674 className="display-flex-center"
2677 className="big-spacer-right"
2682 <Connect(withCurrentUser(Assignee))
2685 "assignee": undefined,
2686 "assigneeUser": Object {
2689 "login": "assignee",
2693 "authorUser": Object {
2699 "canChangeStatus": true,
2700 "changelog": Array [],
2701 "comment": Array [],
2702 "component": Object {
2703 "breadcrumbs": Array [],
2704 "key": "my-project",
2705 "name": "MyProject",
2707 "qualityGate": Object {
2710 "name": "Sonar way",
2712 "qualityProfiles": Array [
2717 "name": "Sonar way",
2722 "creationDate": "2013-05-13T17:55:41+0200",
2723 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2725 "message": "'3' is a magic number.",
2727 "breadcrumbs": Array [],
2728 "key": "my-project",
2729 "name": "MyProject",
2731 "qualityGate": Object {
2734 "name": "Sonar way",
2736 "qualityProfiles": Array [
2741 "name": "Sonar way",
2746 "resolution": "FIXED",
2748 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2749 "key": "squid:S2077",
2750 "name": "That rule",
2751 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2752 "securityCategory": "sql-injection",
2753 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2754 "vulnerabilityProbability": "HIGH",
2756 "status": "REVIEWED",
2757 "textRange": Object {
2763 "updateDate": "2013-05-13T17:55:42+0200",
2768 "login": "assignee",
2780 onAssigneeChange={[MockFunction]}
2786 className="huge-spacer-left"
2788 <Connect(withCurrentUser(Status))
2791 "assignee": undefined,
2792 "assigneeUser": Object {
2795 "login": "assignee",
2799 "authorUser": Object {
2805 "canChangeStatus": true,
2806 "changelog": Array [],
2807 "comment": Array [],
2808 "component": Object {
2809 "breadcrumbs": Array [],
2810 "key": "my-project",
2811 "name": "MyProject",
2813 "qualityGate": Object {
2816 "name": "Sonar way",
2818 "qualityProfiles": Array [
2823 "name": "Sonar way",
2828 "creationDate": "2013-05-13T17:55:41+0200",
2829 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2831 "message": "'3' is a magic number.",
2833 "breadcrumbs": Array [],
2834 "key": "my-project",
2835 "name": "MyProject",
2837 "qualityGate": Object {
2840 "name": "Sonar way",
2842 "qualityProfiles": Array [
2847 "name": "Sonar way",
2852 "resolution": "FIXED",
2854 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2855 "key": "squid:S2077",
2856 "name": "That rule",
2857 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2858 "securityCategory": "sql-injection",
2859 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2860 "vulnerabilityProbability": "HIGH",
2862 "status": "REVIEWED",
2863 "textRange": Object {
2869 "updateDate": "2013-05-13T17:55:42+0200",
2874 "login": "assignee",
2886 onStatusChange={[Function]}
2890 <HotspotSnippetContainer
2893 "analysisDate": "2018-01-01",
2894 "excludedFromPurge": true,
2896 "name": "branch-6.7",
2901 "breadcrumbs": Array [],
2902 "key": "my-project",
2903 "name": "MyProject",
2905 "qualityGate": Object {
2908 "name": "Sonar way",
2910 "qualityProfiles": Array [
2915 "name": "Sonar way",
2923 "assignee": undefined,
2924 "assigneeUser": Object {
2927 "login": "assignee",
2931 "authorUser": Object {
2937 "canChangeStatus": true,
2938 "changelog": Array [],
2939 "comment": Array [],
2940 "component": Object {
2941 "breadcrumbs": Array [],
2942 "key": "my-project",
2943 "name": "MyProject",
2945 "qualityGate": Object {
2948 "name": "Sonar way",
2950 "qualityProfiles": Array [
2955 "name": "Sonar way",
2960 "creationDate": "2013-05-13T17:55:41+0200",
2961 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2963 "message": "'3' is a magic number.",
2965 "breadcrumbs": Array [],
2966 "key": "my-project",
2967 "name": "MyProject",
2969 "qualityGate": Object {
2972 "name": "Sonar way",
2974 "qualityProfiles": Array [
2979 "name": "Sonar way",
2984 "resolution": "FIXED",
2986 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2987 "key": "squid:S2077",
2988 "name": "That rule",
2989 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2990 "securityCategory": "sql-injection",
2991 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2992 "vulnerabilityProbability": "HIGH",
2994 "status": "REVIEWED",
2995 "textRange": Object {
3001 "updateDate": "2013-05-13T17:55:42+0200",
3006 "login": "assignee",
3022 "assignee": undefined,
3023 "assigneeUser": Object {
3026 "login": "assignee",
3030 "authorUser": Object {
3036 "canChangeStatus": true,
3037 "changelog": Array [],
3038 "comment": Array [],
3039 "component": Object {
3040 "breadcrumbs": Array [],
3041 "key": "my-project",
3042 "name": "MyProject",
3044 "qualityGate": Object {
3047 "name": "Sonar way",
3049 "qualityProfiles": Array [
3054 "name": "Sonar way",
3059 "creationDate": "2013-05-13T17:55:41+0200",
3060 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
3062 "message": "'3' is a magic number.",
3064 "breadcrumbs": Array [],
3065 "key": "my-project",
3066 "name": "MyProject",
3068 "qualityGate": Object {
3071 "name": "Sonar way",
3073 "qualityProfiles": Array [
3078 "name": "Sonar way",
3083 "resolution": "FIXED",
3085 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
3086 "key": "squid:S2077",
3087 "name": "That rule",
3088 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
3089 "securityCategory": "sql-injection",
3090 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
3091 "vulnerabilityProbability": "HIGH",
3093 "status": "REVIEWED",
3094 "textRange": Object {
3100 "updateDate": "2013-05-13T17:55:42+0200",
3105 "login": "assignee",
3118 <HotspotReviewHistoryAndComments
3124 commentVisible={false}
3127 "isLoggedIn": false,
3132 "assignee": undefined,
3133 "assigneeUser": Object {
3136 "login": "assignee",
3140 "authorUser": Object {
3146 "canChangeStatus": true,
3147 "changelog": Array [],
3148 "comment": Array [],
3149 "component": Object {
3150 "breadcrumbs": Array [],
3151 "key": "my-project",
3152 "name": "MyProject",
3154 "qualityGate": Object {
3157 "name": "Sonar way",
3159 "qualityProfiles": Array [
3164 "name": "Sonar way",
3169 "creationDate": "2013-05-13T17:55:41+0200",
3170 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
3172 "message": "'3' is a magic number.",
3174 "breadcrumbs": Array [],
3175 "key": "my-project",
3176 "name": "MyProject",
3178 "qualityGate": Object {
3181 "name": "Sonar way",
3183 "qualityProfiles": Array [
3188 "name": "Sonar way",
3193 "resolution": "FIXED",
3195 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
3196 "key": "squid:S2077",
3197 "name": "That rule",
3198 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
3199 "securityCategory": "sql-injection",
3200 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
3201 "vulnerabilityProbability": "HIGH",
3203 "status": "REVIEWED",
3204 "textRange": Object {
3210 "updateDate": "2013-05-13T17:55:42+0200",
3215 "login": "assignee",
3227 onCloseComment={[MockFunction]}
3228 onCommentUpdate={[MockFunction]}
3229 onOpenComment={[MockFunction]}