Skip to content

Commit 74a0abd

Browse files
committed
Addresses OpenHistoricalMap/issues#1180 by using OSM Standard/Mapnik layer in note_layer tests
1 parent 8609d22 commit 74a0abd

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

test/system/note_layer_test.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)