Commit 5c97f86f authored by marc duez's avatar marc duez

watir tests : ignore local_storage for legacy drivers

parent 606e973a
Pipeline #162702 passed with stages
in 14 minutes and 15 seconds
......@@ -51,7 +51,7 @@ class BrowserTest < MiniTest::Test
print "Testing Vidjil client at " + index_path + "\n"
$b.goto index_path
if local_storage != nil
if local_storage != nil and $b.driver.respond_to? :local_storage
$b.driver.execute_script("localStorage.clear();")
print "Set localStorage :\n"
local_storage.each do |key, value|
......
......@@ -25,7 +25,9 @@ class TestGraph < BrowserTest
type_name = "local_storage"
$b.div(:id => 'visu2_menu').hover
sleep 0.5 #wait for menu to finish transition before starting
test_name_values(type_name)
if $b.driver.respond_to? :local_storage
test_name_values(type_name)
end
end
......
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