diff --git a/.circleci/config.yml b/.circleci/config.yml index 87dcc47f4..23e6eb34d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -388,9 +388,9 @@ workflows: no-workspace: true # Don't persist workspace post-steps: - store_artifacts: - path: platform/viewer/cypress/screenshots + path: platform/viewer/cypress/screenshots/visual-regression - store_artifacts: - path: platform/viewer/cypress/videos + path: platform/viewer/cypress/videos/visual-regression requires: - AWAIT_APPROVAL diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFCornerstoneHotkeys.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFCornerstoneHotkeys.spec.js index 4f6a74c3c..582a59799 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFCornerstoneHotkeys.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFCornerstoneHotkeys.spec.js @@ -15,7 +15,6 @@ describe('Visual Regression - OHIF Cornerstone Hotkeys', () => { // Hotkey I cy.get('body').type('I'); // Visual comparison - cy.screenshot('Hotkey I - Should Invert Image'); cy.percyCanvasSnapshot('Hotkey I - Should Invert Image'); }); @@ -27,7 +26,6 @@ describe('Visual Regression - OHIF Cornerstone Hotkeys', () => { cy.get('body').type(' '); // Visual comparison to make sure the 'inverted' image was reset - cy.screenshot('Hotkey SPACEBAR - Should Reset Image'); cy.percyCanvasSnapshot('Hotkey SPACEBAR - Should Reset Image'); }); }); diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFCornerstoneToolbar.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFCornerstoneToolbar.spec.js index a9f0211fa..ade703664 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFCornerstoneToolbar.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFCornerstoneToolbar.spec.js @@ -25,7 +25,6 @@ describe('Visual Regression - OHIF Cornerstone Toolbar', () => { .trigger('mouseup', 'bottom'); // Visual comparison - cy.screenshot('Pan tool moved the image inside the viewport'); cy.percyCanvasSnapshot('Pan tool moved the image inside the viewport'); }); @@ -39,7 +38,6 @@ describe('Visual Regression - OHIF Cornerstone Toolbar', () => { cy.get('[data-cy="invert"]').click(); // Visual comparison - cy.screenshot('Invert tool - Should Invert Canvas'); cy.percyCanvasSnapshot('Invert tool - Should Invert Canvas'); }); @@ -55,7 +53,6 @@ describe('Visual Regression - OHIF Cornerstone Toolbar', () => { }); // Visual comparison - cy.screenshot('Rotate tool - Should Rotate Image to Right'); cy.percyCanvasSnapshot('Rotate tool - Should Rotate Image to Right'); }); @@ -69,7 +66,6 @@ describe('Visual Regression - OHIF Cornerstone Toolbar', () => { cy.get('[data-cy="flip h"]').click(); // Visual comparison - cy.screenshot('Flip H tool - Should Flip Image on Y axis'); cy.percyCanvasSnapshot('Flip H tool - Should Flip Image on Y axis'); }); @@ -83,7 +79,6 @@ describe('Visual Regression - OHIF Cornerstone Toolbar', () => { cy.get('[data-cy="flip v"]').click(); // Visual comparison - cy.screenshot('Flip V tool - Should Flip Image on X axis'); cy.percyCanvasSnapshot('Flip V tool - Should Flip Image on X axis'); }); }); diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFDownloadSnapshotFile.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFDownloadSnapshotFile.spec.js index dee9cc566..bb93e18bf 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFDownloadSnapshotFile.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFDownloadSnapshotFile.spec.js @@ -20,7 +20,6 @@ describe('Visual Regression - OHIF Download Snapshot File', () => { // Set Tablet resolution cy.viewport(1000, 660); // Visual comparison - cy.screenshot('Download Image Modal - Tablet experience'); cy.percyCanvasSnapshot('Download Image Modal - Tablet experience'); }); @@ -28,7 +27,6 @@ describe('Visual Regression - OHIF Download Snapshot File', () => { // Set Desktop resolution cy.viewport(1750, 720); // Visual comparison - cy.screenshot('Download Image Modal - Desktop experience'); cy.percyCanvasSnapshot('Download Image Modal - Desktop experience'); }); @@ -47,7 +45,6 @@ describe('Visual Regression - OHIF Download Snapshot File', () => { // Check image preview cy.get('[data-cy="image-preview"]').scrollIntoView(); // Visual comparison - cy.screenshot('Download Image Modal - Show Annotations checked'); cy.percyCanvasSnapshot('Download Image Modal - Show Annotations checked'); }); }); diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionMicroscopy.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionMicroscopy.spec.js index 5586a5d99..ac9a883f8 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionMicroscopy.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionMicroscopy.spec.js @@ -15,7 +15,6 @@ describe('Visual Regression - OHIF Microscopy Extension', () => { cy.wait(3000); //Waiting for image to render before taking the snapshot // Visual comparison - cy.screenshot('Microscopy Extension - Should display loaded canvas'); cy.percyCanvasSnapshot( 'Microscopy Extension - Should display loaded canvas' ); diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionPDF.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionPDF.spec.js index da286d9b3..7dadf35d2 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionPDF.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionPDF.spec.js @@ -15,7 +15,6 @@ describe('Visual Regression - OHIF PDF Extension', () => { // This won't work unless we switch to an extension that renders using `canvas` // Currently, we rely on the browser's built-in implementation - cy.screenshot('PDF Extension - Should load PDF file'); cy.percyCanvasSnapshot('PDF Extension - Should load PDF file'); }); }); diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionVTK.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionVTK.spec.js index c353c02ba..7aacf5197 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionVTK.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFExtensionVTK.spec.js @@ -36,7 +36,6 @@ describe('Visual Regression - OHIF VTK Extension', () => { it('checks if VTK buttons are displayed on the toolbar', () => { // Visual comparison - cy.screenshot('VTK initial state - Should display toolbar and 3 viewports'); cy.percyCanvasSnapshot( 'VTK initial state - Should display toolbar and 3 viewports' ); @@ -52,9 +51,6 @@ describe('Visual Regression - OHIF VTK Extension', () => { .trigger('mouseup'); // Visual comparison - cy.screenshot( - "VTK Crosshairs tool - Should display crosshairs' green lines" - ); cy.percyCanvasSnapshot( "VTK Crosshairs tool - Should display crosshairs' green lines" ); @@ -72,7 +68,6 @@ describe('Visual Regression - OHIF VTK Extension', () => { .trigger('mouseup', { which: 1 }); // Visual comparison - cy.screenshot('VTK WWWC tool - Canvas should be bright'); cy.percyCanvasSnapshot('VTK WWWC tool - Canvas should be bright'); }); @@ -88,7 +83,6 @@ describe('Visual Regression - OHIF VTK Extension', () => { .trigger('mouseup', { which: 1 }); // Visual comparison - cy.screenshot('VTK Rotate tool - Should rotate image'); cy.percyCanvasSnapshot('VTK Rotate tool - Should rotate image'); }); }); diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFRoutes.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFRoutes.spec.js index 14f901bdd..dd949c240 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFRoutes.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFRoutes.spec.js @@ -18,7 +18,6 @@ describe('Visual Regression - OHIF Routes', function() { expect($route.status).to.be.eq(200); }); - cy.screenshot('PTCT json study route'); cy.percyCanvasSnapshot('PT/CT json study route'); }); }); diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFStudyViewer.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFStudyViewer.spec.js index c1e4b5b1d..7c1d7413e 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFStudyViewer.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFStudyViewer.spec.js @@ -11,7 +11,6 @@ describe('Visual Regression - OHIF Study Viewer Page', function() { }); it('checks if series thumbnails are being displayed', function() { - cy.screenshot('Series Thumbnails - Should Display Thumbnails'); cy.percyCanvasSnapshot('Series Thumbnails - Should Display Thumbnails'); }); @@ -27,7 +26,6 @@ describe('Visual Regression - OHIF Study Viewer Page', function() { .should('be.visible'); // Visual comparison - cy.screenshot('About modal - Should display modal'); cy.percyCanvasSnapshot('About modal - Should display modal'); //close modal diff --git a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFUserPreferences.spec.js b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFUserPreferences.spec.js index 68e43228d..4bf066add 100644 --- a/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFUserPreferences.spec.js +++ b/platform/viewer/cypress/integration/visual-regression/PercyCheckOHIFUserPreferences.spec.js @@ -14,9 +14,6 @@ describe('Visual Regression - OHIF User Preferences', () => { cy.get('@restoreBtn').scrollIntoView(); // Visual comparison - cy.screenshot( - 'User Preferences Modal - Hotkeys tab initial state in StudyList page' - ); cy.percyCanvasSnapshot( 'User Preferences Modal - Hotkeys tab initial state in StudyList page' ); @@ -32,9 +29,6 @@ describe('Visual Regression - OHIF User Preferences', () => { cy.get('#language-select').should('be.visible'); // Visual comparison - cy.screenshot( - 'User Preferences Modal - General tab initial state in StudyList page' - ); cy.percyCanvasSnapshot( 'User Preferences Modal - General tab initial state in StudyList page' ); @@ -47,9 +41,6 @@ describe('Visual Regression - OHIF User Preferences', () => { .click(); // Visual comparison - cy.screenshot( - 'User Preferences Modal - Spanish selected in StudyList page' - ); cy.percyCanvasSnapshot( 'User Preferences Modal - Spanish selected in StudyList page' ); @@ -78,9 +69,6 @@ describe('Visual Regression - OHIF User Preferences', () => { cy.get('@restoreBtn').scrollIntoView(); // Visual comparison - cy.screenshot( - 'User Preferences Modal - Hotkeys tab initial state in StudyViewer page' - ); cy.percyCanvasSnapshot( 'User Preferences Modal - Hotkeys tab initial state in StudyViewer page' ); @@ -93,9 +81,6 @@ describe('Visual Regression - OHIF User Preferences', () => { .should('have.class', 'active'); // Visual comparison - cy.screenshot( - 'User Preferences Modal - General tab initial state in StudyViewer page' - ); cy.percyCanvasSnapshot( 'User Preferences Modal - General tab initial state in StudyViewer page' ); @@ -108,9 +93,6 @@ describe('Visual Regression - OHIF User Preferences', () => { .click(); // Visual comparison - cy.screenshot( - 'User Preferences Modal - Spanish selected in StudyViewer page' - ); cy.percyCanvasSnapshot( 'User Preferences Modal - Spanish selected in StudyViewer page' ); @@ -147,9 +129,6 @@ describe('Visual Regression - OHIF User Preferences', () => { .click(); // Visual comparison - cy.screenshot( - 'User Preferences Modal - English selected in StudyViewer page' - ); cy.percyCanvasSnapshot( 'User Preferences Modal - English selected in StudyViewer page' ); @@ -199,7 +178,6 @@ describe('Visual Regression - OHIF User Preferences', () => { cy.get('body').type(' '); // Visual comparison - cy.screenshot('Viewport Navigation - 2nd viewport inverted and rotated'); cy.percyCanvasSnapshot( 'Viewport Navigation - 2nd viewport inverted and rotated' );