]> git.openstreetmap.org Git - rails.git/commitdiff
Test if history shows changesets at expected locations
authorAnton Khorev <tony29@yandex.ru>
Fri, 11 Apr 2025 14:55:34 +0000 (17:55 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 11 Apr 2025 14:55:45 +0000 (17:55 +0300)
test/system/history_test.rb

index cb36473541757a33a86bd5c0898ac1da6a4d1d0d..01652b6b08cda11fd0b15a0ac7d04b9cd1a10549 100644 (file)
@@ -176,6 +176,16 @@ class HistoryTest < ApplicationSystemTestCase
     end
   end
 
     end
   end
 
+  test "changeset bbox is shown on the map and clickable" do
+    user = create(:user)
+    changeset = create(:changeset, :user => user, :num_changes => 1, :bbox => [50, 50, 51, 51])
+
+    visit "#{user_path(user)}/history"
+    find_by_id("map").click
+
+    assert_current_path changeset_path(changeset)
+  end
+
   private
 
   def create_visible_changeset(user, comment)
   private
 
   def create_visible_changeset(user, comment)