Commit 71ea224a authored by Mikaël Salson's avatar Mikaël Salson

test_multilocus.rb: Move the mouse to see the color

Depending on where the mouse stayed we may (or may not) see the color.
Thus we move the mouse elsewhere so that it won't disturb the hover
state of the element of interest.
parent 55625422
......@@ -199,6 +199,9 @@ class TestMultilocus < BrowserTest
name.click
$b.until { not $b.tag_item('0')[:name].present? }
# Move the mouse elsewhere
$b.clone_in_scatterplot('77').hover
$b.until {$b.clone_info('25')[:name].style('color') == 'rgba(220, 50, 47, 1)' }
end
end
......@@ -374,6 +377,9 @@ class TestMultilocus < BrowserTest
$b.clone_info('25')[:star].click
$b.element(:id => 'tagElem_0').click
# Move the mouse elsewhere
$b.clone_in_scatterplot('72').hover
$b.until {$b.clone_info('25')[:name].style('color') == 'rgba(220, 50, 47, 1)' } # clone 25 should 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 "
......
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