Commit 7aa84d36 authored by Mikael Salson's avatar Mikael Salson Committed by Mathieu Giraud

test_multilocus.rb: .text was sometimes empty in headless mode

This is terribly weird, but this could be circumvented using the inner_html.
parent 9acc7e10
......@@ -99,7 +99,7 @@ class TestMultilocus < BrowserTest
assert ( $b.clone_in_graph('25', :class => "graph_focus").exists?), ">> fail to focus correct graphLine after hovering a clone in the list"
clone_name = $b.clone_info('25')[:name]
assert ( $b.infoline.text == clone_name.title), ">> Clone name is not correct in focus div"
assert ( $b.infoline.inner_html == clone_name.title), ">> Clone name is not correct in focus div"
end
def test_05_focus_in_list
......@@ -125,7 +125,7 @@ class TestMultilocus < BrowserTest
def check_when_list_or_scatterplot_clicked
clone_name = $b.clone_info('25')[:name]
assert ( $b.infoline.text == clone_name.title), ">> Clone name is not correct in focus div"
assert ( $b.infoline.inner_html == clone_name.title), ">> Clone name is not correct in focus div"
assert ( $b.clone_in_list('25').class_name.include? "list_select" ), ">> Incorrect class name, clone is not selected"
assert ( $b.clone_in_scatterplot('25', :class => "circle_select").exists?)
assert ( $b.clone_in_graph('25', :class=> "graph_select").exists?)
......
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