forked from openstreetmap/openstreetmap-website
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable not applicable "/communities" test suite.
- Loading branch information
1 parent
9c9a308
commit 183ca79
Showing
1 changed file
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
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", :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 États-Unis", :href => "https://www.openstreetmap.us/" | ||
assert_link "OpenStreetMap Belgique", :href => "https://openstreetmap.be/" | ||
end | ||
# OHM has no Communities/Chapters and thus has no "/communities" uri | ||
# | ||
# 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", :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 États-Unis", :href => "https://www.openstreetmap.us/" | ||
# assert_link "OpenStreetMap Belgique", :href => "https://openstreetmap.be/" | ||
# end | ||
end |