Skip to content

Commit

Permalink
Fix add chart e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Feb 17, 2022
1 parent 6a91bfc commit 2f9dc48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions end-to-end-test/remote/specs/core/studyview.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,18 @@ describe('study laml_tcga tests', () => {
assert($(STUDY_SUMMARY_RAW_DATA_DOWNLOAD).isExisting());
});

it('when quickly adding charts, each chart should get proper data.', () => {
it('when quickly adding charts, each chart should get proper data.', function() {
this.retries(0);

toStudyViewSummaryTab();
waitForStudyViewSelectedInfo();
$(ADD_CHART_BUTTON).click();
// Wait for the data frequency is calculated
waitForNetworkQuiet();
// Click on three options
$("[data-test='add-chart-option-fab'] input").click();
$("[data-test='add-chart-option-basophils-cell-count'] input").click();
$("[data-test='add-chart-option-blast-count'] input").click();

// Add three charts
$("[data-test='add-chart-option-cancer-type'] input").click();
$("[data-test='add-chart-option-case-lists'] input").click();

// Pause a bit time to let the page render the charts
waitForStudyView();
Expand Down

0 comments on commit 2f9dc48

Please sign in to comment.