Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E: fix element selection for home.spec.test #5098

Merged
merged 2 commits into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions end-to-end-test/remote/specs/core/home.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,20 @@ describe('case set selection in front page query form', function() {
await clickModifyStudySelectionButton();
await browser.pause(500);
//Phase 3: Deselect Ampullary Carcinoma
await (await getElement(input)).waitForExist({ timeout: 10000 });
await setInputText(input, 'ampullary baylor');
//await (await getElement(input)).waitForExist({ timeout: 10000 });
//await setInputText(input, '');
await clickElement('[data-test="clearStudyFilter"]');
await browser.pause(2000);
await (
await getElement('[data-test="study-search"] .dropdown-toggle')
).click();

await clickElement('.studyItem_ampca_bcm_2016');
await clickQueryByGeneButton();
await (await getElement(selectedCaseSet_sel)).waitForExist();

//await browser.debug();

await browser.waitUntil(async () => {
const expectedText = 'Samples with mutation and CNA data (88)';
const selectedText = (await getText(selectedCaseSet_sel)).trim();
Expand Down Expand Up @@ -392,7 +397,9 @@ describe('selects the right default case sets in a single->select all filtered->
});
});

describe('genetic profile selection in front page query form', () => {
describe('genetic profile selection in front page query form', function() {
this.retries(0);

before(async () => {
await goToUrlAndSetLocalStorage(CBIOPORTAL_URL);
});
Expand Down Expand Up @@ -447,9 +454,10 @@ describe('genetic profile selection in front page query form', () => {
'Ampullary Carcinoma (Baylor College of Medicine, Cell Reports 2016)'
);
await (
await getElement('[data-test="StudySelect"]')
await getElement('.studyItem_ampca_bcm_2016')
).waitForDisplayed();
await clickElement('[data-test="StudySelect"]');

await clickElement('.studyItem_ampca_bcm_2016');

await clickQueryByGeneButton();

Expand Down
Loading