]> git.openstreetmap.org Git - rails.git/blob - test/system/preferences_test.rb
Merge remote-tracking branch 'upstream/pull/3257'
[rails.git] / test / system / preferences_test.rb
1 require "application_system_test_case"
2
3 class PreferencesTest < ApplicationSystemTestCase
4   def test_flash_message_shows_in_original_language
5     sign_in_as(create(:user))
6
7     visit edit_preferences_path
8     click_on "Update Preferences"
9
10     assert page.has_content?("Preferences updated")
11   end
12
13   def test_flash_message_shows_in_new_language
14     sign_in_as(create(:user))
15
16     visit edit_preferences_path
17     fill_in "Preferred Languages", :with => "fr"
18     click_on "Update Preferences"
19
20     # TODO: enable with french translation when that's available
21     # assert page.has_content?("Préférences mises à jour") # rubocop:disable Style/AsciiComments
22   end
23 end