X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/baee0b9a90764287059682604c5d57feee67a364..d7b9f70c808bbca9f7b21dcc9b2f403fcf4a7d17:/test/system/preferences_test.rb diff --git a/test/system/preferences_test.rb b/test/system/preferences_test.rb index 6a4d2397f..b071b1f73 100644 --- a/test/system/preferences_test.rb +++ b/test/system/preferences_test.rb @@ -5,9 +5,9 @@ class PreferencesTest < ApplicationSystemTestCase sign_in_as(create(:user)) visit edit_preferences_path - click_on "Update Preferences" + click_button "Update Preferences" - assert page.has_content?("Preferences updated") + assert_content "Preferences updated" end def test_flash_message_shows_in_new_language @@ -15,8 +15,8 @@ class PreferencesTest < ApplicationSystemTestCase visit edit_preferences_path fill_in "Preferred Languages", :with => "fr" - click_on "Update Preferences" + click_button "Update Preferences" - assert page.has_content?("Préférences mises à jour") + assert_content "Préférences mises à jour" end end