1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should correctly handle a WS failure 1`] = `
5 className="page page-limited"
8 className="pr-overview"
11 className="display-flex-row"
14 className="pr-overview-quality-gate big-spacer-right"
17 className="spacer-bottom small"
21 className="spacer-left"
25 <LargeQualityGateBadge
28 "breadcrumbs": Array [],
31 "organization": "foo",
33 "qualityGate": Object {
38 "qualityProfiles": Array [
52 className="pr-overview-measurements flex-1"
55 className="spacer-bottom small"
60 className="pr-overview-measurements-row display-flex-row"
64 className="pr-overview-measurements-value flex-1 small display-flex-center"
69 "analysisDate": "2018-01-01",
71 "branch": "feature/foo/bar",
74 "title": "Foo Bar feature",
77 className="overview-domain-measure-value"
80 "breadcrumbs": Array [],
83 "organization": "foo",
85 "qualityGate": Object {
90 "qualityProfiles": Array [
106 className="pr-overview-measurements-rating display-flex-center"
111 "analysisDate": "2018-01-01",
113 "branch": "feature/foo/bar",
116 "title": "Foo Bar feature",
121 "breadcrumbs": Array [],
124 "organization": "foo",
126 "qualityGate": Object {
131 "qualityProfiles": Array [
148 className="pr-overview-measurements-row display-flex-row"
152 className="pr-overview-measurements-value flex-1 small display-flex-center"
157 "analysisDate": "2018-01-01",
159 "branch": "feature/foo/bar",
162 "title": "Foo Bar feature",
165 className="overview-domain-measure-value"
168 "breadcrumbs": Array [],
171 "organization": "foo",
173 "qualityGate": Object {
178 "qualityProfiles": Array [
194 className="pr-overview-measurements-value flex-1 small display-flex-center"
199 "analysisDate": "2018-01-01",
201 "branch": "feature/foo/bar",
204 "title": "Foo Bar feature",
210 "breadcrumbs": Array [],
213 "organization": "foo",
215 "qualityGate": Object {
220 "qualityProfiles": Array [
231 docTooltip={Promise {}}
233 type="SECURITY_HOTSPOT"
237 className="pr-overview-measurements-rating display-flex-center"
242 "analysisDate": "2018-01-01",
244 "branch": "feature/foo/bar",
247 "title": "Foo Bar feature",
252 "breadcrumbs": Array [],
255 "organization": "foo",
257 "qualityGate": Object {
262 "qualityProfiles": Array [
279 className="pr-overview-measurements-row display-flex-row"
283 className="pr-overview-measurements-value flex-1 small display-flex-center"
288 "analysisDate": "2018-01-01",
290 "branch": "feature/foo/bar",
293 "title": "Foo Bar feature",
296 className="overview-domain-measure-value"
299 "breadcrumbs": Array [],
302 "organization": "foo",
304 "qualityGate": Object {
309 "qualityProfiles": Array [
325 className="pr-overview-measurements-rating display-flex-center"
330 "analysisDate": "2018-01-01",
332 "branch": "feature/foo/bar",
335 "title": "Foo Bar feature",
340 "breadcrumbs": Array [],
343 "organization": "foo",
345 "qualityGate": Object {
350 "qualityProfiles": Array [
367 className="pr-overview-measurements-row display-flex-row"
371 className="pr-overview-measurements-value flex-1 small display-flex-center"
376 "analysisDate": "2018-01-01",
378 "branch": "feature/foo/bar",
381 "title": "Foo Bar feature",
384 className="overview-domain-measure-value"
387 "breadcrumbs": Array [],
390 "organization": "foo",
392 "qualityGate": Object {
397 "qualityProfiles": Array [
413 className="pr-overview-measurements-estimate"
419 className="pr-overview-measurements-row display-flex-row"
423 className="pr-overview-measurements-value flex-1 small display-flex-center"
428 "analysisDate": "2018-01-01",
430 "branch": "feature/foo/bar",
433 "title": "Foo Bar feature",
436 className="overview-domain-measure-value"
439 "breadcrumbs": Array [],
442 "organization": "foo",
444 "qualityGate": Object {
449 "qualityProfiles": Array [
465 className="pr-overview-measurements-estimate"
476 exports[`should render correctly for a failed QG 1`] = `
478 className="page page-limited"
481 className="pr-overview has-conditions"
484 className="display-flex-row"
487 className="pr-overview-quality-gate big-spacer-right"
490 className="spacer-bottom small"
492 overview.quality_gate
494 className="spacer-left"
498 <LargeQualityGateBadge
501 "breadcrumbs": Array [],
504 "organization": "foo",
506 "qualityGate": Object {
511 "qualityProfiles": Array [
526 className="pr-overview-failed-conditions big-spacer-right"
529 className="spacer-bottom small"
531 overview.failed_conditions
533 <QualityGateConditions
536 "analysisDate": "2018-01-01",
538 "branch": "feature/foo/bar",
541 "title": "Foo Bar feature",
547 "breadcrumbs": Array [],
550 "organization": "foo",
552 "qualityGate": Object {
557 "qualityProfiles": Array [
574 "metric": "new_code_smells",
583 className="pr-overview-measurements flex-1"
586 className="spacer-bottom small"
591 className="pr-overview-measurements-row display-flex-row"
595 className="pr-overview-measurements-value flex-1 small display-flex-center"
600 "analysisDate": "2018-01-01",
602 "branch": "feature/foo/bar",
605 "title": "Foo Bar feature",
608 className="overview-domain-measure-value"
611 "breadcrumbs": Array [],
614 "organization": "foo",
616 "qualityGate": Object {
621 "qualityProfiles": Array [
636 "metric": "new_bugs ",
648 "metric": "new_vulnerabilities",
660 "metric": "new_code_smells",
672 "metric": "new_security_hotspots",
688 className="pr-overview-measurements-rating display-flex-center"
693 "analysisDate": "2018-01-01",
695 "branch": "feature/foo/bar",
698 "title": "Foo Bar feature",
703 "breadcrumbs": Array [],
706 "organization": "foo",
708 "qualityGate": Object {
713 "qualityProfiles": Array [
728 "metric": "new_bugs ",
740 "metric": "new_vulnerabilities",
752 "metric": "new_code_smells",
764 "metric": "new_security_hotspots",
781 className="pr-overview-measurements-row display-flex-row"
785 className="pr-overview-measurements-value flex-1 small display-flex-center"
790 "analysisDate": "2018-01-01",
792 "branch": "feature/foo/bar",
795 "title": "Foo Bar feature",
798 className="overview-domain-measure-value"
801 "breadcrumbs": Array [],
804 "organization": "foo",
806 "qualityGate": Object {
811 "qualityProfiles": Array [
826 "metric": "new_bugs ",
838 "metric": "new_vulnerabilities",
850 "metric": "new_code_smells",
862 "metric": "new_security_hotspots",
878 className="pr-overview-measurements-value flex-1 small display-flex-center"
883 "analysisDate": "2018-01-01",
885 "branch": "feature/foo/bar",
888 "title": "Foo Bar feature",
894 "breadcrumbs": Array [],
897 "organization": "foo",
899 "qualityGate": Object {
904 "qualityProfiles": Array [
915 docTooltip={Promise {}}
920 "metric": "new_bugs ",
932 "metric": "new_vulnerabilities",
944 "metric": "new_code_smells",
956 "metric": "new_security_hotspots",
968 type="SECURITY_HOTSPOT"
972 className="pr-overview-measurements-rating display-flex-center"
977 "analysisDate": "2018-01-01",
979 "branch": "feature/foo/bar",
982 "title": "Foo Bar feature",
987 "breadcrumbs": Array [],
990 "organization": "foo",
992 "qualityGate": Object {
997 "qualityProfiles": Array [
1002 "name": "Sonar way",
1012 "metric": "new_bugs ",
1024 "metric": "new_vulnerabilities",
1036 "metric": "new_code_smells",
1048 "metric": "new_security_hotspots",
1060 type="VULNERABILITY"
1065 className="pr-overview-measurements-row display-flex-row"
1069 className="pr-overview-measurements-value flex-1 small display-flex-center"
1074 "analysisDate": "2018-01-01",
1076 "branch": "feature/foo/bar",
1079 "title": "Foo Bar feature",
1082 className="overview-domain-measure-value"
1085 "breadcrumbs": Array [],
1086 "key": "my-project",
1087 "name": "MyProject",
1088 "organization": "foo",
1090 "qualityGate": Object {
1093 "name": "Sonar way",
1095 "qualityProfiles": Array [
1100 "name": "Sonar way",
1110 "metric": "new_bugs ",
1122 "metric": "new_vulnerabilities",
1134 "metric": "new_code_smells",
1146 "metric": "new_security_hotspots",
1162 className="pr-overview-measurements-rating display-flex-center"
1167 "analysisDate": "2018-01-01",
1169 "branch": "feature/foo/bar",
1172 "title": "Foo Bar feature",
1177 "breadcrumbs": Array [],
1178 "key": "my-project",
1179 "name": "MyProject",
1180 "organization": "foo",
1182 "qualityGate": Object {
1185 "name": "Sonar way",
1187 "qualityProfiles": Array [
1192 "name": "Sonar way",
1202 "metric": "new_bugs ",
1214 "metric": "new_vulnerabilities",
1226 "metric": "new_code_smells",
1238 "metric": "new_security_hotspots",
1255 className="pr-overview-measurements-row display-flex-row"
1259 className="pr-overview-measurements-value flex-1 small display-flex-center"
1264 "analysisDate": "2018-01-01",
1266 "branch": "feature/foo/bar",
1269 "title": "Foo Bar feature",
1272 className="overview-domain-measure-value"
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",
1352 className="pr-overview-measurements-estimate"
1357 "metric": "new_bugs ",
1369 "metric": "new_vulnerabilities",
1381 "metric": "new_code_smells",
1393 "metric": "new_security_hotspots",
1409 className="pr-overview-measurements-row display-flex-row"
1413 className="pr-overview-measurements-value flex-1 small display-flex-center"
1418 "analysisDate": "2018-01-01",
1420 "branch": "feature/foo/bar",
1423 "title": "Foo Bar feature",
1426 className="overview-domain-measure-value"
1429 "breadcrumbs": Array [],
1430 "key": "my-project",
1431 "name": "MyProject",
1432 "organization": "foo",
1434 "qualityGate": Object {
1437 "name": "Sonar way",
1439 "qualityProfiles": Array [
1444 "name": "Sonar way",
1454 "metric": "new_bugs ",
1466 "metric": "new_vulnerabilities",
1478 "metric": "new_code_smells",
1490 "metric": "new_security_hotspots",
1506 className="pr-overview-measurements-estimate"
1511 "metric": "new_bugs ",
1523 "metric": "new_vulnerabilities",
1535 "metric": "new_code_smells",
1547 "metric": "new_security_hotspots",
1568 exports[`should render correctly for a passed QG 1`] = `
1570 className="page page-limited"
1573 className="pr-overview"
1576 className="display-flex-row"
1579 className="pr-overview-quality-gate big-spacer-right"
1582 className="spacer-bottom small"
1584 overview.quality_gate
1586 className="spacer-left"
1590 <LargeQualityGateBadge
1593 "breadcrumbs": Array [],
1594 "key": "my-project",
1595 "name": "MyProject",
1596 "organization": "foo",
1598 "qualityGate": Object {
1601 "name": "Sonar way",
1603 "qualityProfiles": Array [
1608 "name": "Sonar way",
1618 className="pr-overview-measurements flex-1"
1621 className="spacer-bottom small"
1626 className="pr-overview-measurements-row display-flex-row"
1630 className="pr-overview-measurements-value flex-1 small display-flex-center"
1635 "analysisDate": "2018-01-01",
1637 "branch": "feature/foo/bar",
1640 "title": "Foo Bar feature",
1643 className="overview-domain-measure-value"
1646 "breadcrumbs": Array [],
1647 "key": "my-project",
1648 "name": "MyProject",
1649 "organization": "foo",
1651 "qualityGate": Object {
1654 "name": "Sonar way",
1656 "qualityProfiles": Array [
1661 "name": "Sonar way",
1671 "metric": "new_bugs ",
1683 "metric": "new_vulnerabilities",
1695 "metric": "new_code_smells",
1707 "metric": "new_security_hotspots",
1723 className="pr-overview-measurements-rating display-flex-center"
1728 "analysisDate": "2018-01-01",
1730 "branch": "feature/foo/bar",
1733 "title": "Foo Bar feature",
1738 "breadcrumbs": Array [],
1739 "key": "my-project",
1740 "name": "MyProject",
1741 "organization": "foo",
1743 "qualityGate": Object {
1746 "name": "Sonar way",
1748 "qualityProfiles": Array [
1753 "name": "Sonar way",
1763 "metric": "new_bugs ",
1775 "metric": "new_vulnerabilities",
1787 "metric": "new_code_smells",
1799 "metric": "new_security_hotspots",
1816 className="pr-overview-measurements-row display-flex-row"
1820 className="pr-overview-measurements-value flex-1 small display-flex-center"
1825 "analysisDate": "2018-01-01",
1827 "branch": "feature/foo/bar",
1830 "title": "Foo Bar feature",
1833 className="overview-domain-measure-value"
1836 "breadcrumbs": Array [],
1837 "key": "my-project",
1838 "name": "MyProject",
1839 "organization": "foo",
1841 "qualityGate": Object {
1844 "name": "Sonar way",
1846 "qualityProfiles": Array [
1851 "name": "Sonar way",
1861 "metric": "new_bugs ",
1873 "metric": "new_vulnerabilities",
1885 "metric": "new_code_smells",
1897 "metric": "new_security_hotspots",
1909 type="VULNERABILITY"
1913 className="pr-overview-measurements-value flex-1 small display-flex-center"
1918 "analysisDate": "2018-01-01",
1920 "branch": "feature/foo/bar",
1923 "title": "Foo Bar feature",
1929 "breadcrumbs": Array [],
1930 "key": "my-project",
1931 "name": "MyProject",
1932 "organization": "foo",
1934 "qualityGate": Object {
1937 "name": "Sonar way",
1939 "qualityProfiles": Array [
1944 "name": "Sonar way",
1950 docTooltip={Promise {}}
1955 "metric": "new_bugs ",
1967 "metric": "new_vulnerabilities",
1979 "metric": "new_code_smells",
1991 "metric": "new_security_hotspots",
2003 type="SECURITY_HOTSPOT"
2007 className="pr-overview-measurements-rating display-flex-center"
2012 "analysisDate": "2018-01-01",
2014 "branch": "feature/foo/bar",
2017 "title": "Foo Bar feature",
2022 "breadcrumbs": Array [],
2023 "key": "my-project",
2024 "name": "MyProject",
2025 "organization": "foo",
2027 "qualityGate": Object {
2030 "name": "Sonar way",
2032 "qualityProfiles": Array [
2037 "name": "Sonar way",
2047 "metric": "new_bugs ",
2059 "metric": "new_vulnerabilities",
2071 "metric": "new_code_smells",
2083 "metric": "new_security_hotspots",
2095 type="VULNERABILITY"
2100 className="pr-overview-measurements-row display-flex-row"
2104 className="pr-overview-measurements-value flex-1 small display-flex-center"
2109 "analysisDate": "2018-01-01",
2111 "branch": "feature/foo/bar",
2114 "title": "Foo Bar feature",
2117 className="overview-domain-measure-value"
2120 "breadcrumbs": Array [],
2121 "key": "my-project",
2122 "name": "MyProject",
2123 "organization": "foo",
2125 "qualityGate": Object {
2128 "name": "Sonar way",
2130 "qualityProfiles": Array [
2135 "name": "Sonar way",
2145 "metric": "new_bugs ",
2157 "metric": "new_vulnerabilities",
2169 "metric": "new_code_smells",
2181 "metric": "new_security_hotspots",
2197 className="pr-overview-measurements-rating display-flex-center"
2202 "analysisDate": "2018-01-01",
2204 "branch": "feature/foo/bar",
2207 "title": "Foo Bar feature",
2212 "breadcrumbs": Array [],
2213 "key": "my-project",
2214 "name": "MyProject",
2215 "organization": "foo",
2217 "qualityGate": Object {
2220 "name": "Sonar way",
2222 "qualityProfiles": Array [
2227 "name": "Sonar way",
2237 "metric": "new_bugs ",
2249 "metric": "new_vulnerabilities",
2261 "metric": "new_code_smells",
2273 "metric": "new_security_hotspots",
2290 className="pr-overview-measurements-row display-flex-row"
2294 className="pr-overview-measurements-value flex-1 small display-flex-center"
2299 "analysisDate": "2018-01-01",
2301 "branch": "feature/foo/bar",
2304 "title": "Foo Bar feature",
2307 className="overview-domain-measure-value"
2310 "breadcrumbs": Array [],
2311 "key": "my-project",
2312 "name": "MyProject",
2313 "organization": "foo",
2315 "qualityGate": Object {
2318 "name": "Sonar way",
2320 "qualityProfiles": Array [
2325 "name": "Sonar way",
2335 "metric": "new_bugs ",
2347 "metric": "new_vulnerabilities",
2359 "metric": "new_code_smells",
2371 "metric": "new_security_hotspots",
2387 className="pr-overview-measurements-estimate"
2392 "metric": "new_bugs ",
2404 "metric": "new_vulnerabilities",
2416 "metric": "new_code_smells",
2428 "metric": "new_security_hotspots",
2444 className="pr-overview-measurements-row display-flex-row"
2448 className="pr-overview-measurements-value flex-1 small display-flex-center"
2453 "analysisDate": "2018-01-01",
2455 "branch": "feature/foo/bar",
2458 "title": "Foo Bar feature",
2461 className="overview-domain-measure-value"
2464 "breadcrumbs": Array [],
2465 "key": "my-project",
2466 "name": "MyProject",
2467 "organization": "foo",
2469 "qualityGate": Object {
2472 "name": "Sonar way",
2474 "qualityProfiles": Array [
2479 "name": "Sonar way",
2489 "metric": "new_bugs ",
2501 "metric": "new_vulnerabilities",
2513 "metric": "new_code_smells",
2525 "metric": "new_security_hotspots",
2541 className="pr-overview-measurements-estimate"
2546 "metric": "new_bugs ",
2558 "metric": "new_vulnerabilities",
2570 "metric": "new_code_smells",
2582 "metric": "new_security_hotspots",