Commit 3c8273cf authored by Mikaël Salson's avatar Mikaël Salson

test browser: Fix test broken with commit 3084307d

parent fa06cc26
......@@ -41,7 +41,7 @@ class TestMultilocus < BrowserTest
def test_00_info_point
assert (not $b.div(:id => 'info_timepoint').present?), "Info timepoint should not be present"
$b.div(:id => 'info').div(:class => 'sample_details').span(:text => 'i').click
$b.info_point.i.click
assert ($b.div(:id => 'info_timepoint').visible?), "After clicking info timepoint should be visible"
table = $b.div(:id => 'info_timepoint').table
......
......@@ -92,6 +92,11 @@ class VidjilBrowser < Watir::Browser
return graph.element(extra.merge(:id => 'time'+id))
end
# Information on the currently displayed point
def info_point
return element(:id => 'info_point')
end
def info_segmented
return element(:id => 'info_segmented').span(:index => 1)
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