Files
ohif-viewer/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFRoutes.spec.js
T

26 lines
733 B
JavaScript
Raw Normal View History

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();
});
/*
// TODO -> Bring back when testJSON is hosted again.
it('checks TEST json url study route', function() {
2019-12-24 01:17:02 -03:00
cy.visit(
'/viewer?url=https://ohif-viewer.s3.eu-central-1.amazonaws.com/JSON/testJSON.json'
2019-12-24 01:17:02 -03:00
);
cy.server();
cy.route('GET', '**/ TESTStudy; /**').as('getTESTStudy');
2019-12-24 01:17:02 -03: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);
});
cy.percyCanvasSnapshot('TEST json study route');
2019-12-24 01:17:02 -03:00
});
*/
2019-12-24 01:17:02 -03:00
});