Merge pull request #1393 from mirnasilva/fix_NewPatientSaveMeasurement

Fix on CI - Choosing another Patient Study
This commit is contained in:
Mirna Silva 2020-01-24 16:17:10 -03:00 committed by GitHub
commit 3d3cfb1b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 10 deletions

View File

@ -43,7 +43,7 @@ describe('OHIF Study List', function() {
//Wait result list to be displayed //Wait result list to be displayed
cy.waitStudyList(); cy.waitStudyList();
cy.get('@searchResult').should($list => { cy.get('@searchResult').should($list => {
expect($list.length).to.be.eq(17); expect($list.length).to.be.eq(16);
expect($list).to.contain('MR'); expect($list).to.contain('MR');
}); });
}); });
@ -132,7 +132,7 @@ describe('OHIF Study List', function() {
//Wait result list to be displayed //Wait result list to be displayed
cy.waitStudyList(); cy.waitStudyList();
cy.get('@searchResult').should($list => { cy.get('@searchResult').should($list => {
expect($list.length).to.be.eq(17); expect($list.length).to.be.eq(16);
expect($list).to.contain('MR'); expect($list).to.contain('MR');
}); });
}); });

View File

@ -1,16 +1,11 @@
describe('OHIF Save Measurements', function() { describe('OHIF Save Measurements', function() {
before(() => { before(() => {
cy.openStudy('Fall 1'); cy.openStudy('MISTER^MR');
cy.expectMinimumThumbnails(2); cy.waitDicomImage();
cy.expectMinimumThumbnails(5);
}); });
beforeEach(() => { 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 // Wait image to load on viewport
cy.wait(2000); cy.wait(2000);