1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Deps cleanup (#702)

This commit is contained in:
Zach Gollwitzer 2024-05-02 10:18:06 -04:00 committed by GitHub
parent 4c5f8263bc
commit 98df7ccb11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 56 additions and 170 deletions

View file

@ -45,34 +45,6 @@ class SettingsTest < ApplicationSystemTestCase
assert_no_text "Self-Hosting"
end
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"
assert_selector "h1", text: "Self-Hosting"
end
test "clicking back or hitting escape key takes user back page they opened settings from" do
# TODO: Implement test for back navigation and escape key functionality.
end
test "can upload profile image" do
open_settings_from_sidebar
label = find("label", text: "Choose")
attach_file(label["for"], Rails.root.join("test/fixtures/files/profile_image.png"), make_visible: true)
click_button "Save"
assert_selector("img[src*='profile_image.png']")
end
private
def open_settings_from_sidebar
find("#user-menu").click