]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/site_test.rb
Invert trace images in dark mode
[rails.git] / test / system / site_test.rb
index 0fa524675ce3cc68200d18de43a2e9e472be3926..d7b9f279e9d3d874ca3240d604749efa9e25173f 100644 (file)
@@ -71,9 +71,10 @@ 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"
+      find("#{selector}.disabled") # Ensure that capybara has waited for JS to finish processing
+
       assert_no_selector ".tooltip"
       find(selector).hover
       assert_no_selector ".tooltip"
       find(selector).hover
-      sleep(0.5)
       assert_selector ".tooltip", :text => "Zoom in"
     end
   end
       assert_selector ".tooltip", :text => "Zoom in"
     end
   end