]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20355 Update quality profile BBT to test rule deactivation
author7PH <benjamin.raymond@sonarsource.com>
Fri, 15 Sep 2023 11:57:12 +0000 (13:57 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 15 Sep 2023 20:03:06 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRules.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.tsx

index f4398a1423a6dc34fae06dc92d8587c3535b4342..7c147187de0c18589994128ee7213862eab02089 100644 (file)
@@ -164,6 +164,7 @@ export default class ProfileRules extends React.PureComponent<Readonly<Props>, S
           noSidePadding
         >
           <ProfileRulesRow
+            className="it__quality-profiles__rules__total"
             count={this.state.activatedTotal}
             qprofile={profile.key}
             total={this.state.total}
index e91e38e0ca30fade60bf3e3613de1128f77a8090..db7fed442414d80ea82abafd8048b639069f238c 100644 (file)
@@ -27,6 +27,7 @@ import { getRulesUrl } from '../../../helpers/urls';
 import { MetricType } from '../../../types/metrics';
 
 interface Props {
+  className?: string;
   count: number | null;
   qprofile: string;
   total: number | null;
@@ -50,7 +51,7 @@ export default function ProfileRulesRowOfType(props: Readonly<Props>) {
   }
 
   return (
-    <TableRow>
+    <TableRow className={props.className}>
       <ContentCell>
         {props.type ? (
           <>