Skip to content

Commit

Permalink
fix oncoprint.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bemijonathan committed Aug 5, 2024
1 parent d9c77fb commit 3182c25
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions end-to-end-test/remote/specs/core/oncoprint.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,21 @@ const { getCSSProperty } = require('../../../shared/specUtils_Async');
const CBIOPORTAL_URL = process.env.CBIOPORTAL_URL.replace(/\/$/, '');

describe('merged tracks', () => {
it('oncoprint loads and expands a merged track', async () => {
before(async () => {
await goToUrlAndSetLocalStorage(
`${CBIOPORTAL_URL}/results/oncoprint?Action=Submit&RPPA_SCORE_THRESHOLD=2.0&Z_SCORE_THRESHOLD=2.0&cancer_study_list=coadread_tcga&case_set_id=coadread_tcga_cnaseq&data_priority=0&gene_list=%255B%2522RAS%2522%2520KRAS%2520NRAS%2520HRAS%255D&geneset_list=%20&genetic_profile_ids_PROFILE_COPY_NUMBER_ALTERATION=coadread_tcga_gistic&genetic_profile_ids_PROFILE_MUTATION_EXTENDED=coadread_tcga_mutations&tab_index=tab_visualize`
);
await browser.pause(10000);
await waitForOncoprint({
timeout: 10000,
timeout: 1000000,
});

});
it('oncoprint loads and expands a merged track', async () => {
const trackOptionsElts = await getNthOncoprintTrackOptionsElements(1);

await (await getElement(trackOptionsElts.button_selector)).isDisplayed({
timeout: 30000,
});
// open menu
await clickElement(trackOptionsElts.button_selector);
await waitForElementDisplayed(trackOptionsElts.dropdown_selector, {
Expand All @@ -41,7 +47,8 @@ describe('merged tracks', () => {
await clickElement(
trackOptionsElts.dropdown_selector + ' li:nth-child(3)'
);
await waitForOncoprint();

browser.pause(10000); // give time for track to expand

const res = await browser.checkElement('.oncoprintContainer', '', {
hide: ['.oncoprint__controls'],
Expand Down

0 comments on commit 3182c25

Please sign in to comment.