]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/account_home_test.rb
Merge remote-tracking branch 'upstream/pull/5699'
[rails.git] / test / system / account_home_test.rb
index 0d0e10615a0d0a70865d13c4297a15ed21d0255b..813c45ec8d483cccec83087d31522be4baeaee26 100644 (file)
@@ -45,4 +45,13 @@ class AccountHomeTest < ApplicationSystemTestCase
     click_on "test user"
     assert_no_link "Go to Home Location"
   end
     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
 end