aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2021-07-15 16:42:27 +0200
committersonartech <sonartech@sonarsource.com>2021-07-27 20:03:02 +0000
commitce304c7995552e8d6af222db2b30ae230288815b (patch)
treea1a617fcfcd2d0a662e20a3fc93626f0489bef68 /server/sonar-web
parent0957ea1b20b062a2419adcd2808390175b94c7ab (diff)
downloadsonarqube-ce304c7995552e8d6af222db2b30ae230288815b.tar.gz
sonarqube-ce304c7995552e8d6af222db2b30ae230288815b.zip
SONAR-15146 Add UI ITs for Audit Logs page
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx5
-rw-r--r--server/sonar-web/src/main/js/apps/audit-logs/components/DownloadButton.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap48
3 files changed, 37 insertions, 18 deletions
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx
index 7596356c453..f4dbb7d1490 100644
--- a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx
+++ b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx
@@ -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 />
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/DownloadButton.tsx b/server/sonar-web/src/main/js/apps/audit-logs/components/DownloadButton.tsx
index 4fc60de4916..0a61310a6d0 100644
--- a/server/sonar-web/src/main/js/apps/audit-logs/components/DownloadButton.tsx
+++ b/server/sonar-web/src/main/js/apps/audit-logs/components/DownloadButton.tsx
@@ -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"
diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap
index 015eb529785..703fa50eae2 100644
--- a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap
@@ -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"
>