UX: Update email and security sidebar link copy (#30563)

* UX: Update email and security sidebar link copy

Followup b3fa335c7d

Changes these sidebar links to better reflect
what these pages contain:

* (Email) Server setup → Server setup & logs
* (Security) Staff action logs → Logs & screening

* DEV: Test fix
This commit is contained in:
Martin Brennan 2025-01-07 09:59:31 +10:00 committed by GitHub
parent 3b6649670b
commit 9c7b0ddb2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View File

@ -5664,7 +5664,7 @@ en:
sidebar_link:
appearance: "Appearance"
server_setup:
title: "Server setup"
title: "Server setup & logs"
keywords: "email|smtp|mailgun|sendgrid|sent|skipped|bounced|received|rejected|email logs|preview summary"
security:
@ -5673,8 +5673,8 @@ en:
security: "Security settings"
spam: "Spam settings"
staff_action_logs:
title: "Staff action logs"
keywords: "error logs|screened emails|screened ips|screened urls|search logs"
title: "Logs & screening"
keywords: "error logs|staff action|screened emails|screened ips|screened urls|search logs"
section_landing_pages:
account:

View File

@ -127,7 +127,12 @@ describe "Admin | Sidebar Navigation", type: :system do
# When match section title, display all links
filter.filter("Email Sett")
links = page.all(".sidebar-section-link-content-text")
expect(links.map(&:text)).to eq(["Server setup", "Appearance"])
expect(links.map(&:text)).to eq(
[
I18n.t("admin_js.admin.email_settings.sidebar_link.server_setup.title"),
I18n.t("admin_js.admin.email_settings.sidebar_link.appearance"),
],
)
end
it "escapes the filtered expression for regex expressions" do