]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/view_communities_test.rb
Merge pull request #5437 from AntonKhorev/user-status-resource
[rails.git] / test / system / view_communities_test.rb
index 539daaa30933c5e9c8fb3fd3aac278d6cca3cba8..b4b043edfce164af5aa95d381ed73c9119ba522c 100644 (file)
@@ -11,9 +11,9 @@ class ViewCommunitiesTest < ApplicationSystemTestCase
   def test_translated_links
     sign_in_as(create(:user))
 
   def test_translated_links
     sign_in_as(create(:user))
 
-    visit edit_preferences_path
+    visit preferences_path
     fill_in "Preferred Languages", :with => "fr"
     fill_in "Preferred Languages", :with => "fr"
-    click_button "Update Preferences"
+    click_on "Update Preferences"
 
     visit "/communities"
     assert_link "OpenStreetMap États-Unis", :href => "https://www.openstreetmap.us/"
 
     visit "/communities"
     assert_link "OpenStreetMap États-Unis", :href => "https://www.openstreetmap.us/"