From ce304c7995552e8d6af222db2b30ae230288815b Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Thu, 15 Jul 2021 16:42:27 +0200 Subject: SONAR-15146 Add UI ITs for Audit Logs page --- .../audit-logs/components/AuditAppRenderer.tsx | 5 ++- .../apps/audit-logs/components/DownloadButton.tsx | 2 +- .../__snapshots__/AuditAppRenderer-test.tsx.snap | 48 ++++++++++++++-------- 3 files changed, 37 insertions(+), 18 deletions(-) (limited to 'server/sonar-web/src') 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) { -

{translate('audit_logs.page')}

+
+

{translate('audit_logs.page')}

+
+

{translate('audit_logs.page.description.1')}
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) { <> -

- audit_logs.page -

+

+ audit_logs.page +

+

@@ -133,11 +137,15 @@ exports[`should render correctly for trimestrial housekeeping policy 1`] = ` encodeSpecialCharacters={true} title="audit_logs.page" /> -

- audit_logs.page -

+

+ audit_logs.page +

+

@@ -265,11 +273,15 @@ exports[`should render correctly for weekly housekeeping policy 1`] = ` encodeSpecialCharacters={true} title="audit_logs.page" /> -

- audit_logs.page -

+

+ audit_logs.page +

+

@@ -373,11 +385,15 @@ exports[`should render correctly for yearly housekeeping policy 1`] = ` encodeSpecialCharacters={true} title="audit_logs.page" /> -

- audit_logs.page -

+

+ audit_logs.page +

+

-- cgit v1.2.3