X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cf3fa3bb2d0beb67ac4944941fc33080b56f0d66..e2a6701696761f8f290796a0b4c30df9a7425ea4:/test/system/site_test.rb?ds=sidebyside diff --git a/test/system/site_test.rb b/test/system/site_test.rb index 5528bb79b..d7b9f279e 100644 --- a/test/system/site_test.rb +++ b/test/system/site_test.rb @@ -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