From b4f55a7b1d094e3db674cb1274198bbb71a24e74 Mon Sep 17 00:00:00 2001 From: Alireza Date: Mon, 18 Sep 2023 21:54:23 -0400 Subject: [PATCH] try to fix e2e --- .../integration/customization/HangingProtocol.spec.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/platform/app/cypress/integration/customization/HangingProtocol.spec.js b/platform/app/cypress/integration/customization/HangingProtocol.spec.js index ab306fd68d4..4f55e620b59 100644 --- a/platform/app/cypress/integration/customization/HangingProtocol.spec.js +++ b/platform/app/cypress/integration/customization/HangingProtocol.spec.js @@ -1,5 +1,5 @@ describe('OHIF HP', () => { - const beforeSetup = () => { + beforeEach(() => { cy.checkStudyRouteInViewer( '1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1', '&hangingProtocolId=@ohif/mnGrid' @@ -8,17 +8,13 @@ describe('OHIF HP', () => { cy.initCornerstoneToolsAliases(); cy.initCommonElementsAliases(); cy.waitDicomImage(); - }; + }); it('Should display 3 up', () => { - beforeSetup(); - cy.get('[data-cy="viewport-pane"]').its('length').should('be.eq', 3); }); it('Should navigate next/previous stage', () => { - beforeSetup(); - cy.get('body').type(','); cy.wait(250); cy.get('[data-cy="viewport-pane"]').its('length').should('be.eq', 4);