Commit 8190f4f0 authored by marc duez's avatar marc duez

revert 2baf69

parent 987293fe
...@@ -60,18 +60,16 @@ class BrowserTest < MiniTest::Test ...@@ -60,18 +60,16 @@ class BrowserTest < MiniTest::Test
# A live server can be configured with a database. # A live server can be configured with a database.
# The welcome popup should not be tested. # The welcome popup should not be tested.
sleep(5) if not ENV['LIVE_SERVER']
if $b.div(id: 'tip-container').present? print "Welcome popup.\n"
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
end
if $b.div(:class => 'db_div').present? # wait for the welcoming popup
$b.div(:class => 'db_div').element(:class => 'icon-cancel').click $b.div(:class => 'popup_msg').wait_until(timeout: 2){ |el| el.present? }
end
if $b.div(:class => 'popup_msg').present? # close the welcoming popup
$b.div(:class => 'popup_msg').button(:text => 'ok').click $b.div(:class => 'popup_msg').button(:text => 'ok').click
assert (not $b.div(:class => 'popup_msg').present?), "Popup message still present after trying to close it"
end end
print "Import data.\n" print "Import data.\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment