]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/site_test.rb
Rename map layer javascript files
[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("#{selector}.disabled") # Ensure that capybara has waited for JS to finish processing
+
       assert_no_selector ".tooltip"
       find(selector).hover
-      sleep(0.5)
       assert_selector ".tooltip", :text => "Zoom in"
     end
   end