Skip to content

Commit

Permalink
Update e2e tests after hiding of default timeline events availability…
Browse files Browse the repository at this point in the history
… chart
  • Loading branch information
alisman committed Jan 27, 2025
1 parent ba11b44 commit c4c8afd
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 42 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 0 additions & 42 deletions end-to-end-test/remote/specs/core/studyview.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1006,48 +1006,6 @@ describe('study view treatments table', () => {
});
});

describe('study view timeline events availability table', () => {
it('verify timeline events availability table is visible', async () => {
await goToUrlAndSetLocalStorage(
`${CBIOPORTAL_URL}/study/summary?id=cesc_tcga_pan_can_atlas_2018`
);
await getElementByTestHandle('CLINICAL_EVENT_TYPE_COUNT-table', {
timeout: 20000,
});
});

it('verify filters can be applied', async () => {
await goToUrlAndSetLocalStorage(
`${CBIOPORTAL_URL}/study/summary?id=cesc_tcga_pan_can_atlas_2018`
);

await getElementByTestHandle('CLINICAL_EVENT_TYPE_COUNT-table', {
timeout: 20000,
});
const selectedPatients = await (
await getElementByTestHandle('selected-patients')
).getText();

const timelineEventsAvailabilityCheckBox =
'[data-test="CLINICAL_EVENT_TYPE_COUNT-table"] .ReactVirtualized__Table__row:nth-child(2) input';

const applyFilterButton =
'[data-test="CLINICAL_EVENT_TYPE_COUNT-table"] button';

await (
await getElement(timelineEventsAvailabilityCheckBox)
).waitForExist();
await clickElement(timelineEventsAvailabilityCheckBox);
await (await getElement(applyFilterButton)).waitForExist();
await clickElement(applyFilterButton);
await waitForNetworkQuiet();
assert.notEqual(
await (await getElementByTestHandle('selected-patients')).getText(),
selectedPatients
);
});
});

describe('study view mutations table', () => {
// this guards against server-side regression
// in which frequencies are miscalculated for
Expand Down

0 comments on commit c4c8afd

Please sign in to comment.