diff --git a/src/js/views/eva-variant-view.js b/src/js/views/eva-variant-view.js index b6cba1e9..6f56aee0 100644 --- a/src/js/views/eva-variant-view.js +++ b/src/js/views/eva-variant-view.js @@ -640,7 +640,8 @@ EvaVariantView.prototype = { accessioningServiceData.assemblyAccession : accessioningServiceData.referenceSequenceAccession; - var speciesInfo = _.findWhere(getAccessionedSpeciesList(), {assemblyAccession : this.assemblyAccession}); + var speciesInfo = _.findWhere(getAccessionedSpeciesList(), + {assemblyAccession : this.assemblyAccession, taxonomyId: accessioningServiceData.taxonomyAccession}); this.species = speciesInfo.taxonomyCode + "_" + speciesInfo.assemblyCode; }, diff --git a/tests/acceptance/variant_browser.js b/tests/acceptance/variant_browser.js index 954b1266..c30ff1f6 100644 --- a/tests/acceptance/variant_browser.js +++ b/tests/acceptance/variant_browser.js @@ -406,7 +406,7 @@ function variantSearchByGene(driver){ }); driver.findElement(By.xpath("//div[@id='variant-browser-grid-body']//table[1]//td[2]/div[text()]")).getText().then(function(text){ text = parseInt(text); - chai.assert.operator(text, '>=', 32884617); + chai.assert.operator(text, '>=', 32884613); chai.assert.operator(text, '<=', 32973805); }); });