Commit 7d38e294 authored by Mikaël Salson's avatar Mikaël Salson

browser/test/functional: tip-container may not exist

It depends on the client configuration
parent 63dc4e6b
......@@ -7,7 +7,9 @@ class TestSimple < BrowserTest
super
if not defined? $b
set_browser("/doc/analysis-example1.vidjil")
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
if $b.div(id: 'tip-container').present?
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
end
end
end
......
......@@ -8,7 +8,9 @@ class TestLoadingAnalysis < BrowserTest
if not defined? $b
set_browser("/doc/analysis-example2.vidjil", "/doc/analysis-example2.analysis")
$b.clone_in_scatterplot('0').wait_until(&:present?)
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
if $b.div(id: 'tip-container').present?
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
end
end
end
......
......@@ -9,7 +9,9 @@ class TestMultilocus < BrowserTest
super
if not defined? $b
set_browser("/doc/analysis-example.vidjil")
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
if $b.div(id: 'tip-container').present?
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
end
end
end
......
......@@ -8,8 +8,10 @@ class TestNormalization < BrowserTest
def setup
super
if not defined? $b
set_browser("/doc/analysis-example.vidjil")
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
set_browser("/doc/analysis-example.vidjil")
if $b.div(id: 'tip-container').present?
$b.div(:id => 'tip-container').div(:class => 'tip_1').element(:class => 'icon-cancel').click
end
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