Add system tests for communities page
This commit is contained in:
parent
d17d13c806
commit
819e5ecf94
1 changed files with 22 additions and 0 deletions
22
test/system/view_communities_test.rb
Normal file
22
test/system/view_communities_test.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue