Commit 1084490e authored by flothoni's avatar flothoni Committed by Mikaël Salson

test_cluster.rb; add a test on name of samples if focus given

Link to #4221
parent 752d1cca
Pipeline #130982 failed with stages
in 10 minutes and 40 seconds
......@@ -55,7 +55,7 @@ class TestCluster < BrowserTest
def test_05_switch_onlyOneSample
cloneId = '4'
sleep 1
$b.update_icon.wait_while(&:present?)
# exist will not work as the clone is present, but not visible.
# So use the number of points of the line [with new smooth line, there is no formula]
polyline4 = $b.path(:id => "polyline"+cloneId )
......@@ -72,9 +72,22 @@ class TestCluster < BrowserTest
# change current sample, will not include cloneId
$b.send_keys :arrow_right
sleep 1
$b.update_icon.wait_while(&:present?)
polyline4 = $b.path(:id => "polyline"+cloneId )
assert ( polyline4.attribute_value("d").split(',').length == 2 ), ">> clone is NOT present in the graph if switched in filter menu and sample with size at 0 for this clone"
## control if name get the '*' if focus on it
$time0 = $b.graph_x_legend("0")
$time1 = $b.graph_x_legend("1")
assert ( $time0.text == "diag" ), "label of timepoint 0 in graph don't have the '*'"
assert ( $time1.text == "fu1 *" ), "label of timepoint 1 in graph have the '*'"
### reset focus
$b.menu_filter.click
$b.div(:id => "filter_switch_sample").click
$b.update_icon.wait_while(&:present?)
assert ( $time0.text == "diag" ), "label of timepoint 0 in graph still don't have the '*'"
assert ( $time1.text == "fu1" ), "label of timepoint 1 in graph don't have the '*' anymore"
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