From 2f73486a9520011bb31ca17c7c992766e822e682 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Fri, 18 Nov 2022 12:23:09 +0100 Subject: [PATCH] [NO JIRA] Update metrics mock --- .../MeasureOverview-test.tsx.snap | 16 +- .../__snapshots__/BubbleChart-test.tsx.snap | 72 ++-- .../__snapshots__/ActivityPanel-test.tsx.snap | 12 +- .../BranchOverviewRenderer-test.tsx.snap | 6 +- .../__snapshots__/DebtValue-test.tsx.snap | 8 +- .../__snapshots__/MeasuresPanel-test.tsx.snap | 356 +++++++++--------- ...MeasuresPanelIssueMeasureRow-test.tsx.snap | 120 +++--- .../QualityGatePanel-test.tsx.snap | 24 +- .../QualityGatePanelSection-test.tsx.snap | 24 +- .../quality-gates/__tests__/utils-test.ts | 2 +- .../src/main/js/helpers/testMocks.ts | 2 +- 11 files changed, 321 insertions(+), 321 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap index fe6ecf9aee4..67b8d518382 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap @@ -78,25 +78,25 @@ exports[`should render correctly: default 1`] = ` "bugs": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "INT", }, "ncloc": Object { "id": "ncloc", "key": "ncloc", - "name": "Ncloc", + "name": "ncloc", "type": "INT", }, "reliability_rating": Object { "id": "reliability_rating", "key": "reliability_rating", - "name": "Reliability_rating", + "name": "reliability_rating", "type": "DATA", }, "reliability_remediation_effort": Object { "id": "reliability_remediation_effort", "key": "reliability_remediation_effort", - "name": "Reliability_remediation_effort", + "name": "reliability_remediation_effort", "type": "INT", }, } @@ -226,25 +226,25 @@ exports[`should render correctly: has leak period 1`] = ` "bugs": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "INT", }, "ncloc": Object { "id": "ncloc", "key": "ncloc", - "name": "Ncloc", + "name": "ncloc", "type": "INT", }, "reliability_rating": Object { "id": "reliability_rating", "key": "reliability_rating", - "name": "Reliability_rating", + "name": "reliability_rating", "type": "DATA", }, "reliability_remediation_effort": Object { "id": "reliability_remediation_effort", "key": "reliability_remediation_effort", - "name": "Reliability_remediation_effort", + "name": "reliability_remediation_effort", "type": "INT", }, } diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap index 446441971e0..955414241f7 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap @@ -29,9 +29,9 @@ exports[`should render correctly: all on x=0 1`] = ` - component_measures.legend.color_x.Security_rating + component_measures.legend.color_x.security_rating - component_measures.legend.size_x.Vulnerabilities + component_measures.legend.size_x.vulnerabilities - Ncloc: 0 + ncloc: 0
- Security_remediation_effort: 0 + security_remediation_effort: 0
- Vulnerabilities: 0 + vulnerabilities: 0
- Security_rating: \` + security_rating: \` , "x": 0, @@ -198,12 +198,12 @@ exports[`should render correctly: all on x=0 1`] = `
- Ncloc + ncloc
- Security_remediation_effort + security_remediation_effort
`; @@ -237,9 +237,9 @@ exports[`should render correctly: default 1`] = ` - component_measures.legend.color_x.Security_rating + component_measures.legend.color_x.security_rating - component_measures.legend.size_x.Vulnerabilities + component_measures.legend.size_x.vulnerabilities - Ncloc: 236 + ncloc: 236
- Security_remediation_effort: 10 + security_remediation_effort: 10
- Vulnerabilities: 3 + vulnerabilities: 3
- Security_rating: B + security_rating: B , "x": 236, @@ -404,12 +404,12 @@ exports[`should render correctly: default 1`] = `
- Ncloc + ncloc
- Security_remediation_effort + security_remediation_effort
`; @@ -450,9 +450,9 @@ exports[`should render correctly: only showing first 500 files 1`] = ` - component_measures.legend.color_x.Security_rating + component_measures.legend.color_x.security_rating - component_measures.legend.size_x.Vulnerabilities + component_measures.legend.size_x.vulnerabilities - Ncloc: 236 + ncloc: 236
- Security_remediation_effort: 10 + security_remediation_effort: 10
- Vulnerabilities: 3 + vulnerabilities: 3
- Security_rating: B + security_rating: B , "x": 236, @@ -617,12 +617,12 @@ exports[`should render correctly: only showing first 500 files 1`] = `
- Ncloc + ncloc
- Security_remediation_effort + security_remediation_effort
`; diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap index 1a33e48545e..a738c264671 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap @@ -29,7 +29,7 @@ exports[`should render correctly 1`] = ` Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, ] @@ -52,7 +52,7 @@ exports[`should render correctly 1`] = ` }, ], "name": "bugs", - "translatedName": "Bugs", + "translatedName": "bugs", "type": "PERCENT", }, ], @@ -89,7 +89,7 @@ exports[`should render correctly 1`] = ` }, ], "name": "bugs", - "translatedName": "Bugs", + "translatedName": "bugs", "type": "PERCENT", }, ] @@ -199,7 +199,7 @@ exports[`should render correctly 2`] = ` Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, ] @@ -222,7 +222,7 @@ exports[`should render correctly 2`] = ` }, ], "name": "bugs", - "translatedName": "Bugs", + "translatedName": "bugs", "type": "PERCENT", }, ], @@ -259,7 +259,7 @@ exports[`should render correctly 2`] = ` }, ], "name": "bugs", - "translatedName": "Bugs", + "translatedName": "bugs", "type": "PERCENT", }, ] diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap index 406a135f1cc..0d2d9dfaf80 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap @@ -113,7 +113,7 @@ exports[`should render correctly: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -245,7 +245,7 @@ exports[`should render correctly: empty project 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -376,7 +376,7 @@ exports[`should render correctly: loading 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap index ebc700f4a77..ad01e43c191 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap @@ -3,7 +3,7 @@ exports[`should render correctly 1`] = ` - Sqale_index + sqale_index `; @@ -29,7 +29,7 @@ exports[`should render correctly 1`] = ` exports[`should render correctly 2`] = ` - New_technical_debt + new_technical_debt `; diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap index 6936ea45634..5d512f3ce4c 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap @@ -131,7 +131,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -147,7 +147,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -163,7 +163,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -179,7 +179,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -234,7 +234,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -250,7 +250,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -266,7 +266,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -282,7 +282,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -337,7 +337,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -353,7 +353,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -369,7 +369,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -385,7 +385,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -440,7 +440,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -456,7 +456,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -472,7 +472,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -488,7 +488,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -549,7 +549,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -565,7 +565,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -581,7 +581,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -597,7 +597,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -656,7 +656,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -672,7 +672,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -688,7 +688,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -704,7 +704,7 @@ exports[`should render correctly for applications: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -856,7 +856,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -872,7 +872,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -888,7 +888,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -904,7 +904,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -959,7 +959,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -975,7 +975,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -991,7 +991,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1007,7 +1007,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1062,7 +1062,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1078,7 +1078,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1094,7 +1094,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1110,7 +1110,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1165,7 +1165,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1181,7 +1181,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1197,7 +1197,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1213,7 +1213,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1274,7 +1274,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1290,7 +1290,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1306,7 +1306,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1322,7 +1322,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1379,7 +1379,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1395,7 +1395,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1411,7 +1411,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1427,7 +1427,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1486,7 +1486,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1502,7 +1502,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1518,7 +1518,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1534,7 +1534,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1591,7 +1591,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1607,7 +1607,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1623,7 +1623,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1639,7 +1639,7 @@ exports[`should render correctly for applications: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1791,7 +1791,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1807,7 +1807,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1823,7 +1823,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1839,7 +1839,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1894,7 +1894,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1910,7 +1910,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1926,7 +1926,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1942,7 +1942,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1997,7 +1997,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2013,7 +2013,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2029,7 +2029,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2045,7 +2045,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -2100,7 +2100,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2116,7 +2116,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2132,7 +2132,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2148,7 +2148,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -2209,7 +2209,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2225,7 +2225,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2241,7 +2241,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2257,7 +2257,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -2316,7 +2316,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2332,7 +2332,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2348,7 +2348,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2364,7 +2364,7 @@ exports[`should render correctly for projects: default 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -2516,7 +2516,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2532,7 +2532,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2548,7 +2548,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2564,7 +2564,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -2619,7 +2619,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2635,7 +2635,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2651,7 +2651,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2667,7 +2667,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -2722,7 +2722,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2738,7 +2738,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2754,7 +2754,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2770,7 +2770,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -2825,7 +2825,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2841,7 +2841,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2857,7 +2857,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2873,7 +2873,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -2934,7 +2934,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -2950,7 +2950,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -2966,7 +2966,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -2982,7 +2982,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -3039,7 +3039,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -3055,7 +3055,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -3071,7 +3071,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -3087,7 +3087,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -3146,7 +3146,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -3162,7 +3162,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -3178,7 +3178,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -3194,7 +3194,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -3251,7 +3251,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -3267,7 +3267,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -3283,7 +3283,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -3299,7 +3299,7 @@ exports[`should render correctly for projects: overall 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -3801,7 +3801,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -3817,7 +3817,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -3872,7 +3872,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -3888,7 +3888,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -3943,7 +3943,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -3959,7 +3959,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -4014,7 +4014,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -4030,7 +4030,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -4090,7 +4090,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -4106,7 +4106,7 @@ exports[`should render correctly if there is no coverage 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -4384,7 +4384,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -4400,7 +4400,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -4416,7 +4416,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -4432,7 +4432,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -4487,7 +4487,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -4503,7 +4503,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -4519,7 +4519,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -4535,7 +4535,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -4590,7 +4590,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -4606,7 +4606,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -4622,7 +4622,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -4638,7 +4638,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -4693,7 +4693,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -4709,7 +4709,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -4725,7 +4725,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -4741,7 +4741,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -4802,7 +4802,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -4818,7 +4818,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -4834,7 +4834,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -4850,7 +4850,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -4909,7 +4909,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -4925,7 +4925,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -4941,7 +4941,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -4957,7 +4957,7 @@ exports[`should render correctly when code scope is new code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -5109,7 +5109,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -5125,7 +5125,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -5141,7 +5141,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -5157,7 +5157,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -5212,7 +5212,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -5228,7 +5228,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -5244,7 +5244,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -5260,7 +5260,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -5315,7 +5315,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -5331,7 +5331,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -5347,7 +5347,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -5363,7 +5363,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -5418,7 +5418,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -5434,7 +5434,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -5450,7 +5450,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -5466,7 +5466,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -5527,7 +5527,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -5543,7 +5543,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -5559,7 +5559,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -5575,7 +5575,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -5632,7 +5632,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -5648,7 +5648,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -5664,7 +5664,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -5680,7 +5680,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -5739,7 +5739,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -5755,7 +5755,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -5771,7 +5771,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -5787,7 +5787,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -5844,7 +5844,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -5860,7 +5860,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -5876,7 +5876,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -5892,7 +5892,7 @@ exports[`should render correctly when code scope is overall code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap index ce7ea35b2a6..cf234b9c859 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap @@ -47,7 +47,7 @@ exports[`should render correctly for apps: new code 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -63,7 +63,7 @@ exports[`should render correctly for apps: new code 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -79,7 +79,7 @@ exports[`should render correctly for apps: new code 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -95,7 +95,7 @@ exports[`should render correctly for apps: new code 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -161,7 +161,7 @@ exports[`should render correctly for apps: overview 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -177,7 +177,7 @@ exports[`should render correctly for apps: overview 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -193,7 +193,7 @@ exports[`should render correctly for apps: overview 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -209,7 +209,7 @@ exports[`should render correctly for apps: overview 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -267,7 +267,7 @@ exports[`should render correctly for apps: overview 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -283,7 +283,7 @@ exports[`should render correctly for apps: overview 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -299,7 +299,7 @@ exports[`should render correctly for apps: overview 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -315,7 +315,7 @@ exports[`should render correctly for apps: overview 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -381,7 +381,7 @@ exports[`should render correctly for projects: Bug 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -397,7 +397,7 @@ exports[`should render correctly for projects: Bug 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -413,7 +413,7 @@ exports[`should render correctly for projects: Bug 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -429,7 +429,7 @@ exports[`should render correctly for projects: Bug 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -487,7 +487,7 @@ exports[`should render correctly for projects: Bug 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -503,7 +503,7 @@ exports[`should render correctly for projects: Bug 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -519,7 +519,7 @@ exports[`should render correctly for projects: Bug 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -535,7 +535,7 @@ exports[`should render correctly for projects: Bug 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -601,7 +601,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -617,7 +617,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -633,7 +633,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -649,7 +649,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -706,7 +706,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -722,7 +722,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -738,7 +738,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -754,7 +754,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -812,7 +812,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -828,7 +828,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -844,7 +844,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -860,7 +860,7 @@ exports[`should render correctly for projects: Code Smell 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -927,7 +927,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -943,7 +943,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -959,7 +959,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -975,7 +975,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1003,7 +1003,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1019,7 +1019,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1035,7 +1035,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1051,7 +1051,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1108,7 +1108,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1124,7 +1124,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1140,7 +1140,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1156,7 +1156,7 @@ exports[`should render correctly for projects: Hotspot 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1222,7 +1222,7 @@ exports[`should render correctly for projects: Overview 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1238,7 +1238,7 @@ exports[`should render correctly for projects: Overview 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1254,7 +1254,7 @@ exports[`should render correctly for projects: Overview 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1270,7 +1270,7 @@ exports[`should render correctly for projects: Overview 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1328,7 +1328,7 @@ exports[`should render correctly for projects: Overview 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1344,7 +1344,7 @@ exports[`should render correctly for projects: Overview 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1360,7 +1360,7 @@ exports[`should render correctly for projects: Overview 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1376,7 +1376,7 @@ exports[`should render correctly for projects: Overview 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1442,7 +1442,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1458,7 +1458,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1474,7 +1474,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1490,7 +1490,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { @@ -1548,7 +1548,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -1564,7 +1564,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = ` "metric": Object { "id": "new_coverage", "key": "new_coverage", - "name": "New_coverage", + "name": "new_coverage", "type": "PERCENT", }, "period": Object { @@ -1580,7 +1580,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = ` "metric": Object { "id": "bugs", "key": "bugs", - "name": "Bugs", + "name": "bugs", "type": "PERCENT", }, "period": Object { @@ -1596,7 +1596,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = ` "metric": Object { "id": "new_bugs", "key": "new_bugs", - "name": "New_bugs", + "name": "new_bugs", "type": "PERCENT", }, "period": Object { diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap index 7c3f2892c4e..06972ac7b00 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap @@ -82,7 +82,7 @@ exports[`should render correctly for applications 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -140,7 +140,7 @@ exports[`should render correctly for applications 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -163,7 +163,7 @@ exports[`should render correctly for applications 1`] = ` "metric": Object { "id": "new_code_smells", "key": "new_code_smells", - "name": "New_code_smells", + "name": "new_code_smells", "type": "PERCENT", }, "period": Object { @@ -199,7 +199,7 @@ exports[`should render correctly for applications 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -222,7 +222,7 @@ exports[`should render correctly for applications 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -245,7 +245,7 @@ exports[`should render correctly for applications 1`] = ` "metric": Object { "id": "new_code_smells", "key": "new_code_smells", - "name": "New_code_smells", + "name": "new_code_smells", "type": "PERCENT", }, "period": Object { @@ -346,7 +346,7 @@ exports[`should render correctly for applications 2`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -416,7 +416,7 @@ exports[`should render correctly for applications 2`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -517,7 +517,7 @@ exports[`should render correctly for projects 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -553,7 +553,7 @@ exports[`should render correctly for projects 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -718,7 +718,7 @@ exports[`should render correctly for projects 3`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -754,7 +754,7 @@ exports[`should render correctly for projects 3`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap index 84bd6cb3285..eeb53194ffa 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap @@ -23,7 +23,7 @@ exports[`should render correctly 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -46,7 +46,7 @@ exports[`should render correctly 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -78,7 +78,7 @@ exports[`should render correctly 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -113,7 +113,7 @@ exports[`should render correctly 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -136,7 +136,7 @@ exports[`should render correctly 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -168,7 +168,7 @@ exports[`should render correctly 1`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -215,7 +215,7 @@ exports[`should render correctly 2`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -238,7 +238,7 @@ exports[`should render correctly 2`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -270,7 +270,7 @@ exports[`should render correctly 2`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -305,7 +305,7 @@ exports[`should render correctly 2`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -328,7 +328,7 @@ exports[`should render correctly 2`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { @@ -360,7 +360,7 @@ exports[`should render correctly 2`] = ` "metric": Object { "id": "coverage", "key": "coverage", - "name": "Coverage", + "name": "coverage", "type": "PERCENT", }, "period": Object { diff --git a/server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts b/server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts index dac08137708..2bd822c62d2 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts +++ b/server/sonar-web/src/main/js/apps/quality-gates/__tests__/utils-test.ts @@ -29,7 +29,7 @@ const METRICS = { describe('getLocalizedMetricNameNoDiffMetric', () => { it('should return the correct corresponding metric', () => { - expect(getLocalizedMetricNameNoDiffMetric(mockMetric(), {})).toBe('Coverage'); + expect(getLocalizedMetricNameNoDiffMetric(mockMetric(), {})).toBe('coverage'); expect(getLocalizedMetricNameNoDiffMetric(mockMetric({ key: 'new_bugs' }), METRICS)).toBe( 'Bugs' ); diff --git a/server/sonar-web/src/main/js/helpers/testMocks.ts b/server/sonar-web/src/main/js/helpers/testMocks.ts index 15d2ff44b02..561580776b4 100644 --- a/server/sonar-web/src/main/js/helpers/testMocks.ts +++ b/server/sonar-web/src/main/js/helpers/testMocks.ts @@ -370,7 +370,7 @@ export function mockLocation(overrides: Partial = {}): Location { export function mockMetric(overrides: Partial> = {}): Metric { const key = overrides.key || 'coverage'; - const name = overrides.name || key[0].toUpperCase() + key.substr(1); + const name = overrides.name || key; const type = overrides.type || 'PERCENT'; return { id: key, -- 2.39.5