diff --git a/platform/viewer/cypress/integration/common/OHIFRoutes.spec.js b/platform/viewer/cypress/integration/common/OHIFRoutes.spec.js new file mode 100644 index 000000000..fd411f917 --- /dev/null +++ b/platform/viewer/cypress/integration/common/OHIFRoutes.spec.js @@ -0,0 +1,22 @@ +//We excluded the tests for '**/studies/**' because the bulk/all of our other study/viewer tests use this route + +describe('OHIF Routes', function() { + beforeEach(function() { + cy.openStudyList(); + }); + + it('checks PT/CT json url study route', function() { + cy.visit('/viewer?url=https://s3.eu-central-1.amazonaws.com/ohif-viewer/JSON/PTCTStudy.json'); + + cy.server(); + cy.route('GET', '**/PTCTStudy/**').as('getPTCTStudy'); + + cy.wait('@getPTCTStudy.all'); + cy.get('@getPTCTStudy').should($route => { + expect($route.status).to.be.eq(200); + }); + + cy.screenshot(); + cy.percyCanvasSnapshot('PT/CT json study route'); + }); +}); diff --git a/platform/viewer/cypress/integration/common/ViewerRouting.spec.js b/platform/viewer/cypress/integration/common/ViewerRouting.spec.js deleted file mode 100644 index d4e1a7494..000000000 --- a/platform/viewer/cypress/integration/common/ViewerRouting.spec.js +++ /dev/null @@ -1,24 +0,0 @@ -describe('ViewerRouting', () => { - beforeEach(() => { - cy.visit('/'); - cy.contains('Study List'); - cy.get( - '[data-cy="study-list-results"]> :nth-child(1) > .patientId' - ).click(); - }); - - // it('thumbnails list has more than 2 items', () => { - // cy.get('.scrollable-study-thumbnails div.thumbnail-container') - // .its('length') - // .should('be.gte', 2); - // }); - - // it('loads route with at least 2 thumbnails', () => { - // cy.get( - // ':nth-child(1) > .ThumbnailEntry > .p-x-1 > .ImageThumbnail > .image-thumbnail-canvas > canvas' - // ).should('be.visible'); - // cy.get( - // ':nth-child(2) > .ThumbnailEntry > .p-x-1 > .ImageThumbnail > .image-thumbnail-canvas > canvas' - // ).should('be.visible'); - // }); -});