Skip to content

Commit

Permalink
fixed oncoprint
Browse files Browse the repository at this point in the history
  • Loading branch information
bemijonathan committed Aug 6, 2024
1 parent 3182c25 commit 91e2608
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
24 changes: 15 additions & 9 deletions end-to-end-test/remote/specs/core/oncoprint.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ describe('oncoprint', function() {
it('should sort patients and samples by custom case list order correctly', async () => {
async function doCustomCaseOrderTest() {
// now we're on results page
await waitForOncoprint();
await waitForOncoprint(100000);

// make sure we are in sample mode
await clickElement(
Expand Down Expand Up @@ -518,16 +518,17 @@ describe('oncoprint', function() {
}

await goToUrlAndSetLocalStorage(CBIOPORTAL_URL);

await browser.pause(5000);

// select Colorectal TCGA and Adrenocortical Carcinoma TCGA
const inputSelector =
'div[data-test=study-search] input[type="text"]';
await getElement(inputSelector, { timeout: 20000 });
await (await getElement(inputSelector)).waitForDisplayed({
timeout: 100000,
});
await setInputText(inputSelector, 'colorectal tcga nature');
await waitForNumberOfStudyCheckboxes(1);
await getElement('[data-test="StudySelect"]', { timeout: 20000 });
await getElement('[data-test="StudySelect"]', { timeout: 10000 });
await clickElement('[data-test="StudySelect"] input');

await setInputText(
Expand All @@ -539,17 +540,22 @@ describe('oncoprint', function() {
'Adrenocortical Carcinoma (TCGA, Firehose Legacy)'
);

await getElement('[data-test="StudySelect"]', { timeout: 10000 });
await (
await getElement('[data-test="StudySelect"]')
).waitForDisplayed();
await browser.pause(1000); // let things trigger
await clickElement('[data-test="StudySelect"] input');

await clickQueryByGeneButton();

await browser.pause(10000); // let things trigger
const molecularProfileSelector = await (
await getElement('[data-test="molecularProfileSelector"]', {
const molecularProfileSelector = await getElement(
'[data-test="molecularProfileSelector"]',
{
timeout: 20000,
})
).waitForDisplayed({ timeout: 20000 });
}
);

await molecularProfileSelector.waitForExist({ timeout: 10000 });
// Check for the "Mutations" checkbox
const mutationsLabel = await molecularProfileSelector.$(
Expand Down
2 changes: 1 addition & 1 deletion end-to-end-test/shared/specUtils_Async.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ async function clickQueryByGeneButton() {
// timeout: 5000
// });
//const el = await getElementByTestHandle('queryByGeneButton');
await clickElement('handle=queryByGeneButton');
await clickElement('[data-test=queryByGeneButton]');

const body = await $('body');
await body.scrollIntoView();
Expand Down

0 comments on commit 91e2608

Please sign in to comment.