From 2371ff9ce46da29bb6be08500c5403d8ceed364e Mon Sep 17 00:00:00 2001 From: Alireza Date: Mon, 18 Sep 2023 17:25:26 -0400 Subject: [PATCH] try to fix e2e --- platform/app/cypress/integration/MultiStudy.spec.js | 1 + platform/app/cypress/support/commands.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/app/cypress/integration/MultiStudy.spec.js b/platform/app/cypress/integration/MultiStudy.spec.js index 8a6bd81b01e..48d60ac0000 100644 --- a/platform/app/cypress/integration/MultiStudy.spec.js +++ b/platform/app/cypress/integration/MultiStudy.spec.js @@ -7,6 +7,7 @@ describe('OHIF Multi Study', () => { cy.expectMinimumThumbnails(4); cy.initCornerstoneToolsAliases(); cy.initCommonElementsAliases(); + cy.waitDicomImage(); }; it('Should display 2 comparison up', () => { diff --git a/platform/app/cypress/support/commands.js b/platform/app/cypress/support/commands.js index 04e438c5735..7b74ab590de 100644 --- a/platform/app/cypress/support/commands.js +++ b/platform/app/cypress/support/commands.js @@ -150,10 +150,10 @@ Cypress.Commands.add('addLine', (viewport, firstClick, secondClick) => { // The wait is necessary because of double click testing cy.wrap($viewport) - .click(x1, y1) + .click(x1, y1, { force: true }) .wait(250) .trigger('mousemove', { clientX: x2, clientY: y2 }) - .click(x2, y2) + .click(x2, y2, { force: true }) .wait(250); }); });