mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-23 15:19:38 +02:00
Introduces a basic CSV import module for bulk-importing account transactions. Changes include: - User can load a CSV - User can configure the column mappings for a CSV - Imported CSV shows invalid cells - User can clean up their data directly in the UI - User can see a preview of the import rows and confirm import - Layout refactor + Import nav stepper - System test stability improvements
36 lines
1.2 KiB
Ruby
36 lines
1.2 KiB
Ruby
require "application_system_test_case"
|
|
|
|
class SettingsTest < ApplicationSystemTestCase
|
|
setup do
|
|
sign_in @user = users(:family_admin)
|
|
|
|
@settings_links = [
|
|
[ "Account", "Account", settings_profile_path ],
|
|
[ "Preferences", "Preferences", settings_preferences_path ],
|
|
[ "Notifications", "Notifications", settings_notifications_path ],
|
|
[ "Security", "Security", settings_security_path ],
|
|
[ "Billing", "Billing", settings_billing_path ],
|
|
[ "Accounts", "Accounts", accounts_path ],
|
|
[ "Categories", "Categories", transaction_categories_path ],
|
|
[ "Merchants", "Merchants", transaction_merchants_path ],
|
|
[ "Rules", "Rules", transaction_rules_path ],
|
|
[ "Imports", "Imports", imports_path ],
|
|
[ "What's New", "What's New", changelog_path ],
|
|
[ "Feedback", "Feedback", feedback_path ],
|
|
[ "Invite friends", "Invite friends", invites_path ]
|
|
]
|
|
end
|
|
|
|
test "can access settings from sidebar" do
|
|
open_settings_from_sidebar
|
|
assert_selector "h1", text: "Account"
|
|
assert_current_path settings_profile_path
|
|
end
|
|
|
|
private
|
|
|
|
def open_settings_from_sidebar
|
|
find("#user-menu").click
|
|
click_link "Settings"
|
|
end
|
|
end
|