* Added verification on Before hook to avoid navigating again to viewer page * Removed unecessary screenshots and duplicated test cases * Navigation Fix for HTML extension and improved Flip button verification Co-authored-by: Danny Brown <danny.ri.brown@gmail.com>
37 lines
1002 B
JavaScript
37 lines
1002 B
JavaScript
describe('Visual Regression - OHIF Study Viewer Page', function() {
|
|
before(() => {
|
|
cy.checkStudyRouteInViewer(
|
|
'1.2.840.113619.2.5.1762583153.215519.978957063.78'
|
|
);
|
|
cy.expectMinimumThumbnails(5);
|
|
});
|
|
|
|
beforeEach(function() {
|
|
cy.initCommonElementsAliases();
|
|
cy.resetViewport();
|
|
});
|
|
|
|
it('checks if series thumbnails are being displayed', function() {
|
|
cy.percyCanvasSnapshot('Series Thumbnails - Should Display Thumbnails');
|
|
});
|
|
|
|
it('opens About modal and verify the displayed information', function() {
|
|
cy.get('[data-cy="options-menu"]')
|
|
.first()
|
|
.click();
|
|
cy.get('[data-cy="dd-item-menu"]')
|
|
.first()
|
|
.click();
|
|
cy.get('[data-cy="about-modal"]')
|
|
.as('aboutOverlay')
|
|
.should('be.visible');
|
|
|
|
// Visual comparison
|
|
cy.percyCanvasSnapshot('About modal - Should display modal');
|
|
|
|
//close modal
|
|
cy.get('[data-cy="close-button"]').click();
|
|
cy.get('@aboutOverlay').should('not.be.enabled');
|
|
});
|
|
});
|