Commit 48cef546 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

test_browser.rb: tests that the popup is present

This is the first test that will fail if a bad index.html is given.
parent 0a032d36
......@@ -42,9 +42,12 @@ class Browser < MiniTest::Test
#$b = :chrome
$b.goto index_path
# check the welcoming popup
assert ($b.div(:id => 'popup-msg').present?), "Popup message is not present at the opening of Vidjil"
# close the welcoming popup
$b.div(:id => 'popup-msg').button(:text => 'ok').click
assert (not $b.div(:id => 'popup-msg').present?), "Popup message still present"
assert (not $b.div(:id => 'popup-msg').present?), "Popup message still present after trying to close it"
$b.div(:id => 'demo_file_menu').click
$b.div(:id => 'demo_file_menu').a(:id => 'import_data_anchor').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