X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6ffe31795ba8c116e612f3ad747f0522874de23f..423ae5f8e048c91c00d7c46c05c7b529cbe2f9c7:/test/system/site_test.rb?ds=inline diff --git a/test/system/site_test.rb b/test/system/site_test.rb index 65167989a..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.2) assert_selector ".tooltip", :text => "Zoom in" end end