Skip to content

Commit

Permalink
Update screenshots, fix charts button test and hide heatmaps buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Feb 8, 2022
1 parent 7cdcce6 commit 8076c17
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 6 additions & 14 deletions end-to-end-test/remote/specs/core/studyview.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,27 +248,19 @@ describe('study laml_tcga tests', () => {
});
});

describe('add chart should not be shown in other irrelevant tabs', () => {
describe.only('add chart should not be shown in other irrelevant tabs', () => {
it('check add chart button doesnt exist on heatmap', () => {
goToUrlAndSetLocalStorage(`${CBIOPORTAL_URL}/study?id=brca_tcga_pub`);
waitForNetworkQuiet(30000);
$('#studyViewTabs a.tabAnchor_heatmaps').waitForDisplayed({
timeout: WAIT_FOR_VISIBLE_TIMEOUT,
});
$('#studyViewTabs a.tabAnchor_heatmaps').click();
assert(!$(ADD_CHART_BUTTON).isExisting());
});
it('should hide add chart button on clinical data tab', () => {
goToUrlAndSetLocalStorage(`${CBIOPORTAL_URL}/study?id=brca_tcga_pub`);
waitForNetworkQuiet(30000);

$('#studyViewTabs a.tabAnchor_clinicalData').waitForDisplayed({
timeout: WAIT_FOR_VISIBLE_TIMEOUT,
});
$('#studyViewTabs a.tabAnchor_clinicalData').click();

// unfortunately we just re-use button for columns instead of changing component
// so only way to test identity of button is to look at its contents
assert.equal(getTextFromElement(ADD_CHART_BUTTON), 'Columns ▾');
assert($('button=Charts ▾').isExisting());

$('#studyViewTabs a.tabAnchor_clinicalData').click();
assert(!$('button=Charts ▾').isExisting());
});
});

Expand Down
4 changes: 4 additions & 0 deletions src/globalStyles/e2etest.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@
bottom: 0;
zindex: 999999999;
}

.tabAnchor_heatmaps {
display: none;
}
}

0 comments on commit 8076c17

Please sign in to comment.