Commit dfd4f493 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

test_browser.rb: do not continue tests if we are not on a Vidjil page

This happens when the server address is wrong.
parent 33e95135
......@@ -48,6 +48,13 @@ class Browser < MiniTest::Test
#$b = :chrome
$b.goto index_path
# check that the browser loaded correctly
if not $b.div(:id => 'logo').present?
print "Loading of Vidjil browser failed. Do not execute remaining tests."
# A live server can be configured with a database.
# The welcome popup should not be tested.
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