Skip to content

Commit

Permalink
Reenable and update skipped oncoprint screenshot tests
Browse files Browse the repository at this point in the history
Signed-off-by: Abeshouse, Adam A./Sloan Kettering Institute <abeshoua@mskcc.org>
  • Loading branch information
Abeshouse, Adam A./Sloan Kettering Institute committed Nov 20, 2019
1 parent 51a611a commit bc8c709
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions end-to-end-test/remote/specs/core/oncoprint.screenshot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint should sort patients correctly in gbm_tcga_pub", function(){
it("oncoprint should sort patients correctly in gbm_tcga_pub", function(){
goToUrlAndSetLocalStorage(CBIOPORTAL_URL);

var inputSelector = '.autosuggest input[type="text"]';
Expand Down Expand Up @@ -247,7 +247,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint should sort samples correctly in gbm_tcga_pub", function(){
it("oncoprint should sort samples correctly in gbm_tcga_pub", function(){

$('.oncoprintContainer .oncoprint__controls #viewDropdownButton').click(); // open view menu
$('.oncoprintContainer .oncoprint__controls input[type="radio"][name="columnType"][value="0"]').waitForExist(10000);
Expand All @@ -259,7 +259,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - initial patient order", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - initial patient order", function(){
goToUrlAndSetLocalStorage(CBIOPORTAL_URL+'/index.do?cancer_study_id=gbm_tcga_pub&Z_SCORE_THRESHOLD=2.0&RPPA_SCORE_THRESHOLD=2.0&data_priority=0&case_set_id=gbm_tcga_pub_cnaseq&gene_list=TP53%20MDM2%20MDM4&geneset_list=%20&tab_index=tab_visualize&Action=Submit&genetic_profile_ids_PROFILE_MUTATION_EXTENDED=gbm_tcga_pub_mutations&genetic_profile_ids_PROFILE_COPY_NUMBER_ALTERATION=gbm_tcga_pub_cna_rae&clinicallist=FRACTION_GENOME_ALTERED%2CDFS_MONTHS%2CKARNOFSKY_PERFORMANCE_SCORE%2COS_STATUS&heatmap_track_groups=gbm_tcga_pub_mrna_median_Zscores%2CTP53%2CMDM2%2CMDM4%3Bgbm_tcga_pub_mrna_merged_median_Zscores%2CTP53%2CMDM2%2CMDM4');
$('.alert-warning').$('button.close').click(); // close dev mode notification so it doesnt intercept clicks

Expand All @@ -275,7 +275,7 @@ describe("sorting", function(){
var res = checkOncoprintElement();
assertScreenShotMatch(res);
});
it.skip("oncoprint sorts through a flow with clinical tracks sorted - initial sample order", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - initial sample order", function(){

$('.oncoprintContainer .oncoprint__controls #viewDropdownButton').click(); // open view menu
$('.oncoprintContainer .oncoprint__controls input[type="radio"][name="columnType"][value="0"]').waitForVisible(10000);
Expand All @@ -286,7 +286,7 @@ describe("sorting", function(){
var res = checkOncoprintElement();
assertScreenShotMatch(res);
});
it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted patient order 1", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted patient order 1", function(){

$('.oncoprintContainer .oncoprint__controls input[type="radio"][name="columnType"][value="1"]').waitForVisible(10000);
$('.oncoprintContainer .oncoprint__controls input[type="radio"][name="columnType"][value="1"]').click(); // go to patient mode
Expand All @@ -304,7 +304,7 @@ describe("sorting", function(){
var res = checkOncoprintElement();
assertScreenShotMatch(res);
});
it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted patient order 2", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted patient order 2", function(){
var overallSurvivalElements = getNthTrackOptionsElements(4);
overallSurvivalElements.dropdown.$('li:nth-child(6)').click(); // Click sort Z-a
browser.pause(100); // give time to sort
Expand All @@ -313,7 +313,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted patient order 3", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted patient order 3", function(){
var karnofskyPerformanceElements = getNthTrackOptionsElements(3);
karnofskyPerformanceElements.button.click(); // open Karnofsky Performance clinical track menu
browser.waitForVisible(karnofskyPerformanceElements.dropdown_selector, 1000);// wait for menu to appear
Expand All @@ -324,7 +324,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted patient order 4", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted patient order 4", function(){
var karnofskyPerformanceElements = getNthTrackOptionsElements(3);
karnofskyPerformanceElements.dropdown.$('li:nth-child(5)').click(); // Click sort a-Z
browser.pause(100); // give time to sort
Expand All @@ -333,7 +333,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 1", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 1", function(){
while (!browser.isVisible('.oncoprintContainer .oncoprint__controls input[type="radio"][name="columnType"][value="0"]')) {
// behavior varies whether this menu is still visible, so we have to go into this loop to make sure its visible before clicking to sample mode
browser.click('.oncoprintContainer .oncoprint__controls #viewDropdownButton')// open view menu
Expand All @@ -347,7 +347,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 2", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 2", function(){
var diseaseFreeElements = getNthTrackOptionsElements(2);
diseaseFreeElements.button.click(); // open Disease Free (months) clinical track menu
browser.waitForVisible(diseaseFreeElements.dropdown_selector, 1000);// wait for menu to appear
Expand All @@ -358,7 +358,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 3", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 3", function(){
var diseaseFreeElements = getNthTrackOptionsElements(2);
diseaseFreeElements.dropdown.$('li:nth-child(6)').click(); // Click sort Z-a
browser.pause(100); // give time to sort
Expand All @@ -367,7 +367,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 4", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 4", function(){
var fractionGenomeAlteredElements = getNthTrackOptionsElements(1);
fractionGenomeAlteredElements.button.click(); // open Fraction Genome Altered clinical track menu
browser.waitForVisible(fractionGenomeAlteredElements.dropdown_selector, 1000);// wait for menu to appear
Expand All @@ -378,7 +378,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 5", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 5", function(){
var fractionGenomeAlteredElements = getNthTrackOptionsElements(1);
fractionGenomeAlteredElements.dropdown.$('li:nth-child(5)').click(); // Click sort a-Z
browser.pause(100); // give time to sort
Expand All @@ -387,7 +387,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 6", function(){
it("oncoprint sorts through a flow with clinical tracks sorted - sorted sample order 6", function(){
// Sort TP53 heatmap track
var TP53HeatmapElements = getNthTrackOptionsElements(8);
TP53HeatmapElements.button.click(); // open Fraction Genome Altered clinical track menu
Expand All @@ -399,7 +399,7 @@ describe("sorting", function(){
var res = checkOncoprintElement();
assertScreenShotMatch(res);
});
it.skip("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 1", function(){
it("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 1", function(){
goToUrlAndSetLocalStorage(CBIOPORTAL_URL+'/index.do?cancer_study_id=gbm_tcga_pub&Z_SCORE_THRESHOLD=2.0&RPPA_SCORE_THRESHOLD=2.0&data_priority=0&case_set_id=gbm_tcga_pub_cnaseq&gene_list=TP53%2520MDM2%2520MDM4&geneset_list=%20&tab_index=tab_visualize&Action=Submit&genetic_profile_ids_PROFILE_MUTATION_EXTENDED=gbm_tcga_pub_mutations&genetic_profile_ids_PROFILE_COPY_NUMBER_ALTERATION=gbm_tcga_pub_cna_rae&clinicallist=FRACTION_GENOME_ALTERED%2CDFS_MONTHS%2CKARNOFSKY_PERFORMANCE_SCORE%2COS_STATUS&heatmap_track_groups=gbm_tcga_pub_mrna_median_Zscores%2CTP53%2CMDM2%2CMDM4%3Bgbm_tcga_pub_mrna_merged_median_Zscores%2CTP53%2CMDM2%2CMDM4&show_samples=true');
$('.alert-warning').$('button.close').click(); // close dev mode notification so it doesnt intercept clicks

Expand All @@ -425,7 +425,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 2", function(){
it("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 2", function(){
var TP53HeatmapElements = getNthTrackOptionsElements(8);
TP53HeatmapElements.dropdown.$('li:nth-child(5)').click(); // Click sort a-Z
browser.pause(100); // give time to sort
Expand All @@ -434,7 +434,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 3", function(){
it("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 3", function(){
var TP53HeatmapElements = getNthTrackOptionsElements(8);
TP53HeatmapElements.button.click(); // close track menu
browser.waitForVisible(TP53HeatmapElements.dropdown_selector, 1000, true); // wait until menu disappears, exposing button
Expand All @@ -449,7 +449,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 4", function(){
it("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 4", function(){
var MDM4HeatmapElements = getNthTrackOptionsElements(13);
MDM4HeatmapElements.dropdown.$('li:nth-child(6)').click(); // Click sort Z-a
browser.pause(100); // give time to sort
Expand All @@ -458,7 +458,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 5", function(){
it("oncoprint sorts through a flow with heatmap tracks sorted - sorted sample order 5", function(){
var TP53HeatmapElements = getNthTrackOptionsElements(8);
TP53HeatmapElements = getNthTrackOptionsElements(8);
TP53HeatmapElements.button.click(); // open track menu
Expand All @@ -470,7 +470,7 @@ describe("sorting", function(){
assertScreenShotMatch(res);
});

it.skip("oncoprint sorts through a flow with heatmap tracks sorted - sorted patient order 1", function(){
it("oncoprint sorts through a flow with heatmap tracks sorted - sorted patient order 1", function(){
$('.oncoprintContainer .oncoprint__controls #viewDropdownButton').click(); // open view menu
$('.oncoprintContainer .oncoprint__controls input[type="radio"][name="columnType"][value="1"]').waitForExist(10000);
$('.oncoprintContainer .oncoprint__controls input[type="radio"][name="columnType"][value="1"]').click(); // go to patient mode
Expand Down

0 comments on commit bc8c709

Please sign in to comment.