From 7a3f15049aa4acb5edbd62b430f0be9ae3f8400d Mon Sep 17 00:00:00 2001 From: nitin-ebi <79518737+nitin-ebi@users.noreply.github.com> Date: Tue, 26 Mar 2024 09:47:14 +0000 Subject: [PATCH] EVA-3526 variant view - show correct species (#203) * variant view - show correct species --- src/js/views/eva-variant-view.js | 3 ++- tests/acceptance/variant_browser.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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); }); });