Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 86a1cb8d authored by flothoni's avatar flothoni Committed by Mathieu Giraud

Add an id to each div of tagElem

This will be useful for watir.
Link to #1292
parent e541ea4d
......@@ -1964,6 +1964,7 @@ changeAlleleNotation: function(alleleNotation) {
var div = document.createElement('div');
div.className = "tagElem"
div.id = "tagElem_" + i
div.appendChild(span1)
div.appendChild(span2)
div.onclick = function () {
......
......@@ -362,7 +362,7 @@ class TestMultilocus < BrowserTest
## Test tag selection for one clone
$b.clone_info('25')[:star].click
$b.span("tagColor0").click
$b.div("tagElem_0").click
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 "
......@@ -370,7 +370,7 @@ class TestMultilocus < BrowserTest
## Test tag selection for multiple clone
$b.i("tag_icon__multiple").click
$b.span("tagColor6").click
$b.div("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('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"
......
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