Skip to content

Commit

Permalink
fix chart button disabled error
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lai committed Aug 16, 2023
1 parent 4b6ccab commit 212a973
Showing 1 changed file with 14 additions and 6 deletions.
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 212a973

Please sign in to comment.