@hlfan commented on this pull request.
> @@ -0,0 +1,11 @@
+require "application_system_test_case"
+
+class FixthemapTest < ApplicationSystemTestCase
+ test "should have 'create a note' link with correct map hash" do
+ visit fixthemap_path(:lat => 60, :lon => 30, :zoom => 10)
+
+ within_content_body do
+ assert_link "Add a note to the map", :href =>
%r{/note/new#map=10/60\.\d+/30\.\d+}
```suggestion
assert_link "Add a note to the map", :href =>
%r{/note/new#map=10/60(\.\d+)?/30(\.\d+)?}
```
There could also be no decimal places.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5869#pullrequestreview-2733415486
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5869/review/2733415...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev