]> git.openstreetmap.org Git - rails.git/blob - test/system/view_communities_test.rb
Add frozen_string_literal comments to ruby files
[rails.git] / test / system / view_communities_test.rb
1 # frozen_string_literal: true
2
3 require "application_system_test_case"
4
5 class ViewCommunitiesTest < ApplicationSystemTestCase
6   def test_lc_links
7     # Check that all the parsing of the chapter information has worked
8     visit "/communities"
9     assert_link "OpenStreetMap US", :href => "https://www.openstreetmap.us/"
10     assert_link "OpenStreetMap Belgium", :href => "https://openstreetmap.be/"
11   end
12
13   def test_translated_links
14     sign_in_as(create(:user))
15
16     visit basic_preferences_path
17     select "français", :from => "Preferred Language"
18     click_on "Update Preferences"
19
20     visit "/communities"
21     assert_link "OpenStreetMap États-Unis", :href => "https://www.openstreetmap.us/"
22     assert_link "OpenStreetMap Belgique", :href => "https://openstreetmap.be/"
23   end
24 end