Commit 7e933712 authored by Mathieu Giraud's avatar Mathieu Giraud

test_browser.rb: canonical absolute paths for index.html and .vidjil files

Some webdrivers require such canonical paths.
parent f6de8a5b
......@@ -33,9 +33,10 @@ class Browser < MiniTest::Test
def set_browser
folder_path = Dir.pwd
index_path = 'file://' + folder_path + '/../index.html'
data_path = folder_path + '/../../doc/analysis-example1.vidjil'
analysis_path = folder_path + '/test.analysis'
folder_path.sub! '/browser/test', ''
index_path = 'file://' + folder_path + '/browser/index.html'
data_path = folder_path + '/doc/analysis-example1.vidjil'
analysis_path = folder_path + '/browser/test/test.analysis'
$b = VidjilBrowser.new :firefox
#$b = Watir::Browser.new :chrome
......
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