]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/site_test.rb
Merge remote-tracking branch 'upstream/pull/5157'
[rails.git] / test / system / site_test.rb
index 5528bb79bb6a11ebb51a0104cc94b78dd9213e1e..d7b9f279e9d3d874ca3240d604749efa9e25173f 100644 (file)
@@ -71,6 +71,9 @@ 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
       assert_selector ".tooltip", :text => "Zoom in"
     end