ci: Use containerized PACS for running end-to-end tests #1122 (#1290)

* ci: Use containerized PACS for running end-to-end tests

* Try to fix cypress test results

Co-authored-by: dannyrb <danny.ri.brown@gmail.com>
This commit is contained in:
Erik Ziegleranddannyrb authored and GitHub committed 2020-12-03 10:26:22 +01:00
1 parent 6c5ad9e98d
commit dfe566e2aa
29 files changed
+748 -379

No files matched your search

@@ -1,9 +1,12 @@
/*
Temporarily disabling as we transition to containerized PACS for E2E tests
describe('OHIF HTML Extension', () => {
before(() => {
cy.openStudyInViewer(
'1.2.826.0.13854362241694438965858641723883466450351448'
);
cy.expectMinimumThumbnails(5);
cy.expectMinimumThumbnails(3);
});
// TODO -> Commented these out until we get a seperate temporary PACS running on the CI.
@@ -79,3 +82,4 @@ describe('OHIF HTML Extension', () => {
// cy.screenshot('PDF Extension - Should load PDF file');
// });
// });
*/
@@ -1,3 +1,6 @@
/*
Temporarily disabling as we transition to containerized PACS for E2E tests
describe('OHIF Microscopy Extension', () => {
before(() => {
cy.openStudyModality('SM');
@@ -27,3 +30,4 @@ describe('OHIF Microscopy Extension', () => {
cy.screenshot('Microscopy Extension - Should display loaded canvas');
});
});
*/
@@ -3,10 +3,14 @@ describe('OHIF VTK Extension', () => {
cy.checkStudyRouteInViewer(
'1.3.6.1.4.1.25403.345050719074.3824.20170125113417.1'
);
cy.expectMinimumThumbnails(7);
cy.expectMinimumThumbnails(3);
// TODO: Added 1s wait because we are loading initial series list
// from QIDO-RS, which is breaking some cypress checks
//Waiting for the desired thumbnail content to be displayed
cy.get('[data-cy="thumbnail-list"]').should($list => {
cy.get('[data-cy="thumbnail-list"]').wait(1000).should($list => {
expect($list).to.contain('CT WB 5.0 B35f');
});
@@ -15,7 +19,7 @@ describe('OHIF VTK Extension', () => {
// has data from a drag-n-drop
// Drag and drop third thumbnail into first viewport
cy.get('[data-cy="thumbnail-list"]')
.contains('CT WB 5.0 B35f')
.eq(2)
.drag('.viewport-drop-target');
//Select 2D MPR button
@@ -3,7 +3,7 @@ describe('OHIF Save Measurements', function() {
cy.checkStudyRouteInViewer(
'1.2.840.113619.2.5.1762583153.215519.978957063.78'
);
cy.expectMinimumThumbnails(5);
cy.expectMinimumThumbnails(3);
});
beforeEach(() => {