]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21259 Add BBTs to cover fixed issues in PR
authorstanislavh <stanislav.honcharov@sonarsource.com>
Mon, 15 Jan 2024 11:54:17 +0000 (12:54 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 17 Jan 2024 20:02:44 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/overview/pullRequests/IssueMeasuresCard.tsx

index d80d858ccd34aa5f039e3239e64c80a4fc2b7fe9..7578f8ab3b925a85748bfa0128bbe2af664e7f01 100644 (file)
@@ -83,7 +83,7 @@ export default function IssueMeasuresCard(
       <IssueMeasuresCardInner
         className="sw-w-1/3"
         header={intl.formatMessage({ id: 'overview.pull_request.new_issues' })}
-        data-test="overview__measures-new-violations"
+        data-test={`overview__measures-${MetricKey.new_violations}`}
         data-guiding-id={issuesConditionFailed ? 'overviewZeroNewIssuesSimplification' : undefined}
         metric={MetricKey.new_violations}
         value={formatMeasure(issuesCount, MetricType.ShortInteger)}
@@ -108,6 +108,7 @@ export default function IssueMeasuresCard(
       <IssueMeasuresCardInner
         className="sw-w-1/3"
         header={intl.formatMessage({ id: 'overview.pull_request.accepted_issues' })}
+        data-test={`overview__measures-${MetricKey.new_accepted_issues}`}
         metric={MetricKey.new_accepted_issues}
         value={formatMeasure(acceptedCount, MetricType.ShortInteger)}
         linkDisabled={component.needIssueSync}
@@ -142,6 +143,7 @@ export default function IssueMeasuresCard(
             </Tooltip>
           </>
         }
+        data-test={`overview__measures-${MetricKey.pull_request_fixed_issues}`}
         metric={MetricKey.pull_request_fixed_issues}
         value={formatMeasure(fixedCount, MetricType.ShortInteger)}
         linkDisabled={component.needIssueSync}