1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should disable links if application has inaccessible projects 1`] = `
5 className="display-flex-center display-flex-space-between"
10 overlay="layout.all_project_must_be_accessible.qualifier.APP"
14 className="disabled-link"
22 overlay="layout.all_project_must_be_accessible.qualifier.APP"
26 className="disabled-link"
34 overlay="layout.all_project_must_be_accessible.qualifier.APP"
38 className="disabled-link"
40 layout.security_hotspots
46 overlay="layout.all_project_must_be_accessible.qualifier.APP"
50 className="disabled-link"
58 overlay="layout.all_project_must_be_accessible.qualifier.APP"
62 className="disabled-link"
70 overlay="layout.all_project_must_be_accessible.qualifier.APP"
74 className="disabled-link"
83 data-test="administration"
90 activeClassName="active"
91 onlyActiveOnIndex={false}
95 "pathname": "/application/console",
102 application_console.page
107 activeClassName="active"
108 onlyActiveOnIndex={false}
112 "pathname": "/project/deletion",
130 overlay="layout.all_project_must_be_accessible.qualifier.APP"
134 className="disabled-link"
136 application.info.title
144 exports[`should disable links if no analysis has been done 1`] = `
146 className="display-flex-center display-flex-space-between"
151 activeClassName="active"
152 onlyActiveOnIndex={false}
156 "pathname": "/dashboard",
168 overlay="layout.must_be_configured"
172 className="disabled-link"
180 overlay="layout.must_be_configured"
184 className="disabled-link"
186 layout.security_hotspots
192 overlay="layout.must_be_configured"
196 className="disabled-link"
204 overlay="layout.must_be_configured"
208 className="disabled-link"
216 overlay="layout.must_be_configured"
220 className="disabled-link"
222 project_activity.page
230 className="menu-button"
236 className="little-spacer-right"
245 exports[`should render correctly for security extensions 1`] = `
247 data-test="extensions"
254 activeClassName="active"
255 onlyActiveOnIndex={false}
259 "pathname": "/project/extension/component-bar",
278 exports[`should render correctly for security extensions 2`] = `null`;
280 exports[`should work for a branch 1`] = `
282 className="display-flex-center display-flex-space-between"
287 activeClassName="active"
288 onlyActiveOnIndex={false}
292 "pathname": "/dashboard",
305 onlyActiveOnIndex={false}
309 "pathname": "/project/issues",
323 onlyActiveOnIndex={false}
327 "pathname": "/security_hotspots",
335 layout.security_hotspots
340 onlyActiveOnIndex={false}
344 "pathname": "component_measures",
357 onlyActiveOnIndex={false}
374 onlyActiveOnIndex={false}
378 "pathname": "/project/activity",
386 project_activity.page
390 data-test="extensions"
397 activeClassName="active"
398 onlyActiveOnIndex={false}
402 "pathname": "/project/extension/component-foo",
423 data-test="administration"
430 activeClassName="active"
431 onlyActiveOnIndex={false}
435 "pathname": "/project/settings",
443 project_settings.page
448 activeClassName="active"
449 onlyActiveOnIndex={false}
453 "pathname": "/project/branches",
461 project_branch_pull_request.page
466 activeClassName="active"
467 onlyActiveOnIndex={false}
471 "pathname": "/project/baseline",
479 project_baseline.page
484 activeClassName="active"
485 onlyActiveOnIndex={false}
489 "pathname": "/project/import_export",
502 activeClassName="active"
503 onlyActiveOnIndex={false}
507 "pathname": "/project/webhooks",
520 activeClassName="active"
521 onlyActiveOnIndex={false}
525 "pathname": "/project/deletion",
544 className="menu-button"
550 className="little-spacer-right"
559 exports[`should work for a branch 2`] = `
561 className="display-flex-center display-flex-space-between"
566 activeClassName="active"
567 onlyActiveOnIndex={false}
571 "pathname": "/dashboard",
584 onlyActiveOnIndex={false}
588 "pathname": "/project/issues",
602 onlyActiveOnIndex={false}
606 "pathname": "/security_hotspots",
614 layout.security_hotspots
619 onlyActiveOnIndex={false}
623 "pathname": "component_measures",
636 onlyActiveOnIndex={false}
653 onlyActiveOnIndex={false}
657 "pathname": "/project/activity",
665 project_activity.page
669 data-test="extensions"
676 activeClassName="active"
677 onlyActiveOnIndex={false}
681 "pathname": "/project/extension/component-foo",
703 className="menu-button"
709 className="little-spacer-right"
718 exports[`should work for all qualifiers 1`] = `
720 className="display-flex-center display-flex-space-between"
725 activeClassName="active"
726 onlyActiveOnIndex={false}
730 "pathname": "/dashboard",
742 onlyActiveOnIndex={false}
746 "pathname": "/project/issues",
759 onlyActiveOnIndex={false}
763 "pathname": "/security_hotspots",
770 layout.security_hotspots
775 onlyActiveOnIndex={false}
779 "pathname": "component_measures",
791 onlyActiveOnIndex={false}
807 onlyActiveOnIndex={false}
811 "pathname": "/project/activity",
818 project_activity.page
824 data-test="administration"
831 activeClassName="active"
832 onlyActiveOnIndex={false}
836 "pathname": "/project/settings",
843 project_settings.page
848 activeClassName="active"
849 onlyActiveOnIndex={false}
853 "pathname": "/project/branches",
860 project_branch_pull_request.page
865 activeClassName="active"
866 onlyActiveOnIndex={false}
870 "pathname": "/project/baseline",
877 project_baseline.page
882 activeClassName="active"
883 onlyActiveOnIndex={false}
887 "pathname": "/project/import_export",
899 activeClassName="active"
900 onlyActiveOnIndex={false}
904 "pathname": "/project/webhooks",
916 activeClassName="active"
917 onlyActiveOnIndex={false}
921 "pathname": "/project/deletion",
939 className="menu-button"
945 className="little-spacer-right"
954 exports[`should work for all qualifiers 2`] = `
956 className="display-flex-center display-flex-space-between"
961 onlyActiveOnIndex={false}
965 "pathname": "/project/issues",
978 onlyActiveOnIndex={false}
982 "pathname": "component_measures",
994 onlyActiveOnIndex={false}
1010 onlyActiveOnIndex={false}
1014 "pathname": "/project/activity",
1021 project_activity.page
1027 data-test="administration"
1034 activeClassName="active"
1035 onlyActiveOnIndex={false}
1039 "pathname": "/project/deletion",
1059 exports[`should work for all qualifiers 3`] = `
1061 className="display-flex-center display-flex-space-between"
1066 onlyActiveOnIndex={false}
1070 "pathname": "/project/issues",
1073 "resolved": "false",
1083 onlyActiveOnIndex={false}
1087 "pathname": "component_measures",
1099 onlyActiveOnIndex={false}
1103 "pathname": "/code",
1115 onlyActiveOnIndex={false}
1119 "pathname": "/project/activity",
1126 project_activity.page
1134 exports[`should work for all qualifiers 4`] = `
1136 className="display-flex-center display-flex-space-between"
1141 activeClassName="active"
1142 onlyActiveOnIndex={false}
1146 "pathname": "/dashboard",
1158 onlyActiveOnIndex={false}
1162 "pathname": "/project/issues",
1165 "resolved": "false",
1175 onlyActiveOnIndex={false}
1179 "pathname": "/security_hotspots",
1186 layout.security_hotspots
1191 onlyActiveOnIndex={false}
1195 "pathname": "component_measures",
1207 onlyActiveOnIndex={false}
1211 "pathname": "/code",
1223 onlyActiveOnIndex={false}
1227 "pathname": "/project/activity",
1234 project_activity.page
1240 data-test="administration"
1247 activeClassName="active"
1248 onlyActiveOnIndex={false}
1252 "pathname": "/application/console",
1259 application_console.page
1264 activeClassName="active"
1265 onlyActiveOnIndex={false}
1269 "pathname": "/project/deletion",
1287 className="menu-button"
1288 onClick={[Function]}
1293 className="little-spacer-right"
1295 application.info.title
1302 exports[`should work for pull requests 1`] = `
1304 className="display-flex-center display-flex-space-between"
1309 activeClassName="active"
1310 onlyActiveOnIndex={false}
1314 "pathname": "/dashboard",
1317 "pullRequest": "1001",
1327 onlyActiveOnIndex={false}
1331 "pathname": "/project/issues",
1334 "pullRequest": "1001",
1335 "resolved": "false",
1345 onlyActiveOnIndex={false}
1349 "pathname": "/security_hotspots",
1352 "pullRequest": "1001",
1357 layout.security_hotspots
1362 onlyActiveOnIndex={false}
1366 "pathname": "component_measures",
1369 "pullRequest": "1001",
1379 onlyActiveOnIndex={false}
1383 "pathname": "/code",
1386 "pullRequest": "1001",
1395 data-test="extensions"
1402 activeClassName="active"
1403 onlyActiveOnIndex={false}
1407 "pathname": "/project/extension/component-foo",
1410 "pullRequest": "1001",
1430 exports[`should work for pull requests 2`] = `
1432 className="display-flex-center display-flex-space-between"
1437 activeClassName="active"
1438 onlyActiveOnIndex={false}
1442 "pathname": "/dashboard",
1445 "pullRequest": "1001",
1455 onlyActiveOnIndex={false}
1459 "pathname": "/project/issues",
1462 "pullRequest": "1001",
1463 "resolved": "false",
1473 onlyActiveOnIndex={false}
1477 "pathname": "/security_hotspots",
1480 "pullRequest": "1001",
1485 layout.security_hotspots
1490 onlyActiveOnIndex={false}
1494 "pathname": "component_measures",
1497 "pullRequest": "1001",
1507 onlyActiveOnIndex={false}
1511 "pathname": "/code",
1514 "pullRequest": "1001",
1523 data-test="extensions"
1530 activeClassName="active"
1531 onlyActiveOnIndex={false}
1535 "pathname": "/project/extension/component-foo",
1538 "pullRequest": "1001",
1558 exports[`should work with extensions 1`] = `
1560 data-test="extensions"
1567 activeClassName="active"
1568 onlyActiveOnIndex={false}
1572 "pathname": "/project/extension/component-foo",
1591 exports[`should work with extensions 2`] = `
1593 data-test="administration"
1600 activeClassName="active"
1601 onlyActiveOnIndex={false}
1605 "pathname": "/project/settings",
1612 project_settings.page
1617 activeClassName="active"
1618 onlyActiveOnIndex={false}
1622 "pathname": "/project/branches",
1629 project_branch_pull_request.page
1634 activeClassName="active"
1635 onlyActiveOnIndex={false}
1639 "pathname": "/project/baseline",
1646 project_baseline.page
1651 activeClassName="active"
1652 onlyActiveOnIndex={false}
1656 "pathname": "/project/admin/extension/foo",
1669 activeClassName="active"
1670 onlyActiveOnIndex={false}
1674 "pathname": "/project/import_export",
1686 activeClassName="active"
1687 onlyActiveOnIndex={false}
1691 "pathname": "/project/webhooks",
1703 activeClassName="active"
1704 onlyActiveOnIndex={false}
1708 "pathname": "/project/deletion",
1726 exports[`should work with multiple extensions 1`] = `
1728 data-test="extensions"
1735 activeClassName="active"
1736 onlyActiveOnIndex={false}
1740 "pathname": "/project/extension/component-foo",
1753 activeClassName="active"
1754 onlyActiveOnIndex={false}
1758 "pathname": "/project/extension/component-bar",
1777 exports[`should work with multiple extensions 2`] = `
1779 data-test="administration"
1786 activeClassName="active"
1787 onlyActiveOnIndex={false}
1791 "pathname": "/project/settings",
1798 project_settings.page
1803 activeClassName="active"
1804 onlyActiveOnIndex={false}
1808 "pathname": "/project/branches",
1815 project_branch_pull_request.page
1820 activeClassName="active"
1821 onlyActiveOnIndex={false}
1825 "pathname": "/project/baseline",
1832 project_baseline.page
1837 activeClassName="active"
1838 onlyActiveOnIndex={false}
1842 "pathname": "/project/admin/extension/foo",
1855 activeClassName="active"
1856 onlyActiveOnIndex={false}
1860 "pathname": "/project/admin/extension/bar",
1873 activeClassName="active"
1874 onlyActiveOnIndex={false}
1878 "pathname": "/project/import_export",
1890 activeClassName="active"
1891 onlyActiveOnIndex={false}
1895 "pathname": "/project/webhooks",
1907 activeClassName="active"
1908 onlyActiveOnIndex={false}
1912 "pathname": "/project/deletion",