Skip to content

Commit

Permalink
fix variant view tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apriltuesday committed Dec 19, 2024
1 parent ca5afa8 commit 2d6cea5
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions tests/acceptance/variant_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ test.describe('Variant View - Human RS exclusive to accessioning', function() {
"table", "submitted-variant-summary", expectedResults, variantView.checkSection);
});

test.describe('Variant View - RS with multiple entires', function() {
test.describe('Variant View - RS with multiple entries', function() {
var driver;
test.before(function() {
driver = config.initDriver(config.browser());
Expand All @@ -250,7 +250,10 @@ test.describe('Variant View - RS with multiple entires', function() {
config.shutdownDriver(driver);
});

var expectedResults = [{"Organism": "rat", "Assembly": "GCA_015227675.2 (mRatBN7.2)",
var expectedResults = [{"Organism": "rat", "Assembly": "GCA_036323735.1 (GRCr8)",
"Chromosome/Contig accession": "CM070391.1", "Chromosome": "1", "Start": "160105635",
"ID": "rs105032341", "Type": "SNV", "Created Date": "5 December 2024"},
{"Organism": "rat", "Assembly": "GCA_015227675.2 (mRatBN7.2)",
"Chromosome/Contig accession": "CM026974.1", "Chromosome": "1", "Start": "150694351",
"ID": "rs105032341", "Type": "SNV", "Created Date": "1 December 2021"},
{"Organism": "rat", "Assembly": "GCA_000001895.4 (Rnor_6.0)",
Expand All @@ -274,7 +277,19 @@ test.describe('Variant View - RS with multiple entires', function() {
"End": "161315554", "Reference": "G", "Alternate": "C", "Created Date": "3 January 2010"},
{"ID": "ss93228403", "Study": "ENSEMBL_RAT_COMPUTATIONAL_CELERA", "Assembly": "GCA_000002265.1 (Rn_Celera)",
"Chromosome/Contig accession": "CM000231.2", "Chromosome": "1", "Start": "148800140",
"End": "148800140", "Reference": "G", "Alternate": "C", "Created Date": "3 January 2010"}
"End": "148800140", "Reference": "G", "Alternate": "C", "Created Date": "3 January 2010"},
{"ID": "ss93228403", "Study": "ENSEMBL_RAT_COMPUTATIONAL_CELERA", "Assembly": "GCA_036323735.1 (GRCr8)",
"Chromosome/Contig accession": "CM070391.1", "Chromosome": "1", "Start": "160105635",
"End": "160105635", "Reference": "G", "Alternate": "C", "Created Date": "3 January 2010"},
{"ID": "ss7306907838", "Study": "PRJEB42012", "Assembly": "GCA_036323735.1 (GRCr8)",
"Chromosome/Contig accession": "CM070391.1", "Chromosome": "1", "Start": "160105635",
"End": "160105635", "Reference": "G", "Alternate": "C", "Created Date": "8 February 2021"},
{"ID": "ss11827767621", "Study": "PRJEB79361", "Assembly": "GCA_036323735.1 (GRCr8)",
"Chromosome/Contig accession": "CM070391.1", "Chromosome": "1", "Start": "160105635",
"End": "160105635", "Reference": "G", "Alternate": "C", "Created Date": "29 August 2024"},
{"ID": "ss11827767621", "Study": "PRJEB79361", "Assembly": "GCA_015227675.2 (mRatBN7.2)",
"Chromosome/Contig accession": "CM026974.1", "Chromosome": "1", "Start": "150694351",
"End": "150694351", "Reference": "G", "Alternate": "C", "Created Date": "29 August 2024"}
];
variantView.runTableTestNew("Submitted Variant Section", "Submitted Variant Section has the correct values for attributes",
"table", "submitted-variant-summary", expectedResults);
Expand Down

0 comments on commit 2d6cea5

Please sign in to comment.