]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/view_communities_test.rb
Fix new rubocop warnings
[rails.git] / test / system / view_communities_test.rb
index d028dc4a117666d0dbd82a0afde2ba5e9fda1549..539daaa30933c5e9c8fb3fd3aac278d6cca3cba8 100644 (file)
@@ -5,7 +5,7 @@ class ViewCommunitiesTest < ApplicationSystemTestCase
     # Check that all the parsing of the chapter information has worked
     visit "/communities"
     assert_link "OpenStreetMap US", :href => "https://www.openstreetmap.us/"
-    assert_link "OpenStreetMap Belgium Local Chapter", :href => "https://openstreetmap.be/"
+    assert_link "OpenStreetMap Belgium", :href => "https://openstreetmap.be/"
   end
 
   def test_translated_links
@@ -13,10 +13,10 @@ class ViewCommunitiesTest < ApplicationSystemTestCase
 
     visit edit_preferences_path
     fill_in "Preferred Languages", :with => "fr"
-    click_on "Update Preferences"
+    click_button "Update Preferences"
 
     visit "/communities"
     assert_link "OpenStreetMap États-Unis", :href => "https://www.openstreetmap.us/"
-    assert_link "Chapitre local OpenStreetMap Belgique", :href => "https://openstreetmap.be/"
+    assert_link "OpenStreetMap Belgique", :href => "https://openstreetmap.be/"
   end
 end