]> git.openstreetmap.org Git - rails.git/commitdiff
Make tooltip tests more robust
authorTom Hughes <tom@compton.nu>
Wed, 30 Nov 2022 12:58:13 +0000 (12:58 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 30 Nov 2022 12:58:13 +0000 (12:58 +0000)
test/system/site_test.rb

index 5528bb79bb6a11ebb51a0104cc94b78dd9213e1e..65167989ac24d8ab17dd182401406970efd8c28d 100644 (file)
@@ -71,7 +71,9 @@ class SiteTest < ApplicationSystemTestCase
       find("h1").hover # un-hover original element
 
       visit "#map=10/0/0"
       find("h1").hover # un-hover original element
 
       visit "#map=10/0/0"
+      assert_no_selector ".tooltip"
       find(selector).hover
       find(selector).hover
+      sleep(0.2)
       assert_selector ".tooltip", :text => "Zoom in"
     end
   end
       assert_selector ".tooltip", :text => "Zoom in"
     end
   end