mirror of
https://github.com/we-promise/sure.git
synced 2026-05-29 23:39:03 +00:00
Address provider settings review feedback
This commit is contained in:
@@ -6,8 +6,12 @@ class SettingsTest < ApplicationSystemTestCase
|
||||
|
||||
# Base settings available to all users
|
||||
@settings_links = [
|
||||
[ "Accounts", accounts_path ],
|
||||
[ "Bank Sync", settings_providers_path ],
|
||||
[ "Accounts", accounts_path ]
|
||||
]
|
||||
|
||||
@settings_links << [ "Bank Sync", settings_providers_path ] if @user.admin?
|
||||
|
||||
@settings_links += [
|
||||
[ "Preferences", settings_preferences_path ],
|
||||
[ "Profile Info", settings_profile_path ],
|
||||
[ "Security", settings_security_path ],
|
||||
@@ -87,6 +91,7 @@ class SettingsTest < ApplicationSystemTestCase
|
||||
# Assert that admin-only settings are not present in the navigation
|
||||
assert_no_selector "li", text: "AI Prompts"
|
||||
assert_no_selector "li", text: "API Key"
|
||||
assert_no_selector "li", text: "Bank Sync"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user