Skip to content

Commit

Permalink
fix flaky e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lai committed Mar 3, 2025
1 parent 5fb784d commit 15818f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ describe('Patient View Genomic Evolution tab screenshot tests', () => {
assertScreenShotMatch(res);
});
it('pvge line chart log scale', async () => {
await jsApiClick('input[data-test="VAFLogScale"]');
await setCheckboxChecked(true, 'input[data-test="VAFLogScale"]');
await (await getElement('body')).moveTo({ xOffset: 0, yOffset: 0 });

const res = await browser.checkElement('[data-test=VAFChartWrapper]');
assertScreenShotMatch(res);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('oncoprint colors', () => {
const trackOptionsElts = await getNthOncoprintTrackOptionsElements(
5
);
await (await getElement(trackOptionsElts.button_selector)).moveTo();
// open menu
await clickElement(trackOptionsElts.button_selector);
await (
Expand Down Expand Up @@ -141,6 +142,7 @@ describe('oncoprint colors', () => {
const trackOptionsElts = await getNthOncoprintTrackOptionsElements(
5
);
await (await getElement(trackOptionsElts.button_selector)).moveTo();
await clickElement(trackOptionsElts.button_selector);
await (
await getElement(trackOptionsElts.dropdown_selector)
Expand Down
2 changes: 1 addition & 1 deletion end-to-end-test/remote/specs/core/screenshot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function runResultsTestSuite(prefix, options = {}) {

it(`${prefix} igv_tab tab`, async function() {
await clickElement('a.tabAnchor_cnSegments');
await getElement('.igv-column-container', { timeout: 20000 });
await waitForElementDisplayed('.igvContainer', { timeout: 20000 });
const res = await checkElementWithMouseDisabled('.pillTabs');
assertScreenShotMatch(res);
});
Expand Down

0 comments on commit 15818f7

Please sign in to comment.