1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
8 className="big-padded hotspot-content"
11 className="huge-spacer-bottom display-flex-space-between"
14 className="big big-spacer-right"
16 '3' is a magic number.
19 className="display-flex-row flex-0"
22 className="dropdown spacer-right flex-1-0-auto"
25 onClick={[MockFunction]}
31 className="dropdown spacer-right flex-1-0-auto"
33 <HotspotOpenInIdeButton
34 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
35 projectKey="my-project"
39 className="flex-1-0-auto"
40 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
43 className="spacer-right"
46 hotspots.get_permalink
52 className="huge-spacer-bottom display-flex-row"
55 className="hotspot-information display-flex-column display-flex-space-between"
58 className="display-flex-center"
61 className="big-spacer-right"
72 className="display-flex-center"
75 className="big-spacer-right"
77 hotspots.risk_exposure
80 className="hotspot-risk-badge HIGH"
86 className="display-flex-center"
89 className="big-spacer-right"
94 <Connect(withCurrentUser(Assignee))
97 "assignee": "assignee",
98 "assigneeUser": Object {
105 "authorUser": Object {
111 "canChangeStatus": true,
112 "changelog": Array [],
114 "component": Object {
115 "breadcrumbs": Array [],
119 "qualityGate": Object {
124 "qualityProfiles": Array [
134 "creationDate": "2013-05-13T17:55:41+0200",
135 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
137 "message": "'3' is a magic number.",
139 "breadcrumbs": Array [],
143 "qualityGate": Object {
148 "qualityProfiles": Array [
158 "resolution": "FIXED",
160 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
161 "key": "squid:S2077",
163 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
164 "securityCategory": "sql-injection",
165 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
166 "vulnerabilityProbability": "HIGH",
168 "status": "REVIEWED",
169 "textRange": Object {
175 "updateDate": "2013-05-13T17:55:42+0200",
192 onAssigneeChange={[MockFunction]}
198 className="huge-spacer-left"
200 <Connect(withCurrentUser(Status))
203 "assignee": "assignee",
204 "assigneeUser": Object {
211 "authorUser": Object {
217 "canChangeStatus": true,
218 "changelog": Array [],
220 "component": Object {
221 "breadcrumbs": Array [],
225 "qualityGate": Object {
230 "qualityProfiles": Array [
240 "creationDate": "2013-05-13T17:55:41+0200",
241 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
243 "message": "'3' is a magic number.",
245 "breadcrumbs": Array [],
249 "qualityGate": Object {
254 "qualityProfiles": Array [
264 "resolution": "FIXED",
266 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
267 "key": "squid:S2077",
269 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
270 "securityCategory": "sql-injection",
271 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
272 "vulnerabilityProbability": "HIGH",
274 "status": "REVIEWED",
275 "textRange": Object {
281 "updateDate": "2013-05-13T17:55:42+0200",
298 onStatusChange={[MockFunction]}
302 <HotspotSnippetContainer
305 "analysisDate": "2018-01-01",
306 "excludedFromPurge": true,
308 "name": "branch-6.7",
313 "breadcrumbs": Array [],
317 "qualityGate": Object {
322 "qualityProfiles": Array [
335 "assignee": "assignee",
336 "assigneeUser": Object {
343 "authorUser": Object {
349 "canChangeStatus": true,
350 "changelog": Array [],
352 "component": Object {
353 "breadcrumbs": Array [],
357 "qualityGate": Object {
362 "qualityProfiles": Array [
372 "creationDate": "2013-05-13T17:55:41+0200",
373 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
375 "message": "'3' is a magic number.",
377 "breadcrumbs": Array [],
381 "qualityGate": Object {
386 "qualityProfiles": Array [
396 "resolution": "FIXED",
398 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
399 "key": "squid:S2077",
401 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
402 "securityCategory": "sql-injection",
403 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
404 "vulnerabilityProbability": "HIGH",
406 "status": "REVIEWED",
407 "textRange": Object {
413 "updateDate": "2013-05-13T17:55:42+0200",
434 "assignee": "assignee",
435 "assigneeUser": Object {
442 "authorUser": Object {
448 "canChangeStatus": true,
449 "changelog": Array [],
451 "component": Object {
452 "breadcrumbs": Array [],
456 "qualityGate": Object {
461 "qualityProfiles": Array [
471 "creationDate": "2013-05-13T17:55:41+0200",
472 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
474 "message": "'3' is a magic number.",
476 "breadcrumbs": Array [],
480 "qualityGate": Object {
485 "qualityProfiles": Array [
495 "resolution": "FIXED",
497 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
498 "key": "squid:S2077",
500 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
501 "securityCategory": "sql-injection",
502 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
503 "vulnerabilityProbability": "HIGH",
505 "status": "REVIEWED",
506 "textRange": Object {
512 "updateDate": "2013-05-13T17:55:42+0200",
530 <HotspotReviewHistoryAndComments
536 commentVisible={false}
544 "assignee": "assignee",
545 "assigneeUser": Object {
552 "authorUser": Object {
558 "canChangeStatus": true,
559 "changelog": Array [],
561 "component": Object {
562 "breadcrumbs": Array [],
566 "qualityGate": Object {
571 "qualityProfiles": Array [
581 "creationDate": "2013-05-13T17:55:41+0200",
582 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
584 "message": "'3' is a magic number.",
586 "breadcrumbs": Array [],
590 "qualityGate": Object {
595 "qualityProfiles": Array [
605 "resolution": "FIXED",
607 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
608 "key": "squid:S2077",
610 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
611 "securityCategory": "sql-injection",
612 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
613 "vulnerabilityProbability": "HIGH",
615 "status": "REVIEWED",
616 "textRange": Object {
622 "updateDate": "2013-05-13T17:55:42+0200",
639 onCloseComment={[MockFunction]}
640 onCommentUpdate={[MockFunction]}
641 onOpenComment={[MockFunction]}
647 exports[`should render correctly: anonymous user 1`] = `
652 className="big-padded hotspot-content"
655 className="huge-spacer-bottom display-flex-space-between"
658 className="big big-spacer-right"
660 '3' is a magic number.
663 className="display-flex-row flex-0"
666 className="dropdown spacer-right flex-1-0-auto"
669 onClick={[MockFunction]}
671 hotspots.comment.open
675 className="dropdown spacer-right flex-1-0-auto"
677 <HotspotOpenInIdeButton
678 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
679 projectKey="my-project"
683 className="flex-1-0-auto"
684 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
687 className="spacer-right"
690 hotspots.get_permalink
696 className="huge-spacer-bottom display-flex-row"
699 className="hotspot-information display-flex-column display-flex-space-between"
702 className="display-flex-center"
705 className="big-spacer-right"
716 className="display-flex-center"
719 className="big-spacer-right"
721 hotspots.risk_exposure
724 className="hotspot-risk-badge HIGH"
730 className="display-flex-center"
733 className="big-spacer-right"
738 <Connect(withCurrentUser(Assignee))
741 "assignee": "assignee",
742 "assigneeUser": Object {
749 "authorUser": Object {
755 "canChangeStatus": true,
756 "changelog": Array [],
758 "component": Object {
759 "breadcrumbs": Array [],
763 "qualityGate": Object {
768 "qualityProfiles": Array [
778 "creationDate": "2013-05-13T17:55:41+0200",
779 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
781 "message": "'3' is a magic number.",
783 "breadcrumbs": Array [],
787 "qualityGate": Object {
792 "qualityProfiles": Array [
802 "resolution": "FIXED",
804 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
805 "key": "squid:S2077",
807 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
808 "securityCategory": "sql-injection",
809 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
810 "vulnerabilityProbability": "HIGH",
812 "status": "REVIEWED",
813 "textRange": Object {
819 "updateDate": "2013-05-13T17:55:42+0200",
836 onAssigneeChange={[MockFunction]}
842 className="huge-spacer-left"
844 <Connect(withCurrentUser(Status))
847 "assignee": "assignee",
848 "assigneeUser": Object {
855 "authorUser": Object {
861 "canChangeStatus": true,
862 "changelog": Array [],
864 "component": Object {
865 "breadcrumbs": Array [],
869 "qualityGate": Object {
874 "qualityProfiles": Array [
884 "creationDate": "2013-05-13T17:55:41+0200",
885 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
887 "message": "'3' is a magic number.",
889 "breadcrumbs": Array [],
893 "qualityGate": Object {
898 "qualityProfiles": Array [
908 "resolution": "FIXED",
910 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
911 "key": "squid:S2077",
913 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
914 "securityCategory": "sql-injection",
915 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
916 "vulnerabilityProbability": "HIGH",
918 "status": "REVIEWED",
919 "textRange": Object {
925 "updateDate": "2013-05-13T17:55:42+0200",
942 onStatusChange={[MockFunction]}
946 <HotspotSnippetContainer
949 "analysisDate": "2018-01-01",
950 "excludedFromPurge": true,
952 "name": "branch-6.7",
957 "breadcrumbs": Array [],
961 "qualityGate": Object {
966 "qualityProfiles": Array [
979 "assignee": "assignee",
980 "assigneeUser": Object {
987 "authorUser": Object {
993 "canChangeStatus": true,
994 "changelog": Array [],
996 "component": Object {
997 "breadcrumbs": Array [],
1001 "qualityGate": Object {
1004 "name": "Sonar way",
1006 "qualityProfiles": Array [
1011 "name": "Sonar way",
1016 "creationDate": "2013-05-13T17:55:41+0200",
1017 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1019 "message": "'3' is a magic number.",
1021 "breadcrumbs": Array [],
1022 "key": "my-project",
1023 "name": "MyProject",
1025 "qualityGate": Object {
1028 "name": "Sonar way",
1030 "qualityProfiles": Array [
1035 "name": "Sonar way",
1040 "resolution": "FIXED",
1042 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1043 "key": "squid:S2077",
1044 "name": "That rule",
1045 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1046 "securityCategory": "sql-injection",
1047 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1048 "vulnerabilityProbability": "HIGH",
1050 "status": "REVIEWED",
1051 "textRange": Object {
1057 "updateDate": "2013-05-13T17:55:42+0200",
1062 "login": "assignee",
1078 "assignee": "assignee",
1079 "assigneeUser": Object {
1082 "login": "assignee",
1086 "authorUser": Object {
1092 "canChangeStatus": true,
1093 "changelog": Array [],
1094 "comment": Array [],
1095 "component": Object {
1096 "breadcrumbs": Array [],
1097 "key": "my-project",
1098 "name": "MyProject",
1100 "qualityGate": Object {
1103 "name": "Sonar way",
1105 "qualityProfiles": Array [
1110 "name": "Sonar way",
1115 "creationDate": "2013-05-13T17:55:41+0200",
1116 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1118 "message": "'3' is a magic number.",
1120 "breadcrumbs": Array [],
1121 "key": "my-project",
1122 "name": "MyProject",
1124 "qualityGate": Object {
1127 "name": "Sonar way",
1129 "qualityProfiles": Array [
1134 "name": "Sonar way",
1139 "resolution": "FIXED",
1141 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1142 "key": "squid:S2077",
1143 "name": "That rule",
1144 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1145 "securityCategory": "sql-injection",
1146 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1147 "vulnerabilityProbability": "HIGH",
1149 "status": "REVIEWED",
1150 "textRange": Object {
1156 "updateDate": "2013-05-13T17:55:42+0200",
1161 "login": "assignee",
1174 <HotspotReviewHistoryAndComments
1180 commentVisible={false}
1183 "isLoggedIn": false,
1188 "assignee": "assignee",
1189 "assigneeUser": Object {
1192 "login": "assignee",
1196 "authorUser": Object {
1202 "canChangeStatus": true,
1203 "changelog": Array [],
1204 "comment": Array [],
1205 "component": Object {
1206 "breadcrumbs": Array [],
1207 "key": "my-project",
1208 "name": "MyProject",
1210 "qualityGate": Object {
1213 "name": "Sonar way",
1215 "qualityProfiles": Array [
1220 "name": "Sonar way",
1225 "creationDate": "2013-05-13T17:55:41+0200",
1226 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1228 "message": "'3' is a magic number.",
1230 "breadcrumbs": Array [],
1231 "key": "my-project",
1232 "name": "MyProject",
1234 "qualityGate": Object {
1237 "name": "Sonar way",
1239 "qualityProfiles": Array [
1244 "name": "Sonar way",
1249 "resolution": "FIXED",
1251 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1252 "key": "squid:S2077",
1253 "name": "That rule",
1254 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1255 "securityCategory": "sql-injection",
1256 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1257 "vulnerabilityProbability": "HIGH",
1259 "status": "REVIEWED",
1260 "textRange": Object {
1266 "updateDate": "2013-05-13T17:55:42+0200",
1271 "login": "assignee",
1283 onCloseComment={[MockFunction]}
1284 onCommentUpdate={[MockFunction]}
1285 onOpenComment={[MockFunction]}
1291 exports[`should render correctly: assignee without name 1`] = `
1296 className="big-padded hotspot-content"
1299 className="huge-spacer-bottom display-flex-space-between"
1302 className="big big-spacer-right"
1304 '3' is a magic number.
1307 className="display-flex-row flex-0"
1310 className="dropdown spacer-right flex-1-0-auto"
1313 onClick={[MockFunction]}
1315 hotspots.comment.open
1319 className="dropdown spacer-right flex-1-0-auto"
1321 <HotspotOpenInIdeButton
1322 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
1323 projectKey="my-project"
1327 className="flex-1-0-auto"
1328 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
1331 className="spacer-right"
1334 hotspots.get_permalink
1340 className="huge-spacer-bottom display-flex-row"
1343 className="hotspot-information display-flex-column display-flex-space-between"
1346 className="display-flex-center"
1349 className="big-spacer-right"
1360 className="display-flex-center"
1363 className="big-spacer-right"
1365 hotspots.risk_exposure
1368 className="hotspot-risk-badge HIGH"
1374 className="display-flex-center"
1377 className="big-spacer-right"
1382 <Connect(withCurrentUser(Assignee))
1385 "assignee": "assignee",
1386 "assigneeUser": Object {
1389 "login": "assignee_login",
1393 "authorUser": Object {
1399 "canChangeStatus": true,
1400 "changelog": Array [],
1401 "comment": Array [],
1402 "component": Object {
1403 "breadcrumbs": Array [],
1404 "key": "my-project",
1405 "name": "MyProject",
1407 "qualityGate": Object {
1410 "name": "Sonar way",
1412 "qualityProfiles": Array [
1417 "name": "Sonar way",
1422 "creationDate": "2013-05-13T17:55:41+0200",
1423 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1425 "message": "'3' is a magic number.",
1427 "breadcrumbs": Array [],
1428 "key": "my-project",
1429 "name": "MyProject",
1431 "qualityGate": Object {
1434 "name": "Sonar way",
1436 "qualityProfiles": Array [
1441 "name": "Sonar way",
1446 "resolution": "FIXED",
1448 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1449 "key": "squid:S2077",
1450 "name": "That rule",
1451 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1452 "securityCategory": "sql-injection",
1453 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1454 "vulnerabilityProbability": "HIGH",
1456 "status": "REVIEWED",
1457 "textRange": Object {
1463 "updateDate": "2013-05-13T17:55:42+0200",
1468 "login": "assignee",
1480 onAssigneeChange={[MockFunction]}
1486 className="huge-spacer-left"
1488 <Connect(withCurrentUser(Status))
1491 "assignee": "assignee",
1492 "assigneeUser": Object {
1495 "login": "assignee_login",
1499 "authorUser": Object {
1505 "canChangeStatus": true,
1506 "changelog": Array [],
1507 "comment": Array [],
1508 "component": Object {
1509 "breadcrumbs": Array [],
1510 "key": "my-project",
1511 "name": "MyProject",
1513 "qualityGate": Object {
1516 "name": "Sonar way",
1518 "qualityProfiles": Array [
1523 "name": "Sonar way",
1528 "creationDate": "2013-05-13T17:55:41+0200",
1529 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1531 "message": "'3' is a magic number.",
1533 "breadcrumbs": Array [],
1534 "key": "my-project",
1535 "name": "MyProject",
1537 "qualityGate": Object {
1540 "name": "Sonar way",
1542 "qualityProfiles": Array [
1547 "name": "Sonar way",
1552 "resolution": "FIXED",
1554 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1555 "key": "squid:S2077",
1556 "name": "That rule",
1557 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1558 "securityCategory": "sql-injection",
1559 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1560 "vulnerabilityProbability": "HIGH",
1562 "status": "REVIEWED",
1563 "textRange": Object {
1569 "updateDate": "2013-05-13T17:55:42+0200",
1574 "login": "assignee",
1586 onStatusChange={[MockFunction]}
1590 <HotspotSnippetContainer
1593 "analysisDate": "2018-01-01",
1594 "excludedFromPurge": true,
1596 "name": "branch-6.7",
1601 "breadcrumbs": Array [],
1602 "key": "my-project",
1603 "name": "MyProject",
1605 "qualityGate": Object {
1608 "name": "Sonar way",
1610 "qualityProfiles": Array [
1615 "name": "Sonar way",
1623 "assignee": "assignee",
1624 "assigneeUser": Object {
1627 "login": "assignee_login",
1631 "authorUser": Object {
1637 "canChangeStatus": true,
1638 "changelog": Array [],
1639 "comment": Array [],
1640 "component": Object {
1641 "breadcrumbs": Array [],
1642 "key": "my-project",
1643 "name": "MyProject",
1645 "qualityGate": Object {
1648 "name": "Sonar way",
1650 "qualityProfiles": Array [
1655 "name": "Sonar way",
1660 "creationDate": "2013-05-13T17:55:41+0200",
1661 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1663 "message": "'3' is a magic number.",
1665 "breadcrumbs": Array [],
1666 "key": "my-project",
1667 "name": "MyProject",
1669 "qualityGate": Object {
1672 "name": "Sonar way",
1674 "qualityProfiles": Array [
1679 "name": "Sonar way",
1684 "resolution": "FIXED",
1686 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1687 "key": "squid:S2077",
1688 "name": "That rule",
1689 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1690 "securityCategory": "sql-injection",
1691 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1692 "vulnerabilityProbability": "HIGH",
1694 "status": "REVIEWED",
1695 "textRange": Object {
1701 "updateDate": "2013-05-13T17:55:42+0200",
1706 "login": "assignee",
1722 "assignee": "assignee",
1723 "assigneeUser": Object {
1726 "login": "assignee_login",
1730 "authorUser": Object {
1736 "canChangeStatus": true,
1737 "changelog": Array [],
1738 "comment": Array [],
1739 "component": Object {
1740 "breadcrumbs": Array [],
1741 "key": "my-project",
1742 "name": "MyProject",
1744 "qualityGate": Object {
1747 "name": "Sonar way",
1749 "qualityProfiles": Array [
1754 "name": "Sonar way",
1759 "creationDate": "2013-05-13T17:55:41+0200",
1760 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1762 "message": "'3' is a magic number.",
1764 "breadcrumbs": Array [],
1765 "key": "my-project",
1766 "name": "MyProject",
1768 "qualityGate": Object {
1771 "name": "Sonar way",
1773 "qualityProfiles": Array [
1778 "name": "Sonar way",
1783 "resolution": "FIXED",
1785 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1786 "key": "squid:S2077",
1787 "name": "That rule",
1788 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1789 "securityCategory": "sql-injection",
1790 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1791 "vulnerabilityProbability": "HIGH",
1793 "status": "REVIEWED",
1794 "textRange": Object {
1800 "updateDate": "2013-05-13T17:55:42+0200",
1805 "login": "assignee",
1818 <HotspotReviewHistoryAndComments
1824 commentVisible={false}
1827 "isLoggedIn": false,
1832 "assignee": "assignee",
1833 "assigneeUser": Object {
1836 "login": "assignee_login",
1840 "authorUser": Object {
1846 "canChangeStatus": true,
1847 "changelog": Array [],
1848 "comment": Array [],
1849 "component": Object {
1850 "breadcrumbs": Array [],
1851 "key": "my-project",
1852 "name": "MyProject",
1854 "qualityGate": Object {
1857 "name": "Sonar way",
1859 "qualityProfiles": Array [
1864 "name": "Sonar way",
1869 "creationDate": "2013-05-13T17:55:41+0200",
1870 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
1872 "message": "'3' is a magic number.",
1874 "breadcrumbs": Array [],
1875 "key": "my-project",
1876 "name": "MyProject",
1878 "qualityGate": Object {
1881 "name": "Sonar way",
1883 "qualityProfiles": Array [
1888 "name": "Sonar way",
1893 "resolution": "FIXED",
1895 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
1896 "key": "squid:S2077",
1897 "name": "That rule",
1898 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
1899 "securityCategory": "sql-injection",
1900 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
1901 "vulnerabilityProbability": "HIGH",
1903 "status": "REVIEWED",
1904 "textRange": Object {
1910 "updateDate": "2013-05-13T17:55:42+0200",
1915 "login": "assignee",
1927 onCloseComment={[MockFunction]}
1928 onCommentUpdate={[MockFunction]}
1929 onOpenComment={[MockFunction]}
1935 exports[`should render correctly: deleted assignee 1`] = `
1940 className="big-padded hotspot-content"
1943 className="huge-spacer-bottom display-flex-space-between"
1946 className="big big-spacer-right"
1948 '3' is a magic number.
1951 className="display-flex-row flex-0"
1954 className="dropdown spacer-right flex-1-0-auto"
1957 onClick={[MockFunction]}
1959 hotspots.comment.open
1963 className="dropdown spacer-right flex-1-0-auto"
1965 <HotspotOpenInIdeButton
1966 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
1967 projectKey="my-project"
1971 className="flex-1-0-auto"
1972 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
1975 className="spacer-right"
1978 hotspots.get_permalink
1984 className="huge-spacer-bottom display-flex-row"
1987 className="hotspot-information display-flex-column display-flex-space-between"
1990 className="display-flex-center"
1993 className="big-spacer-right"
2004 className="display-flex-center"
2007 className="big-spacer-right"
2009 hotspots.risk_exposure
2012 className="hotspot-risk-badge HIGH"
2018 className="display-flex-center"
2021 className="big-spacer-right"
2026 <Connect(withCurrentUser(Assignee))
2029 "assignee": "assignee",
2030 "assigneeUser": Object {
2033 "login": "john.doe",
2037 "authorUser": Object {
2043 "canChangeStatus": true,
2044 "changelog": Array [],
2045 "comment": Array [],
2046 "component": Object {
2047 "breadcrumbs": Array [],
2048 "key": "my-project",
2049 "name": "MyProject",
2051 "qualityGate": Object {
2054 "name": "Sonar way",
2056 "qualityProfiles": Array [
2061 "name": "Sonar way",
2066 "creationDate": "2013-05-13T17:55:41+0200",
2067 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2069 "message": "'3' is a magic number.",
2071 "breadcrumbs": Array [],
2072 "key": "my-project",
2073 "name": "MyProject",
2075 "qualityGate": Object {
2078 "name": "Sonar way",
2080 "qualityProfiles": Array [
2085 "name": "Sonar way",
2090 "resolution": "FIXED",
2092 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2093 "key": "squid:S2077",
2094 "name": "That rule",
2095 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2096 "securityCategory": "sql-injection",
2097 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2098 "vulnerabilityProbability": "HIGH",
2100 "status": "REVIEWED",
2101 "textRange": Object {
2107 "updateDate": "2013-05-13T17:55:42+0200",
2112 "login": "assignee",
2124 onAssigneeChange={[MockFunction]}
2130 className="huge-spacer-left"
2132 <Connect(withCurrentUser(Status))
2135 "assignee": "assignee",
2136 "assigneeUser": Object {
2139 "login": "john.doe",
2143 "authorUser": Object {
2149 "canChangeStatus": true,
2150 "changelog": Array [],
2151 "comment": Array [],
2152 "component": Object {
2153 "breadcrumbs": Array [],
2154 "key": "my-project",
2155 "name": "MyProject",
2157 "qualityGate": Object {
2160 "name": "Sonar way",
2162 "qualityProfiles": Array [
2167 "name": "Sonar way",
2172 "creationDate": "2013-05-13T17:55:41+0200",
2173 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2175 "message": "'3' is a magic number.",
2177 "breadcrumbs": Array [],
2178 "key": "my-project",
2179 "name": "MyProject",
2181 "qualityGate": Object {
2184 "name": "Sonar way",
2186 "qualityProfiles": Array [
2191 "name": "Sonar way",
2196 "resolution": "FIXED",
2198 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2199 "key": "squid:S2077",
2200 "name": "That rule",
2201 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2202 "securityCategory": "sql-injection",
2203 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2204 "vulnerabilityProbability": "HIGH",
2206 "status": "REVIEWED",
2207 "textRange": Object {
2213 "updateDate": "2013-05-13T17:55:42+0200",
2218 "login": "assignee",
2230 onStatusChange={[MockFunction]}
2234 <HotspotSnippetContainer
2237 "analysisDate": "2018-01-01",
2238 "excludedFromPurge": true,
2240 "name": "branch-6.7",
2245 "breadcrumbs": Array [],
2246 "key": "my-project",
2247 "name": "MyProject",
2249 "qualityGate": Object {
2252 "name": "Sonar way",
2254 "qualityProfiles": Array [
2259 "name": "Sonar way",
2267 "assignee": "assignee",
2268 "assigneeUser": Object {
2271 "login": "john.doe",
2275 "authorUser": Object {
2281 "canChangeStatus": true,
2282 "changelog": Array [],
2283 "comment": Array [],
2284 "component": Object {
2285 "breadcrumbs": Array [],
2286 "key": "my-project",
2287 "name": "MyProject",
2289 "qualityGate": Object {
2292 "name": "Sonar way",
2294 "qualityProfiles": Array [
2299 "name": "Sonar way",
2304 "creationDate": "2013-05-13T17:55:41+0200",
2305 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2307 "message": "'3' is a magic number.",
2309 "breadcrumbs": Array [],
2310 "key": "my-project",
2311 "name": "MyProject",
2313 "qualityGate": Object {
2316 "name": "Sonar way",
2318 "qualityProfiles": Array [
2323 "name": "Sonar way",
2328 "resolution": "FIXED",
2330 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2331 "key": "squid:S2077",
2332 "name": "That rule",
2333 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2334 "securityCategory": "sql-injection",
2335 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2336 "vulnerabilityProbability": "HIGH",
2338 "status": "REVIEWED",
2339 "textRange": Object {
2345 "updateDate": "2013-05-13T17:55:42+0200",
2350 "login": "assignee",
2366 "assignee": "assignee",
2367 "assigneeUser": Object {
2370 "login": "john.doe",
2374 "authorUser": Object {
2380 "canChangeStatus": true,
2381 "changelog": Array [],
2382 "comment": Array [],
2383 "component": Object {
2384 "breadcrumbs": Array [],
2385 "key": "my-project",
2386 "name": "MyProject",
2388 "qualityGate": Object {
2391 "name": "Sonar way",
2393 "qualityProfiles": Array [
2398 "name": "Sonar way",
2403 "creationDate": "2013-05-13T17:55:41+0200",
2404 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2406 "message": "'3' is a magic number.",
2408 "breadcrumbs": Array [],
2409 "key": "my-project",
2410 "name": "MyProject",
2412 "qualityGate": Object {
2415 "name": "Sonar way",
2417 "qualityProfiles": Array [
2422 "name": "Sonar way",
2427 "resolution": "FIXED",
2429 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2430 "key": "squid:S2077",
2431 "name": "That rule",
2432 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2433 "securityCategory": "sql-injection",
2434 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2435 "vulnerabilityProbability": "HIGH",
2437 "status": "REVIEWED",
2438 "textRange": Object {
2444 "updateDate": "2013-05-13T17:55:42+0200",
2449 "login": "assignee",
2462 <HotspotReviewHistoryAndComments
2468 commentVisible={false}
2471 "isLoggedIn": false,
2476 "assignee": "assignee",
2477 "assigneeUser": Object {
2480 "login": "john.doe",
2484 "authorUser": Object {
2490 "canChangeStatus": true,
2491 "changelog": Array [],
2492 "comment": Array [],
2493 "component": Object {
2494 "breadcrumbs": Array [],
2495 "key": "my-project",
2496 "name": "MyProject",
2498 "qualityGate": Object {
2501 "name": "Sonar way",
2503 "qualityProfiles": Array [
2508 "name": "Sonar way",
2513 "creationDate": "2013-05-13T17:55:41+0200",
2514 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2516 "message": "'3' is a magic number.",
2518 "breadcrumbs": Array [],
2519 "key": "my-project",
2520 "name": "MyProject",
2522 "qualityGate": Object {
2525 "name": "Sonar way",
2527 "qualityProfiles": Array [
2532 "name": "Sonar way",
2537 "resolution": "FIXED",
2539 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2540 "key": "squid:S2077",
2541 "name": "That rule",
2542 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2543 "securityCategory": "sql-injection",
2544 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2545 "vulnerabilityProbability": "HIGH",
2547 "status": "REVIEWED",
2548 "textRange": Object {
2554 "updateDate": "2013-05-13T17:55:42+0200",
2559 "login": "assignee",
2571 onCloseComment={[MockFunction]}
2572 onCommentUpdate={[MockFunction]}
2573 onOpenComment={[MockFunction]}
2579 exports[`should render correctly: no hotspot 1`] = `
2585 exports[`should render correctly: unassigned 1`] = `
2590 className="big-padded hotspot-content"
2593 className="huge-spacer-bottom display-flex-space-between"
2596 className="big big-spacer-right"
2598 '3' is a magic number.
2601 className="display-flex-row flex-0"
2604 className="dropdown spacer-right flex-1-0-auto"
2607 onClick={[MockFunction]}
2609 hotspots.comment.open
2613 className="dropdown spacer-right flex-1-0-auto"
2615 <HotspotOpenInIdeButton
2616 hotspotKey="01fc972e-2a3c-433e-bcae-0bd7f88f5123"
2617 projectKey="my-project"
2621 className="flex-1-0-auto"
2622 copyValue="http://localhost/security_hotspots?id=my-project&branch=branch-6.7&hotspots=01fc972e-2a3c-433e-bcae-0bd7f88f5123"
2625 className="spacer-right"
2628 hotspots.get_permalink
2634 className="huge-spacer-bottom display-flex-row"
2637 className="hotspot-information display-flex-column display-flex-space-between"
2640 className="display-flex-center"
2643 className="big-spacer-right"
2654 className="display-flex-center"
2657 className="big-spacer-right"
2659 hotspots.risk_exposure
2662 className="hotspot-risk-badge HIGH"
2668 className="display-flex-center"
2671 className="big-spacer-right"
2676 <Connect(withCurrentUser(Assignee))
2679 "assignee": undefined,
2680 "assigneeUser": Object {
2683 "login": "assignee",
2687 "authorUser": Object {
2693 "canChangeStatus": true,
2694 "changelog": Array [],
2695 "comment": Array [],
2696 "component": Object {
2697 "breadcrumbs": Array [],
2698 "key": "my-project",
2699 "name": "MyProject",
2701 "qualityGate": Object {
2704 "name": "Sonar way",
2706 "qualityProfiles": Array [
2711 "name": "Sonar way",
2716 "creationDate": "2013-05-13T17:55:41+0200",
2717 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2719 "message": "'3' is a magic number.",
2721 "breadcrumbs": Array [],
2722 "key": "my-project",
2723 "name": "MyProject",
2725 "qualityGate": Object {
2728 "name": "Sonar way",
2730 "qualityProfiles": Array [
2735 "name": "Sonar way",
2740 "resolution": "FIXED",
2742 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2743 "key": "squid:S2077",
2744 "name": "That rule",
2745 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2746 "securityCategory": "sql-injection",
2747 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2748 "vulnerabilityProbability": "HIGH",
2750 "status": "REVIEWED",
2751 "textRange": Object {
2757 "updateDate": "2013-05-13T17:55:42+0200",
2762 "login": "assignee",
2774 onAssigneeChange={[MockFunction]}
2780 className="huge-spacer-left"
2782 <Connect(withCurrentUser(Status))
2785 "assignee": undefined,
2786 "assigneeUser": Object {
2789 "login": "assignee",
2793 "authorUser": Object {
2799 "canChangeStatus": true,
2800 "changelog": Array [],
2801 "comment": Array [],
2802 "component": Object {
2803 "breadcrumbs": Array [],
2804 "key": "my-project",
2805 "name": "MyProject",
2807 "qualityGate": Object {
2810 "name": "Sonar way",
2812 "qualityProfiles": Array [
2817 "name": "Sonar way",
2822 "creationDate": "2013-05-13T17:55:41+0200",
2823 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2825 "message": "'3' is a magic number.",
2827 "breadcrumbs": Array [],
2828 "key": "my-project",
2829 "name": "MyProject",
2831 "qualityGate": Object {
2834 "name": "Sonar way",
2836 "qualityProfiles": Array [
2841 "name": "Sonar way",
2846 "resolution": "FIXED",
2848 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2849 "key": "squid:S2077",
2850 "name": "That rule",
2851 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2852 "securityCategory": "sql-injection",
2853 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2854 "vulnerabilityProbability": "HIGH",
2856 "status": "REVIEWED",
2857 "textRange": Object {
2863 "updateDate": "2013-05-13T17:55:42+0200",
2868 "login": "assignee",
2880 onStatusChange={[MockFunction]}
2884 <HotspotSnippetContainer
2887 "analysisDate": "2018-01-01",
2888 "excludedFromPurge": true,
2890 "name": "branch-6.7",
2895 "breadcrumbs": Array [],
2896 "key": "my-project",
2897 "name": "MyProject",
2899 "qualityGate": Object {
2902 "name": "Sonar way",
2904 "qualityProfiles": Array [
2909 "name": "Sonar way",
2917 "assignee": undefined,
2918 "assigneeUser": Object {
2921 "login": "assignee",
2925 "authorUser": Object {
2931 "canChangeStatus": true,
2932 "changelog": Array [],
2933 "comment": Array [],
2934 "component": Object {
2935 "breadcrumbs": Array [],
2936 "key": "my-project",
2937 "name": "MyProject",
2939 "qualityGate": Object {
2942 "name": "Sonar way",
2944 "qualityProfiles": Array [
2949 "name": "Sonar way",
2954 "creationDate": "2013-05-13T17:55:41+0200",
2955 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
2957 "message": "'3' is a magic number.",
2959 "breadcrumbs": Array [],
2960 "key": "my-project",
2961 "name": "MyProject",
2963 "qualityGate": Object {
2966 "name": "Sonar way",
2968 "qualityProfiles": Array [
2973 "name": "Sonar way",
2978 "resolution": "FIXED",
2980 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
2981 "key": "squid:S2077",
2982 "name": "That rule",
2983 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
2984 "securityCategory": "sql-injection",
2985 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
2986 "vulnerabilityProbability": "HIGH",
2988 "status": "REVIEWED",
2989 "textRange": Object {
2995 "updateDate": "2013-05-13T17:55:42+0200",
3000 "login": "assignee",
3016 "assignee": undefined,
3017 "assigneeUser": Object {
3020 "login": "assignee",
3024 "authorUser": Object {
3030 "canChangeStatus": true,
3031 "changelog": Array [],
3032 "comment": Array [],
3033 "component": Object {
3034 "breadcrumbs": Array [],
3035 "key": "my-project",
3036 "name": "MyProject",
3038 "qualityGate": Object {
3041 "name": "Sonar way",
3043 "qualityProfiles": Array [
3048 "name": "Sonar way",
3053 "creationDate": "2013-05-13T17:55:41+0200",
3054 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
3056 "message": "'3' is a magic number.",
3058 "breadcrumbs": Array [],
3059 "key": "my-project",
3060 "name": "MyProject",
3062 "qualityGate": Object {
3065 "name": "Sonar way",
3067 "qualityProfiles": Array [
3072 "name": "Sonar way",
3077 "resolution": "FIXED",
3079 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
3080 "key": "squid:S2077",
3081 "name": "That rule",
3082 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
3083 "securityCategory": "sql-injection",
3084 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
3085 "vulnerabilityProbability": "HIGH",
3087 "status": "REVIEWED",
3088 "textRange": Object {
3094 "updateDate": "2013-05-13T17:55:42+0200",
3099 "login": "assignee",
3112 <HotspotReviewHistoryAndComments
3118 commentVisible={false}
3121 "isLoggedIn": false,
3126 "assignee": undefined,
3127 "assigneeUser": Object {
3130 "login": "assignee",
3134 "authorUser": Object {
3140 "canChangeStatus": true,
3141 "changelog": Array [],
3142 "comment": Array [],
3143 "component": Object {
3144 "breadcrumbs": Array [],
3145 "key": "my-project",
3146 "name": "MyProject",
3148 "qualityGate": Object {
3151 "name": "Sonar way",
3153 "qualityProfiles": Array [
3158 "name": "Sonar way",
3163 "creationDate": "2013-05-13T17:55:41+0200",
3164 "key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
3166 "message": "'3' is a magic number.",
3168 "breadcrumbs": Array [],
3169 "key": "my-project",
3170 "name": "MyProject",
3172 "qualityGate": Object {
3175 "name": "Sonar way",
3177 "qualityProfiles": Array [
3182 "name": "Sonar way",
3187 "resolution": "FIXED",
3189 "fixRecommendations": "<p>This a <strong>strong</strong> message about fixing !</p>",
3190 "key": "squid:S2077",
3191 "name": "That rule",
3192 "riskDescription": "<p>This a <strong>strong</strong> message about risk !</p>",
3193 "securityCategory": "sql-injection",
3194 "vulnerabilityDescription": "<p>This a <strong>strong</strong> message about vulnerability !</p>",
3195 "vulnerabilityProbability": "HIGH",
3197 "status": "REVIEWED",
3198 "textRange": Object {
3204 "updateDate": "2013-05-13T17:55:42+0200",
3209 "login": "assignee",
3221 onCloseComment={[MockFunction]}
3222 onCommentUpdate={[MockFunction]}
3223 onOpenComment={[MockFunction]}