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
print "Welcome popup.\n"
# check the welcoming popup
assert ($b.div(:class => 'popup_msg').present?), "Popup message is not present at the opening of Vidjil"
# wait for the welcoming popup
$b.div(:class => 'popup_msg').wait_until_present(2)
# close the welcoming popup
$b.div(:class => 'popup_msg').button(:text => 'ok').click
Supports Markdown
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