1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should correctly handle a WS failure 1`] = `
5 className="page page-limited"
13 exports[`should render correctly for a failed QG 1`] = `
15 className="page page-limited"
18 className="pr-overview has-conditions"
21 className="display-flex-row"
24 className="pr-overview-quality-gate big-spacer-right"
27 className="spacer-bottom small"
31 className="spacer-left"
35 <LargeQualityGateBadge
38 "breadcrumbs": Array [],
41 "organization": "foo",
43 "qualityGate": Object {
48 "qualityProfiles": Array [
63 className="pr-overview-failed-conditions big-spacer-right"
66 className="spacer-bottom small"
68 overview.failed_conditions
70 <QualityGateConditions
73 "analysisDate": "2018-01-01",
75 "branch": "feature/foo/bar",
78 "title": "Foo Bar feature",
84 "breadcrumbs": Array [],
87 "organization": "foo",
89 "qualityGate": Object {
94 "qualityProfiles": Array [
111 "metric": "new_code_smells",
120 className="pr-overview-measurements flex-1"
123 className="spacer-bottom small"
128 className="pr-overview-measurements-row display-flex-row"
132 className="pr-overview-measurements-value flex-1 small display-flex-center"
137 "analysisDate": "2018-01-01",
139 "branch": "feature/foo/bar",
142 "title": "Foo Bar feature",
145 className="overview-domain-measure-value"
148 "breadcrumbs": Array [],
151 "organization": "foo",
153 "qualityGate": Object {
158 "qualityProfiles": Array [
173 "metric": "new_bugs ",
185 "metric": "new_vulnerabilities",
197 "metric": "new_code_smells",
209 "metric": "new_security_hotspots",
225 className="pr-overview-measurements-rating display-flex-center"
230 "analysisDate": "2018-01-01",
232 "branch": "feature/foo/bar",
235 "title": "Foo Bar feature",
240 "breadcrumbs": Array [],
243 "organization": "foo",
245 "qualityGate": Object {
250 "qualityProfiles": Array [
265 "metric": "new_bugs ",
277 "metric": "new_vulnerabilities",
289 "metric": "new_code_smells",
301 "metric": "new_security_hotspots",
318 className="pr-overview-measurements-row display-flex-row"
322 className="pr-overview-measurements-value flex-1 small display-flex-center"
327 "analysisDate": "2018-01-01",
329 "branch": "feature/foo/bar",
332 "title": "Foo Bar feature",
335 className="overview-domain-measure-value"
338 "breadcrumbs": Array [],
341 "organization": "foo",
343 "qualityGate": Object {
348 "qualityProfiles": Array [
363 "metric": "new_bugs ",
375 "metric": "new_vulnerabilities",
387 "metric": "new_code_smells",
399 "metric": "new_security_hotspots",
415 className="pr-overview-measurements-value flex-1 small display-flex-center"
420 "analysisDate": "2018-01-01",
422 "branch": "feature/foo/bar",
425 "title": "Foo Bar feature",
431 "breadcrumbs": Array [],
434 "organization": "foo",
436 "qualityGate": Object {
441 "qualityProfiles": Array [
452 docTooltip={Promise {}}
457 "metric": "new_bugs ",
469 "metric": "new_vulnerabilities",
481 "metric": "new_code_smells",
493 "metric": "new_security_hotspots",
505 type="SECURITY_HOTSPOT"
509 className="pr-overview-measurements-rating display-flex-center"
514 "analysisDate": "2018-01-01",
516 "branch": "feature/foo/bar",
519 "title": "Foo Bar feature",
524 "breadcrumbs": Array [],
527 "organization": "foo",
529 "qualityGate": Object {
534 "qualityProfiles": Array [
549 "metric": "new_bugs ",
561 "metric": "new_vulnerabilities",
573 "metric": "new_code_smells",
585 "metric": "new_security_hotspots",
602 className="pr-overview-measurements-row display-flex-row"
606 className="pr-overview-measurements-value flex-1 small display-flex-center"
611 "analysisDate": "2018-01-01",
613 "branch": "feature/foo/bar",
616 "title": "Foo Bar feature",
619 className="overview-domain-measure-value"
622 "breadcrumbs": Array [],
625 "organization": "foo",
627 "qualityGate": Object {
632 "qualityProfiles": Array [
647 "metric": "new_bugs ",
659 "metric": "new_vulnerabilities",
671 "metric": "new_code_smells",
683 "metric": "new_security_hotspots",
699 className="pr-overview-measurements-rating display-flex-center"
704 "analysisDate": "2018-01-01",
706 "branch": "feature/foo/bar",
709 "title": "Foo Bar feature",
714 "breadcrumbs": Array [],
717 "organization": "foo",
719 "qualityGate": Object {
724 "qualityProfiles": Array [
739 "metric": "new_bugs ",
751 "metric": "new_vulnerabilities",
763 "metric": "new_code_smells",
775 "metric": "new_security_hotspots",
792 className="pr-overview-measurements-row display-flex-row"
796 className="pr-overview-measurements-value flex-1 small display-flex-center"
801 "analysisDate": "2018-01-01",
803 "branch": "feature/foo/bar",
806 "title": "Foo Bar feature",
809 className="overview-domain-measure-value"
812 "breadcrumbs": Array [],
815 "organization": "foo",
817 "qualityGate": Object {
822 "qualityProfiles": Array [
837 "metric": "new_bugs ",
849 "metric": "new_vulnerabilities",
861 "metric": "new_code_smells",
873 "metric": "new_security_hotspots",
889 className="pr-overview-measurements-estimate"
894 "metric": "new_bugs ",
906 "metric": "new_vulnerabilities",
918 "metric": "new_code_smells",
930 "metric": "new_security_hotspots",
946 className="pr-overview-measurements-row display-flex-row"
950 className="pr-overview-measurements-value flex-1 small display-flex-center"
955 "analysisDate": "2018-01-01",
957 "branch": "feature/foo/bar",
960 "title": "Foo Bar feature",
963 className="overview-domain-measure-value"
966 "breadcrumbs": Array [],
969 "organization": "foo",
971 "qualityGate": Object {
976 "qualityProfiles": Array [
991 "metric": "new_bugs ",
1003 "metric": "new_vulnerabilities",
1015 "metric": "new_code_smells",
1027 "metric": "new_security_hotspots",
1043 className="pr-overview-measurements-estimate"
1048 "metric": "new_bugs ",
1060 "metric": "new_vulnerabilities",
1072 "metric": "new_code_smells",
1084 "metric": "new_security_hotspots",
1105 exports[`should render correctly for a passed QG 1`] = `
1107 className="page page-limited"
1110 className="pr-overview"
1113 className="display-flex-row"
1116 className="pr-overview-quality-gate big-spacer-right"
1119 className="spacer-bottom small"
1121 overview.quality_gate
1123 className="spacer-left"
1127 <LargeQualityGateBadge
1130 "breadcrumbs": Array [],
1131 "key": "my-project",
1132 "name": "MyProject",
1133 "organization": "foo",
1135 "qualityGate": Object {
1138 "name": "Sonar way",
1140 "qualityProfiles": Array [
1145 "name": "Sonar way",
1155 className="pr-overview-measurements flex-1"
1158 className="spacer-bottom small"
1163 className="pr-overview-measurements-row display-flex-row"
1167 className="pr-overview-measurements-value flex-1 small display-flex-center"
1172 "analysisDate": "2018-01-01",
1174 "branch": "feature/foo/bar",
1177 "title": "Foo Bar feature",
1180 className="overview-domain-measure-value"
1183 "breadcrumbs": Array [],
1184 "key": "my-project",
1185 "name": "MyProject",
1186 "organization": "foo",
1188 "qualityGate": Object {
1191 "name": "Sonar way",
1193 "qualityProfiles": Array [
1198 "name": "Sonar way",
1208 "metric": "new_bugs ",
1220 "metric": "new_vulnerabilities",
1232 "metric": "new_code_smells",
1244 "metric": "new_security_hotspots",
1260 className="pr-overview-measurements-rating display-flex-center"
1265 "analysisDate": "2018-01-01",
1267 "branch": "feature/foo/bar",
1270 "title": "Foo Bar feature",
1275 "breadcrumbs": Array [],
1276 "key": "my-project",
1277 "name": "MyProject",
1278 "organization": "foo",
1280 "qualityGate": Object {
1283 "name": "Sonar way",
1285 "qualityProfiles": Array [
1290 "name": "Sonar way",
1300 "metric": "new_bugs ",
1312 "metric": "new_vulnerabilities",
1324 "metric": "new_code_smells",
1336 "metric": "new_security_hotspots",
1353 className="pr-overview-measurements-row display-flex-row"
1357 className="pr-overview-measurements-value flex-1 small display-flex-center"
1362 "analysisDate": "2018-01-01",
1364 "branch": "feature/foo/bar",
1367 "title": "Foo Bar feature",
1370 className="overview-domain-measure-value"
1373 "breadcrumbs": Array [],
1374 "key": "my-project",
1375 "name": "MyProject",
1376 "organization": "foo",
1378 "qualityGate": Object {
1381 "name": "Sonar way",
1383 "qualityProfiles": Array [
1388 "name": "Sonar way",
1398 "metric": "new_bugs ",
1410 "metric": "new_vulnerabilities",
1422 "metric": "new_code_smells",
1434 "metric": "new_security_hotspots",
1446 type="VULNERABILITY"
1450 className="pr-overview-measurements-value flex-1 small display-flex-center"
1455 "analysisDate": "2018-01-01",
1457 "branch": "feature/foo/bar",
1460 "title": "Foo Bar feature",
1466 "breadcrumbs": Array [],
1467 "key": "my-project",
1468 "name": "MyProject",
1469 "organization": "foo",
1471 "qualityGate": Object {
1474 "name": "Sonar way",
1476 "qualityProfiles": Array [
1481 "name": "Sonar way",
1487 docTooltip={Promise {}}
1492 "metric": "new_bugs ",
1504 "metric": "new_vulnerabilities",
1516 "metric": "new_code_smells",
1528 "metric": "new_security_hotspots",
1540 type="SECURITY_HOTSPOT"
1544 className="pr-overview-measurements-rating display-flex-center"
1549 "analysisDate": "2018-01-01",
1551 "branch": "feature/foo/bar",
1554 "title": "Foo Bar feature",
1559 "breadcrumbs": Array [],
1560 "key": "my-project",
1561 "name": "MyProject",
1562 "organization": "foo",
1564 "qualityGate": Object {
1567 "name": "Sonar way",
1569 "qualityProfiles": Array [
1574 "name": "Sonar way",
1584 "metric": "new_bugs ",
1596 "metric": "new_vulnerabilities",
1608 "metric": "new_code_smells",
1620 "metric": "new_security_hotspots",
1632 type="VULNERABILITY"
1637 className="pr-overview-measurements-row display-flex-row"
1641 className="pr-overview-measurements-value flex-1 small display-flex-center"
1646 "analysisDate": "2018-01-01",
1648 "branch": "feature/foo/bar",
1651 "title": "Foo Bar feature",
1654 className="overview-domain-measure-value"
1657 "breadcrumbs": Array [],
1658 "key": "my-project",
1659 "name": "MyProject",
1660 "organization": "foo",
1662 "qualityGate": Object {
1665 "name": "Sonar way",
1667 "qualityProfiles": Array [
1672 "name": "Sonar way",
1682 "metric": "new_bugs ",
1694 "metric": "new_vulnerabilities",
1706 "metric": "new_code_smells",
1718 "metric": "new_security_hotspots",
1734 className="pr-overview-measurements-rating display-flex-center"
1739 "analysisDate": "2018-01-01",
1741 "branch": "feature/foo/bar",
1744 "title": "Foo Bar feature",
1749 "breadcrumbs": Array [],
1750 "key": "my-project",
1751 "name": "MyProject",
1752 "organization": "foo",
1754 "qualityGate": Object {
1757 "name": "Sonar way",
1759 "qualityProfiles": Array [
1764 "name": "Sonar way",
1774 "metric": "new_bugs ",
1786 "metric": "new_vulnerabilities",
1798 "metric": "new_code_smells",
1810 "metric": "new_security_hotspots",
1827 className="pr-overview-measurements-row display-flex-row"
1831 className="pr-overview-measurements-value flex-1 small display-flex-center"
1836 "analysisDate": "2018-01-01",
1838 "branch": "feature/foo/bar",
1841 "title": "Foo Bar feature",
1844 className="overview-domain-measure-value"
1847 "breadcrumbs": Array [],
1848 "key": "my-project",
1849 "name": "MyProject",
1850 "organization": "foo",
1852 "qualityGate": Object {
1855 "name": "Sonar way",
1857 "qualityProfiles": Array [
1862 "name": "Sonar way",
1872 "metric": "new_bugs ",
1884 "metric": "new_vulnerabilities",
1896 "metric": "new_code_smells",
1908 "metric": "new_security_hotspots",
1924 className="pr-overview-measurements-estimate"
1929 "metric": "new_bugs ",
1941 "metric": "new_vulnerabilities",
1953 "metric": "new_code_smells",
1965 "metric": "new_security_hotspots",
1981 className="pr-overview-measurements-row display-flex-row"
1985 className="pr-overview-measurements-value flex-1 small display-flex-center"
1990 "analysisDate": "2018-01-01",
1992 "branch": "feature/foo/bar",
1995 "title": "Foo Bar feature",
1998 className="overview-domain-measure-value"
2001 "breadcrumbs": Array [],
2002 "key": "my-project",
2003 "name": "MyProject",
2004 "organization": "foo",
2006 "qualityGate": Object {
2009 "name": "Sonar way",
2011 "qualityProfiles": Array [
2016 "name": "Sonar way",
2026 "metric": "new_bugs ",
2038 "metric": "new_vulnerabilities",
2050 "metric": "new_code_smells",
2062 "metric": "new_security_hotspots",
2078 className="pr-overview-measurements-estimate"
2083 "metric": "new_bugs ",
2095 "metric": "new_vulnerabilities",
2107 "metric": "new_code_smells",
2119 "metric": "new_security_hotspots",