]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/preferences_test.rb
Merge branch 'master' into feature/add-communities-page
[rails.git] / test / system / preferences_test.rb
index e5bcd1092178f50641283639f21e0aad363549b0..59a7209f5b4d3728fbb8f3049e4db4a03f0326f4 100644 (file)
@@ -7,7 +7,7 @@ class PreferencesTest < ApplicationSystemTestCase
     visit edit_preferences_path
     click_on "Update Preferences"
 
-    assert page.has_content?("Preferences updated")
+    assert_content "Preferences updated"
   end
 
   def test_flash_message_shows_in_new_language
@@ -17,7 +17,6 @@ class PreferencesTest < ApplicationSystemTestCase
     fill_in "Preferred Languages", :with => "fr"
     click_on "Update Preferences"
 
-    # TODO: enable with french translation when that's available
-    # assert page.has_content?("Préférences mises à jour") # rubocop:disable Style/AsciiComments
+    assert_content "Préférences mises à jour"
   end
 end