From e7fe1b5a4b9dabd2b4db26f3a773a1e0fde74463 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Thu, 25 Apr 2024 16:31:12 -0400 Subject: [PATCH] Reorder settings nav and add translations (#680) * Reorder settings nav and add translations * Attempt to fix flaky system test --- app/views/settings/_nav.html.erb | 77 +++++++++++++++++----------- config/locales/views/settings/en.yml | 3 ++ test/system/settings_test.rb | 3 ++ 3 files changed, 53 insertions(+), 30 deletions(-) diff --git a/app/views/settings/_nav.html.erb b/app/views/settings/_nav.html.erb index 9908a449..c78f9239 100644 --- a/app/views/settings/_nav.html.erb +++ b/app/views/settings/_nav.html.erb @@ -10,47 +10,64 @@ diff --git a/config/locales/views/settings/en.yml b/config/locales/views/settings/en.yml index a3e4f443..8a0c2c89 100644 --- a/config/locales/views/settings/en.yml +++ b/config/locales/views/settings/en.yml @@ -48,14 +48,17 @@ en: billing_label: Billing categories_label: Categories feedback_label: Feedback + general_section_title: General invite_label: Invite friends merchants_label: Merchants notifications_label: Notifications + other_section_title: More preferences_label: Preferences profile_label: Account rules_label: Rules security_label: Security self_hosting_label: Self-Hosting + transactions_section_title: Transactions whats_new_label: What's New nav_link_large: next: Next diff --git a/test/system/settings_test.rb b/test/system/settings_test.rb index 4c10fb05..e382bef1 100644 --- a/test/system/settings_test.rb +++ b/test/system/settings_test.rb @@ -48,6 +48,9 @@ class SettingsTest < ApplicationSystemTestCase test "can see conditional nav items" do ENV["SELF_HOSTING_ENABLED"] = "true" + visit root_path + sign_in @user + open_settings_from_sidebar click_link "Self-Hosting"