2019-12-24 01:17:02 -03:00
|
|
|
//We excluded the tests for '**/studies/**' because the bulk/all of our other study/viewer tests use this route
|
|
|
|
|
|
|
|
|
|
describe('Visual Regression - OHIF Routes', function() {
|
|
|
|
|
beforeEach(function() {
|
|
|
|
|
cy.openStudyList();
|
|
|
|
|
});
|
|
|
|
|
|
2020-07-13 14:51:33 +02:00
|
|
|
/*
|
|
|
|
|
// TODO -> Bring back when testJSON is hosted again.
|
2020-03-09 19:03:23 +00:00
|
|
|
it('checks TEST json url study route', function() {
|
2019-12-24 01:17:02 -03:00
|
|
|
cy.visit(
|
2020-03-09 19:03:23 +00:00
|
|
|
'/viewer?url=https://ohif-viewer.s3.eu-central-1.amazonaws.com/JSON/testJSON.json'
|
2019-12-24 01:17:02 -03:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
cy.server();
|
2020-07-13 14:51:33 +02:00
|
|
|
cy.route('GET', '**/ TESTStudy; /**').as('getTESTStudy');
|
2019-12-24 01:17:02 -03:00
|
|
|
|
2020-03-09 19:03:23 +00:00
|
|
|
cy.wait('@getTESTStudy.all');
|
|
|
|
|
cy.get('@getTESTStudy').should($route => {
|
2019-12-24 01:17:02 -03:00
|
|
|
expect($route.status).to.be.eq(200);
|
|
|
|
|
});
|
|
|
|
|
|
2020-03-09 19:03:23 +00:00
|
|
|
cy.percyCanvasSnapshot('TEST json study route');
|
2019-12-24 01:17:02 -03:00
|
|
|
});
|
2020-07-13 14:51:33 +02:00
|
|
|
*/
|
2019-12-24 01:17:02 -03:00
|
|
|
});
|