39 lines
1.2 KiB
JavaScript
39 lines
1.2 KiB
JavaScript
import '@percy/cypress';
|
|
|
|
describe('OHIF Percy TMTV', () => {
|
|
beforeEach(() => {
|
|
cy.openStudyInViewer(
|
|
'1.3.6.1.4.1.14519.5.2.1.7009.2403.334240657131972136850343327463',
|
|
'',
|
|
'/tmtv'
|
|
);
|
|
cy.wait(10000);
|
|
});
|
|
|
|
it('should maintain VOI when going 1 up and back', () => {
|
|
cy.percyCanvasSnapshot('TMTV Loaded');
|
|
cy.get('[data-viewport-uid="mipSagittal"] > .viewport-element > .cornerstone-canvas').dblclick(
|
|
100,
|
|
100
|
|
);
|
|
cy.wait(500);
|
|
cy.percyCanvasSnapshot('TMTV One up view loaded');
|
|
cy.get('[data-viewport-uid="mipSagittal"] > .viewport-element > .cornerstone-canvas').dblclick(
|
|
100,
|
|
100
|
|
);
|
|
cy.wait(500);
|
|
cy.percyCanvasSnapshot('TMTV Back to original view');
|
|
});
|
|
|
|
it('should still look fine when changing patient data', () => {
|
|
cy.get('[data-cy="petSUV-btn"]').click();
|
|
cy.percyCanvasSnapshot('TMTV Patient Panel Opened');
|
|
cy.get('[data-cy="input-weight-input"]').type('191');
|
|
cy.percyCanvasSnapshot('TMTV Patient Panel Weight Changed');
|
|
cy.get('button').contains('Reload Data').click();
|
|
cy.wait(5000);
|
|
cy.percyCanvasSnapshot('TMTV Reloaded Data');
|
|
});
|
|
});
|