X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dc28f1dccc5589afa667bf6959f12e6b18589459..8cef62cd2cec4a297e46b4f2a86c9afeadb3b283:/test/system/view_communities_test.rb diff --git a/test/system/view_communities_test.rb b/test/system/view_communities_test.rb new file mode 100644 index 000000000..f431ed64a --- /dev/null +++ b/test/system/view_communities_test.rb @@ -0,0 +1,22 @@ +require "application_system_test_case" + +class ViewCommunitiesTest < ApplicationSystemTestCase + def test_lc_links + # Check that all the parsing of the chapter information has worked + visit "/communities" + assert_link "OpenStreetMap US", :href => "https://www.openstreetmap.us/" + assert_link "OpenStreetMap Belgium Local Chapter", :href => "https://openstreetmap.be/" + end + + def test_translated_links + sign_in_as(create(:user)) + + visit edit_preferences_path + fill_in "Preferred Languages", :with => "fr" + click_on "Update Preferences" + + visit "/communities" + assert_link "OpenStreetMap US", :href => "https://www.openstreetmap.us/" + assert_link "Chapitre local OpenStreetMap Belgique", :href => "https://openstreetmap.be/" + end +end