Commit a0175ae1 authored by Mikaël Salson's avatar Mikaël Salson Committed by Marc Duez
Browse files

test_browser.rb: Test if informations on the timepoint are present

parent 40c30d9a
...@@ -79,6 +79,16 @@ class Browser < MiniTest::Test ...@@ -79,6 +79,16 @@ class Browser < MiniTest::Test
assert ($b.element(:id => 'visu_axis_y_container').element(:class => 'sp_legend', :index => 1).text == '?'), "Bad legend for scatterplot" assert ($b.element(:id => 'visu_axis_y_container').element(:class => 'sp_legend', :index => 1).text == '?'), "Bad legend for scatterplot"
end end
def test_00_info_point
assert (not $b.div(:id => 'info_timepoint').visible?), "Info timepoint should not be visible"
$b.div(:id => 'info_point').span(:text => 'Info').click
assert ($b.div(:id => 'info_timepoint').visible?), "After clicking info timepoint should be visible"
table = $b.div(:id => 'info_timepoint').table
assert (table[1][1].text == '437164'), "Incorrect number of reads in infopoint"
assert (table[2][1].text.include? '335662'), "Incorrect number of reads in infopoint"
end
def test_01_init def test_01_init
begin begin
list = $b.div(:id => 'list_clones') list = $b.div(:id => 'list_clones')
......
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