Commit eab86be9 authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud
Browse files

browser_test.rb: Wait for popup

Popup may take time to appear (particularly with slower browsers?).
Therefore we wait for it rather than directly testing for it.
parent 2a1458e2
...@@ -64,8 +64,8 @@ class BrowserTest < MiniTest::Test ...@@ -64,8 +64,8 @@ class BrowserTest < MiniTest::Test
print "Welcome popup.\n" print "Welcome popup.\n"
# check the welcoming popup # wait for the welcoming popup
assert ($b.div(:class => 'popup_msg').present?), "Popup message is not present at the opening of Vidjil" $b.div(:class => 'popup_msg').wait_until_present(2)
# close the welcoming popup # close the welcoming popup
$b.div(:class => 'popup_msg').button(:text => 'ok').click $b.div(:class => 'popup_msg').button(:text => 'ok').click
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