2023-08-16 16:15:12 +02:00
|
|
|
describe('OHIF Multi Study', () => {
|
|
|
|
|
const beforeSetup = () => {
|
2023-10-03 20:02:21 +02:00
|
|
|
cy.initViewer(
|
2023-08-16 16:15:12 +02:00
|
|
|
'1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1,1.2.840.113619.2.5.1762583153.215519.978957063.78',
|
2023-10-03 20:02:21 +02:00
|
|
|
{
|
|
|
|
|
params: '&hangingProtocolId=@ohif/hpCompare',
|
|
|
|
|
minimumThumbnails: 3,
|
|
|
|
|
}
|
2023-08-16 16:15:12 +02:00
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
it('Should display 2 comparison up', () => {
|
|
|
|
|
beforeSetup();
|
|
|
|
|
|
2023-09-22 21:36:44 +02:00
|
|
|
cy.get('[data-cy="viewport-pane"]').as('viewportPane');
|
|
|
|
|
cy.get('@viewportPane').its('length').should('be.eq', 4);
|
|
|
|
|
|
2024-04-02 15:35:30 +02:00
|
|
|
cy.get('[data-cy="viewport-overlay-top-left"] [title="Study date"]').as('studyDate');
|
2023-09-22 21:36:44 +02:00
|
|
|
|
|
|
|
|
cy.get('@studyDate').should(studyDate => {
|
2023-08-16 16:15:12 +02:00
|
|
|
expect(studyDate.length).to.be.eq(4);
|
2023-09-01 22:19:39 +02:00
|
|
|
expect(studyDate.text()).to.contain('2014').contain('2001');
|
|
|
|
|
expect(studyDate.text().indexOf('2014')).to.be.lessThan(studyDate.text().indexOf('2001'));
|
2023-08-16 16:15:12 +02:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|