//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 TEST json url study route', function() { cy.visit( '/viewer?url=https://ohif-viewer.s3.eu-central-1.amazonaws.com/JSON/testJSON.json' ); cy.server(); cy.route('GET', '**/MRStudy/**').as('getTESTStudy'); cy.wait('@getTESTStudy.all'); cy.get('@getTESTStudy').should($route => { expect($route.status).to.be.eq(200); }); }); });