1 require "application_system_test_case"
3 class ViewCommunitiesTest < ApplicationSystemTestCase
5 # Check that all the parsing of the chapter information has worked
7 assert_link "OpenStreetMap US", :href => "https://www.openstreetmap.us/"
8 assert_link "OpenStreetMap Belgium", :href => "https://openstreetmap.be/"
11 def test_translated_links
12 sign_in_as(create(:user))
14 visit edit_preferences_path
15 fill_in "Preferred Languages", :with => "fr"
16 click_button "Update Preferences"
19 assert_link "OpenStreetMap États-Unis", :href => "https://www.openstreetmap.us/"
20 assert_link "OpenStreetMap Belgique", :href => "https://openstreetmap.be/"