Skip to content

Commit

Permalink
EVA-3526 variant view - show correct species (#203)
Browse files Browse the repository at this point in the history
* variant view - show correct species
  • Loading branch information
nitin-ebi authored Mar 26, 2024
1 parent 3a7ffd0 commit 7a3f150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/js/views/eva-variant-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},

Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/variant_browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 7a3f150

Please sign in to comment.