X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/403c8941a6ffeb39bd796c0591ca999b6babc0ca..d8400320a78632f8ece9b5a27d6e0811e7bab8e1:/test/system/preferences_test.rb?ds=sidebyside diff --git a/test/system/preferences_test.rb b/test/system/preferences_test.rb index e5bcd1092..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,9 +15,8 @@ class PreferencesTest < ApplicationSystemTestCase visit edit_preferences_path fill_in "Preferred Languages", :with => "fr" - click_on "Update Preferences" + click_button "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