Make tooltip tests more robust

This commit is contained in:
Tom Hughes 2022-11-30 12:58:13 +00:00
parent 152414861c
commit 6ffe31795b

View file

@ -71,7 +71,9 @@ class SiteTest < ApplicationSystemTestCase
find("h1").hover # un-hover original element
visit "#map=10/0/0"
assert_no_selector ".tooltip"
find(selector).hover
sleep(0.2)
assert_selector ".tooltip", :text => "Zoom in"
end
end