@@ -9,7 +9,9 @@ class NoteLayerTest < ApplicationSystemTestCase
99 create ( :note_comment , :note => note , :body => "Note description" , :event => "opened" )
1010 end
1111
12- visit root_path ( :anchor => "map=18/1.1/1.1&layers=N" )
12+ # OHM variant: test is designed to work with OSM's Standard/Mapnik style
13+ # so we prepend "M" to the `layers` argument.
14+ visit root_path ( :anchor => "map=18/1.1/1.1&layers=MN" )
1315 all ".leaflet-marker-icon" , :count => 1 do |marker |
1416 assert_equal "Note description" , marker [ "title" ]
1517 end
@@ -22,7 +24,9 @@ class NoteLayerTest < ApplicationSystemTestCase
2224 create ( :note_comment , :note => note , :body => "Note comment visible" )
2325 end
2426
25- visit root_path ( :anchor => "map=18/1.1/1.1&layers=N" )
27+ # OHM variant: test is designed to work with OSM's Standard/Mapnik style
28+ # so we prepend "M" to the `layers` argument.
29+ visit root_path ( :anchor => "map=18/1.1/1.1&layers=MN" )
2630 all ".leaflet-marker-icon" , :count => 1 do |marker |
2731 assert_equal "" , marker [ "title" ]
2832 end
@@ -34,7 +38,9 @@ class NoteLayerTest < ApplicationSystemTestCase
3438 create ( :note_comment , :note => note , :body => "Note description is hidden" , :event => "opened" , :visible => false )
3539 end
3640
37- visit root_path ( :anchor => "map=18/1.1/1.1&layers=N" )
41+ # OHM variant: test is designed to work with OSM's Standard/Mapnik style
42+ # so we prepend "M" to the `layers` argument.
43+ visit root_path ( :anchor => "map=18/1.1/1.1&layers=MN" )
3844 all ".leaflet-marker-icon" , :count => 1 do |marker |
3945 assert_equal "" , marker [ "title" ]
4046 end
0 commit comments