Fix on CI - Changing to another Patient Study

This commit is contained in:
Mirna Silva 2020-01-24 15:56:25 -03:00
parent 84f087bca4
commit b812fe03d2
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);