X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/228ab23ce16338e281e609d9355c982cd4085c42..967e6d4:/test/system/preferences_test.rb diff --git a/test/system/preferences_test.rb b/test/system/preferences_test.rb index b071b1f73..89728a36e 100644 --- a/test/system/preferences_test.rb +++ b/test/system/preferences_test.rb @@ -4,8 +4,8 @@ class PreferencesTest < ApplicationSystemTestCase def test_flash_message_shows_in_original_language sign_in_as(create(:user)) - visit edit_preferences_path - click_button "Update Preferences" + visit preferences_path + click_on "Update Preferences" assert_content "Preferences updated" end @@ -13,9 +13,9 @@ class PreferencesTest < ApplicationSystemTestCase def test_flash_message_shows_in_new_language sign_in_as(create(:user)) - visit edit_preferences_path + visit preferences_path fill_in "Preferred Languages", :with => "fr" - click_button "Update Preferences" + click_on "Update Preferences" assert_content "Préférences mises à jour" end