X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5c019cd2eef41a4e75a2640f19f674431cf67733..b0348093f8877d2f59f153bf35e87ba411f4004b:/test/system/account_home_test.rb diff --git a/test/system/account_home_test.rb b/test/system/account_home_test.rb index 0d0e10615..813c45ec8 100644 --- a/test/system/account_home_test.rb +++ b/test/system/account_home_test.rb @@ -45,4 +45,13 @@ class AccountHomeTest < ApplicationSystemTestCase click_on "test user" assert_no_link "Go to Home Location" end + + test "account home page shows a warning when visited by users without home location" do + user = create(:user, :display_name => "test user") + sign_in_as(user) + + visit account_home_path + assert_no_selector "img.leaflet-marker-icon" + assert_text "Home location is not set" + end end