X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/84c8289e06c092ac987c2abe0d8394df3ab9630f..42224790b56acea5c653f3085c374f28d56e590d:/test/system/site_test.rb?ds=inline diff --git a/test/system/site_test.rb b/test/system/site_test.rb index 0ed755a09..d7b9f279e 100644 --- a/test/system/site_test.rb +++ b/test/system/site_test.rb @@ -70,7 +70,10 @@ class SiteTest < ApplicationSystemTestCase assert_no_selector ".tooltip", :text => "Zoom in" find("h1").hover # un-hover original element - visit "/#map=10/0/0" + 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