X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c20160d313286739fc14e89162a3afff6ccc906f..efc65b86a23032e7867314082f80e1da3654b51a:/test/system/browse_test.rb?ds=inline diff --git a/test/system/browse_test.rb b/test/system/browse_test.rb index 15dc1cb9b..3faf3b75f 100644 --- a/test/system/browse_test.rb +++ b/test/system/browse_test.rb @@ -10,4 +10,14 @@ class BrowseTest < ApplicationSystemTestCase assert_selector "#map .leaflet-overlay-pane path" end + + test "map should center on a viewed node" do + node = create(:node, :lat => 59.55555, :lon => 29.55555) + + visit node_path(node) + + find("#map [aria-label='Share']").click + share_url = find_by_id("long_input").value + assert_match %r{map=\d+/59\.\d+/29\.\d+}, share_url + end end