Commit 9e9013db authored by marc duez's avatar marc duez

functionnal test : update test

clones always exists in segmenter > replace "exists?" with "present?"
parent 2d1567fc
Pipeline #111563 passed with stages
in 15 minutes and 11 seconds
......@@ -149,19 +149,19 @@ end
clustered = $b.clone_info('1')
assert ($b.clone_in_scatterplot('1', :class => "circle_select").exists?)
assert ($b.clone_in_graph('1', :class=> "graph_select").exists?)
assert ($b.clone_in_segmenter('1').exists? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ($b.clone_in_segmenter('1').present? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( not $b.clone_in_scatterplot('2', :class => "circle_select").exists?)
assert ( not $b.clone_in_graph('2', :class=> "graph_select").exists?)
assert ( not $b.clone_in_segmenter('2').exists? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( not $b.clone_in_segmenter('2').present? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
clustered[:cluster].click
assert ($b.clone_in_scatterplot('1', :class => "circle_select").exists?)
assert ($b.clone_in_graph('1', :class=> "graph_select").exists?)
assert ($b.clone_in_segmenter('1').exists? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ($b.clone_in_segmenter('1').present? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
$b.until { $b.clone_in_scatterplot('2', :class => "circle_select").exists? }
assert ( $b.clone_in_graph('2', :class=> "graph_select").exists?)
assert ( $b.clone_in_segmenter('2').exists? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( $b.clone_in_segmenter('2').present? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
clustered[:cluster].click
$b.update_icon.wait_while(&:present?)
......
......@@ -140,7 +140,7 @@ class TestMultilocus < BrowserTest
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?)
assert ( $b.clone_in_segmenter('25').exists? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( $b.clone_in_segmenter('25').present? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
stats = $b.statsline
assert (stats.text.include? '1 clone'), ">> Incorrect stats, should have one clone"
......@@ -343,13 +343,13 @@ class TestMultilocus < BrowserTest
$b.update_icon.wait_while(&:present?)
$b.until { $b.clone_in_scatterplot('1', :class => "circle_select").exists?}
assert ( $b.clone_in_graph('1', :class=> "graph_select").exists?)
assert ( $b.clone_in_segmenter('1').exists? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( $b.clone_in_segmenter('1').present? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( $b.clone_in_scatterplot('37', :class => "circle_select").exists?)
assert ( $b.clone_in_graph('37', :class=> "graph_select").exists?)
assert ( $b.clone_in_segmenter('37').exists? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( $b.clone_in_segmenter('37').present? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( $b.clone_in_scatterplot('90', :class => "circle_select").exists?)
assert ( $b.clone_in_graph('90', :class=> "graph_select").exists?)
assert ( $b.clone_in_segmenter('90').exists? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
assert ( $b.clone_in_segmenter('90').present? ), ">> fail to add clone to segmenter by clicking on the list or scatterplot"
$b.clone_in_cluster('90', '1')[:delete].click
$b.clone_in_cluster('90', '37')[:delete].click
......
......@@ -39,19 +39,19 @@ class TestScatterplot < BrowserTest
$b.clone_in_list("0").click
$b.update_icon.wait_while(&:present?)
assert ( $b.clone_in_segmenter('0').exists? ), ">> Firste click; Correct selection of clone 0 by click in scatterplot"
assert ( not $b.clone_in_segmenter('1').exists? ), ">> Firste click; Clone 1 should not be present in segmenter"
assert ( $b.clone_in_segmenter('0').present? ), ">> Firste click; Correct selection of clone 0 by click in scatterplot"
assert ( not $b.clone_in_segmenter('1').present? ), ">> Firste click; Clone 1 should not be present in segmenter"
$b.clone_in_list("1").click
$b.update_icon.wait_while(&:present?)
assert ( not $b.clone_in_segmenter('0').exists? ), ">> Another click; Clone 0 should not be present anymore in segmenter"
assert ( $b.clone_in_segmenter('1').exists? ), ">> Another click; Correct selection of clone 1 after second click in scatterplot"
assert ( not $b.clone_in_segmenter('0').present? ), ">> Another click; Clone 0 should not be present anymore in segmenter"
assert ( $b.clone_in_segmenter('1').present? ), ">> Another click; Correct selection of clone 1 after second click in scatterplot"
$b.clone_in_list("0").click(:control)
$b.update_icon.wait_while(&:present?)
assert ( $b.clone_in_segmenter('0').exists? ), ">> ctrl+click; Clone 0 should be present in segmenter"
assert ( $b.clone_in_segmenter('1').exists? ), ">> ctrl+click; Clone 1 should be present in segmenter"
assert ( $b.clone_in_segmenter('0').present? ), ">> ctrl+click; Clone 0 should be present in segmenter"
assert ( $b.clone_in_segmenter('1').present? ), ">> ctrl+click; Clone 1 should be present in segmenter"
end
......@@ -64,19 +64,19 @@ class TestScatterplot < BrowserTest
$b.clone_in_list("0").click
$b.update_icon.wait_while(&:present?)
assert ( $b.clone_in_segmenter('0').exists? ), ">> Firste click; Correct selection of clone 0 by click in scatterplot"
assert ( not $b.clone_in_segmenter('1').exists? ), ">> Firste click; Clone 1 should not be present in segmenter"
assert ( $b.clone_in_segmenter('0').present? ), ">> Firste click; Correct selection of clone 0 by click in scatterplot"
assert ( not $b.clone_in_segmenter('1').present? ), ">> Firste click; Clone 1 should not be present in segmenter"
$b.clone_in_list("1").click
$b.update_icon.wait_while(&:present?)
assert ( not $b.clone_in_segmenter('0').exists? ), ">> Another click; Clone 0 should not be present anymore in segmenter"
assert ( $b.clone_in_segmenter('1').exists? ), ">> Another click; Correct selection of clone 1 after second click in scatterplot"
assert ( not $b.clone_in_segmenter('0').present? ), ">> Another click; Clone 0 should not be present anymore in segmenter"
assert ( $b.clone_in_segmenter('1').present? ), ">> Another click; Correct selection of clone 1 after second click in scatterplot"
$b.clone_in_list("0").click(:control)
$b.update_icon.wait_while(&:present?)
assert ( $b.clone_in_segmenter('0').exists? ), ">> ctrl+click; Clone 0 should be present in segmenter"
assert ( $b.clone_in_segmenter('1').exists? ), ">> ctrl+click; Clone 1 should be present in segmenter"
assert ( $b.clone_in_segmenter('0').present? ), ">> ctrl+click; Clone 0 should be present in segmenter"
assert ( $b.clone_in_segmenter('1').present? ), ">> ctrl+click; Clone 1 should be present in segmenter"
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