From d80a0f6d69e27dd6444317d93737eeb4b2c6299d Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 30 May 2025 19:49:05 +0300 Subject: [PATCH] Shift-click Zoom Out in notes layer tooltip test Zooms out further when clicked with shift. Previously wasn't zooming out far enough on some configurations. --- test/system/site_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/system/site_test.rb b/test/system/site_test.rb index df7682fe9..ad8d2fc2f 100644 --- a/test/system/site_test.rb +++ b/test/system/site_test.rb @@ -80,7 +80,7 @@ class SiteTest < ApplicationSystemTestCase end test "notes layer tooltip appears on zoom out" do - visit "/#map=9/40/-4" # depends on zoom levels where notes are allowed + visit "/#map=10/40/-4" # depends on zoom levels where notes are allowed find(".control-layers .control-button").click li = find(".layers-ui .overlay-layers li:first-child") @@ -88,7 +88,7 @@ class SiteTest < ApplicationSystemTestCase li.hover # try to trigger disabled tooltip zoomout = find(".control-button.zoomout") zoomout.hover # un-hover the tooltip that's being tested - zoomout.click + zoomout.click(:shift) li.matches_css? ".disabled" li.hover assert_selector ".tooltip", :text => "Zoom in" -- 2.39.5