Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 74d5439a authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

Merge branch...

Merge branch 'feature-c/4806-les-icones-reste-meme-apres-la-suppression-de-tous-les-clones-d-un-cluster' into 'dev'

Resolve "Les icones +/- reste même après la suppression de tous les clones d'un cluster"

Closes #4806

See merge request !984
parents 6b082997 8c98cabe
Pipeline #268139 failed with stages
in 9 minutes and 10 seconds
......@@ -520,7 +520,7 @@ List.prototype = {
}
self.div_cluster(document.getElementById("cluster" + cloneID), cloneID);
} else {
cloneDom.getElement("clusterBox").appendChild(document.createTextNode(' '));
cloneDom.getElement("clusterBox").innerHTML = "<text> </text>";
if (this.m.clusters[cloneID].length < 2) display = false
document.getElementById("cluster"+cloneID).style.display = "none";
}
......
......@@ -94,4 +94,38 @@ describe('Actions v1', function () {
it('Handle a cluster in list', function() {
// link to issue #4806
cy.openAnalysis("doc/analysis-example2.vidjil", "doc/analysis-example2.analysis")
// Open a loaded cluster
cy.get('#listElem_6')
.should("not.be.visible")
cy.get('#clusterBox_5 > .icon-plus').click()
// remove sub clone
cy.get('#clusterBox_5 > .icon-minus')
.should("exist")
cy.get('#delBox_list_6 > .icon-cancel')
.should('be.visible')
.click()
cy.update_icon()
// Test that icon disapear
cy.get('#clusterBox_5 > .icon-plus')
.should("not.exist")
cy.get('#clusterBox_5 > .icon-minus')
.should("not.exist")
cy.get('#clusterBox_5')
.should("contain", " ")
// Subclone should be visible in main list
cy.get('#listElem_6')
.should("be.visible")
return
})
})
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