Attention une mise à jour du service Gitlab va être effectuée le mardi 30 novembre entre 17h30 et 18h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes. Cette mise à jour intermédiaire en version 14.0.12 nous permettra de rapidement pouvoir mettre à votre disposition une version plus récente.

Commit b269dc7b authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

tests: testing 'Info' view, system boxes

See #2517.
parent dccd028f
......@@ -27,3 +27,32 @@ QUnit.test("container, boxes", function(assert) {
assert.equal(sbnm.length, 2, 'two locus boxes')
})
QUnit.test("read details", function(assert) {
var m = new Model()
m.parseJsonData(json_data, 10)
m.loadGermline()
m.initClones()
var builder = new Builder(m)
var info = new Info("info", m, builder)
info.init()
var reads = document.getElementsByClassName('reads_details')[0]
assert.includes(reads.outerHTML, 'analyzed reads</span><span>200 (100.00%)', 'read details: analyzed reads')
assert.includes(reads.outerHTML, 'selected locus</span><span>200 (100.00%)', 'read details: selected locus')
var top_info = document.createElement('div');
top_info.id = "top_info"
document.getElementById('info').appendChild(top_info)
m.keep_one_active_system('IGH')
var sbnm = document.getElementsByClassName('systemBoxNameMenu')
assert.includes(sbnm[0].outerHTML, '<span class="systemBoxNameMenu IGH">', 'system box IGH is still active')
assert.includes(sbnm[1].outerHTML, '<span class="systemBoxNameMenu inactive TRG">', 'system box TRG is inactive')
var reads = document.getElementsByClassName('reads_details')[0]
assert.includes(reads.outerHTML, 'analyzed reads</span><span>200 (100.00%)', 'read details: analyzed reads (same than before)')
assert.includes(reads.outerHTML, 'selected locus</span><span>100 (50.00%)', 'read details: selected locus (only IGH now)')
});
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