Skip to content

Commit

Permalink
Disable not applicable "/communities" test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Dec 17, 2024
1 parent 9c9a308 commit 183ca79
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions test/system/view_communities_test.rb
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

0 comments on commit 183ca79

Please sign in to comment.