]> git.openstreetmap.org Git - rails.git/blob - test/system/preferences_test.rb
Update to rails 7.2.1.2
[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_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     assert_content "Préférences mises à jour"
21   end
22 end