Commit 2cc7e88b authored by flothoni's avatar flothoni Committed by Mathieu Giraud

test functional; update selection of elements

Not the correct method for the selection. 
Link to #1292
parent 86a1cb8d
...@@ -362,15 +362,15 @@ class TestMultilocus < BrowserTest ...@@ -362,15 +362,15 @@ class TestMultilocus < BrowserTest
## Test tag selection for one clone ## Test tag selection for one clone
$b.clone_info('25')[:star].click $b.clone_info('25')[:star].click
$b.div("tagElem_0").click $b.element(:id => 'tagElem_0').click
assert ($b.clone_info('25')[:name].style('color') == 'rgba(220, 50, 47, 1)' ) , "clone 25 have changed color" assert ($b.clone_info('25')[:name].style('color') == 'rgba(220, 50, 47, 1)' ) , "clone 25 have changed color"
assert ( not $b.clone_info('88')[:name].style('color') == 'rgba(220, 50, 47, 1)' ) , "clone 88 (second of the selection) haven't chaged color " assert ( not $b.clone_info('88')[:name].style('color') == 'rgba(220, 50, 47, 1)' ) , "clone 88 (second of the selection) haven't chaged color "
## Test tag selection for multiple clone ## Test tag selection for multiple clone
$b.i("tag_icon__multiple").click $b.element(:id => "tag_icon__multiple").click
$b.div("tagElem_6").click $b.element(:id => 'tagElem_6').click
assert ($b.clone_info('25')[:name].style('color') == 'rgba(211, 54, 130, 1)' ) , "clone 25 have also changed color" assert ($b.clone_info('25')[:name].style('color') == 'rgba(211, 54, 130, 1)' ) , "clone 25 have also changed color"
assert ($b.clone_info('77')[:name].style('color') == 'rgba(211, 54, 130, 1)' ) , "clone 77 have also changed color" assert ($b.clone_info('77')[:name].style('color') == 'rgba(211, 54, 130, 1)' ) , "clone 77 have also changed color"
assert ($b.clone_info('88')[:name].style('color') == 'rgba(211, 54, 130, 1)' ) , "clone 88 have also changed color" assert ($b.clone_info('88')[:name].style('color') == 'rgba(211, 54, 130, 1)' ) , "clone 88 have also changed color"
......
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