Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit dfd4f493 authored by Mathieu Giraud's avatar Mathieu Giraud

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 = VidjilBrowser.new :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."
exit
end
# A live server can be configured with a database.
# The welcome popup should not be tested.
......
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