Skip to content

Commit

Permalink
Fix auto selection of genomic profiles based on OQL e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Jun 21, 2021
1 parent 5e559b2 commit 45fdb18
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions end-to-end-test/remote/specs/core/home.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ describe('genetic profile selection in front page query form', () => {
});

describe('auto-selecting needed profiles for oql in query form', () => {
before(() => {
beforeEach(() => {
goToUrlAndSetLocalStorage(CBIOPORTAL_URL);
});

Expand All @@ -635,6 +635,10 @@ describe('auto-selecting needed profiles for oql in query form', () => {
assert(!browser.isEnabled('button[data-test="queryButton"]'));
});
it('auto-selects an mrna profile when mrna oql is entered', () => {
browser.waitForExist('.studyItem_chol_tcga_pan_can_atlas_2018', 20000);
browser.click('.studyItem_chol_tcga_pan_can_atlas_2018');
clickQueryByGeneButton();

// make sure profiles selector is loaded
browser.waitForExist(
'div[data-test="molecularProfileSelector"] input[type="checkbox"]',
Expand Down Expand Up @@ -662,13 +666,13 @@ describe('auto-selecting needed profiles for oql in query form', () => {

// enter oql
browser.waitForExist('textarea[data-test="geneSet"]', 2000);
setInputText('textarea[data-test="geneSet"]', 'BRCA1: EXP>1');
setInputText('textarea[data-test="geneSet"]', 'TP53 BRCA1: EXP>1');

browser.waitForEnabled('button[data-test="queryButton"]', 5000);
browser.click('button[data-test="queryButton"]');

// wait for query to load
waitForOncoprint(20000);
waitForOncoprint(30000);

const profileFilter = (
browser.execute(function() {
Expand Down

0 comments on commit 45fdb18

Please sign in to comment.