X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e2f071869f1986a6e4006f4ead04fbcfe3ca17c7..927cc9f45e6626e2a82403d1263b4a16d601e30b:/test/system/site_test.rb diff --git a/test/system/site_test.rb b/test/system/site_test.rb index 0fa524675..d7b9f279e 100644 --- a/test/system/site_test.rb +++ b/test/system/site_test.rb @@ -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