From: Anton Khorev Date: Fri, 11 Apr 2025 14:55:34 +0000 (+0300) Subject: Test if history shows changesets at expected locations X-Git-Tag: live~50^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/570206dadaf90709d53b2ed848af413b60dd7b0a?ds=sidebyside;hp=-c Test if history shows changesets at expected locations --- 570206dadaf90709d53b2ed848af413b60dd7b0a diff --git a/test/system/history_test.rb b/test/system/history_test.rb index cb3647354..01652b6b0 100644 --- a/test/system/history_test.rb +++ b/test/system/history_test.rb @@ -176,6 +176,16 @@ class HistoryTest < ApplicationSystemTestCase 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)