]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15146 Add UI ITs for Audit Logs page
authorJeremy Davis <jeremy.davis@sonarsource.com>
Thu, 15 Jul 2021 14:42:27 +0000 (16:42 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 27 Jul 2021 20:03:02 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx
server/sonar-web/src/main/js/apps/audit-logs/components/DownloadButton.tsx
server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap

index 7596356c45351b1480f2834d67109ad45b14e88b..f4dbb7d14903bf4a57584384fa3c91295490a023 100644 (file)
@@ -74,7 +74,10 @@ export default function AuditAppRenderer(props: AuditAppRendererProps) {
       <Suggestions suggestions="audit-logs" />
       <Helmet title={translate('audit_logs.page')} />
 
-      <h1 className="spacer-bottom">{translate('audit_logs.page')}</h1>
+      <header className="page-header">
+        <h1 className="page-title">{translate('audit_logs.page')}</h1>
+      </header>
+
       <p className="big-spacer-bottom">
         {translate('audit_logs.page.description.1')}
         <br />
index 4fc60de49167a345e4f11d2839e2d9a47a57ba2d..0a61310a6d02d68f45692f30a04a0a469b333c0f 100644 (file)
@@ -76,7 +76,7 @@ export default function DownloadButton(props: DownloadButtonProps) {
     <>
       <a
         className={classNames('button button-primary', { disabled: downloadDisabled })}
-        download="audit-logs.json"
+        download="audit_logs.json"
         onClick={downloadDisabled ? undefined : props.onStartDownload}
         href={downloadUrl}
         rel="noopener noreferrer"
index 015eb529785761b1f68fdcf6a106514f80762fba..703fa50eae2d514f2ced14c460da7db8c69a94ff 100644 (file)
@@ -13,11 +13,15 @@ exports[`should render correctly for monthly housekeeping policy 1`] = `
     encodeSpecialCharacters={true}
     title="audit_logs.page"
   />
-  <h1
-    className="spacer-bottom"
+  <header
+    className="page-header"
   >
-    audit_logs.page
-  </h1>
+    <h1
+      className="page-title"
+    >
+      audit_logs.page
+    </h1>
+  </header>
   <p
     className="big-spacer-bottom"
   >
@@ -133,11 +137,15 @@ exports[`should render correctly for trimestrial housekeeping policy 1`] = `
     encodeSpecialCharacters={true}
     title="audit_logs.page"
   />
-  <h1
-    className="spacer-bottom"
+  <header
+    className="page-header"
   >
-    audit_logs.page
-  </h1>
+    <h1
+      className="page-title"
+    >
+      audit_logs.page
+    </h1>
+  </header>
   <p
     className="big-spacer-bottom"
   >
@@ -265,11 +273,15 @@ exports[`should render correctly for weekly housekeeping policy 1`] = `
     encodeSpecialCharacters={true}
     title="audit_logs.page"
   />
-  <h1
-    className="spacer-bottom"
+  <header
+    className="page-header"
   >
-    audit_logs.page
-  </h1>
+    <h1
+      className="page-title"
+    >
+      audit_logs.page
+    </h1>
+  </header>
   <p
     className="big-spacer-bottom"
   >
@@ -373,11 +385,15 @@ exports[`should render correctly for yearly housekeeping policy 1`] = `
     encodeSpecialCharacters={true}
     title="audit_logs.page"
   />
-  <h1
-    className="spacer-bottom"
+  <header
+    className="page-header"
   >
-    audit_logs.page
-  </h1>
+    <h1
+      className="page-title"
+    >
+      audit_logs.page
+    </h1>
+  </header>
   <p
     className="big-spacer-bottom"
   >