]> git.openstreetmap.org Git - rails.git/blob - test/system/view_communities_test.rb
Rework note events to avoid raw html in translations
[rails.git] / test / system / view_communities_test.rb
1 require "application_system_test_case"
2
3 class ViewCommunitiesTest < ApplicationSystemTestCase
4   def test_lc_links
5     # Check that all the parsing of the chapter information has worked
6     visit "/communities"
7     assert_link "OpenStreetMap US", :href => "https://www.openstreetmap.us/"
8     assert_link "OpenStreetMap Belgium", :href => "https://openstreetmap.be/"
9   end
10
11   def test_translated_links
12     sign_in_as(create(:user))
13
14     visit edit_preferences_path
15     fill_in "Preferred Languages", :with => "fr"
16     click_on "Update Preferences"
17
18     visit "/communities"
19     assert_link "OpenStreetMap États-Unis", :href => "https://www.openstreetmap.us/"
20     assert_link "OpenStreetMap Belgique", :href => "https://openstreetmap.be/"
21   end
22 end