From b812fe03d2058595f9f19c57d81c9184f4bd911e Mon Sep 17 00:00:00 2001 From: Mirna Silva Date: Fri, 24 Jan 2020 15:56:25 -0300 Subject: [PATCH] Fix on CI - Changing to another Patient Study --- .../cypress/integration/common/OHIFStudyList.spec.js | 4 ++-- .../integration/pwa/OHIFSaveMeasurements.spec.js | 11 +++-------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/platform/viewer/cypress/integration/common/OHIFStudyList.spec.js b/platform/viewer/cypress/integration/common/OHIFStudyList.spec.js index c5ce2944f..c3f75d829 100644 --- a/platform/viewer/cypress/integration/common/OHIFStudyList.spec.js +++ b/platform/viewer/cypress/integration/common/OHIFStudyList.spec.js @@ -43,7 +43,7 @@ describe('OHIF Study List', function() { //Wait result list to be displayed cy.waitStudyList(); cy.get('@searchResult').should($list => { - expect($list.length).to.be.eq(17); + expect($list.length).to.be.eq(16); expect($list).to.contain('MR'); }); }); @@ -132,7 +132,7 @@ describe('OHIF Study List', function() { //Wait result list to be displayed cy.waitStudyList(); cy.get('@searchResult').should($list => { - expect($list.length).to.be.eq(17); + expect($list.length).to.be.eq(16); expect($list).to.contain('MR'); }); }); diff --git a/platform/viewer/cypress/integration/pwa/OHIFSaveMeasurements.spec.js b/platform/viewer/cypress/integration/pwa/OHIFSaveMeasurements.spec.js index 50a21b6b9..f08dff3dd 100644 --- a/platform/viewer/cypress/integration/pwa/OHIFSaveMeasurements.spec.js +++ b/platform/viewer/cypress/integration/pwa/OHIFSaveMeasurements.spec.js @@ -1,16 +1,11 @@ describe('OHIF Save Measurements', function() { before(() => { - cy.openStudy('Fall 1'); - cy.expectMinimumThumbnails(2); + cy.openStudy('MISTER^MR'); + cy.waitDicomImage(); + cy.expectMinimumThumbnails(5); }); beforeEach(() => { - // Drags Study thumbnail into viewport - cy.get('[data-cy="thumbnail-list"]') - .contains('Rheuma') - .scrollIntoView() - .drag('.viewport-drop-target'); - // Wait image to load on viewport cy.wait(2000);