Skip to content

Commit

Permalink
Merge pull request #4698 from gblaih/study-charts-button-disabled
Browse files Browse the repository at this point in the history
Fix e2e tests that use study view charts button
  • Loading branch information
alisman authored Aug 16, 2023
2 parents 4b6ccab + 0f2f119 commit 378093e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions end-to-end-test/remote/specs/core/studyview.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,13 @@ describe('crc_msk_2017 study tests', () => {
$(ADD_CHART_BUTTON).waitForDisplayed({
timeout: WAIT_FOR_VISIBLE_TIMEOUT,
});
$(ADD_CHART_BUTTON).waitForEnabled({
timeout: WAIT_FOR_VISIBLE_TIMEOUT,
});
browser.waitUntil(
() =>
!$(ADD_CHART_BUTTON)
.getAttribute('class')
.includes('disabled'),
{ timeout: WAIT_FOR_VISIBLE_TIMEOUT }
);
setDropdownOpen(
true,
ADD_CHART_BUTTON,
Expand Down Expand Up @@ -723,9 +727,13 @@ describe('submit genes to results view query', () => {
});
it('generic assay chart should be added in the summary tab', function() {
this.retries(0);
$(ADD_CHART_BUTTON).waitForEnabled({
timeout: 60000,
});
browser.waitUntil(
() =>
!$(ADD_CHART_BUTTON)
.getAttribute('class')
.includes('disabled'),
{ timeout: 60000 }
);
$(ADD_CHART_BUTTON).click();

// Change to GENERIC ASSAY tab
Expand Down

0 comments on commit 378093e

Please sign in to comment.