From: Tom Hughes Date: Wed, 30 Nov 2022 12:58:13 +0000 (+0000) Subject: Make tooltip tests more robust X-Git-Tag: live~1563 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6ffe31795ba8c116e612f3ad747f0522874de23f?ds=sidebyside;hp=-c Make tooltip tests more robust --- 6ffe31795ba8c116e612f3ad747f0522874de23f diff --git a/test/system/site_test.rb b/test/system/site_test.rb index 5528bb79b..65167989a 100644 --- a/test/system/site_test.rb +++ b/test/system/site_test.rb @@ -71,7 +71,9 @@ class SiteTest < ApplicationSystemTestCase find("h1").hover # un-hover original element visit "#map=10/0/0" + assert_no_selector ".tooltip" find(selector).hover + sleep(0.2) assert_selector ".tooltip", :text => "Zoom in" end end