Commit bd2a123b authored by Mikaël Salson's avatar Mikaël Salson

browser_test.rb: Load analysis

The analysis was not properly loaded (we didn't use that yet for the
functional tests).
parent 5ac79bfc
......@@ -31,6 +31,7 @@ class BrowserTest < MiniTest::Test
folder_path.sub! '/browser/test', ''
index_path = 'file://' + folder_path + '/browser/index.html'
data_path = folder_path + vidjil_file
analysis_path = nil
if analysis_file != nil
analysis_path = folder_path + analysis_file
end
......@@ -74,7 +75,14 @@ class BrowserTest < MiniTest::Test
# select data file
$b.div(:id => 'file_menu').file_field(:name,"json").set(data_path)
# select analysis file
if analysis_path != nil
$b.div(:id => 'file_menu').file_field(:name, "pref").set(analysis_path)
end
$b.div(:id => 'file_menu').button(:text => 'start').click
end
def close_everything
......
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