From 570206dadaf90709d53b2ed848af413b60dd7b0a Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 11 Apr 2025 17:55:34 +0300 Subject: [PATCH] Test if history shows changesets at expected locations --- test/system/history_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- 2.39.5