test: Try workaround for percy snapshot (#1084)
This commit is contained in:
1 parent
97786b808c
commit
3a12138134
6 files changed
+34
-5
No files matched your search
@@ -5,7 +5,7 @@ describe('OHIFStandaloneViewer', () => {
|
||||
|
||||
it('loads route with at least 2 rows', () => {
|
||||
cy.screenshot();
|
||||
cy.percySnapshot();
|
||||
cy.percyCanvasSnapshot('Study List');
|
||||
|
||||
cy.get('#studyListData tr')
|
||||
.its('length')
|
||||
|
||||
@@ -12,7 +12,7 @@ describe('OHIF Study Viewer Page', () => {
|
||||
|
||||
it('checks if series thumbnails are being displayed', () => {
|
||||
cy.screenshot();
|
||||
cy.percySnapshot();
|
||||
cy.percyCanvasSnapshot('Series Thumbnails');
|
||||
|
||||
cy.get('[data-cy="thumbnail-list"]')
|
||||
.its('length')
|
||||
|
||||
@@ -22,6 +22,6 @@ describe('OHIF Microscopy Extension', () => {
|
||||
|
||||
cy.wait(3000); //Waiting for image to render before taking the snapshot
|
||||
cy.screenshot();
|
||||
cy.percySnapshot();
|
||||
cy.percyCanvasSnapshot('Microscopy Extension');
|
||||
});
|
||||
});
|
||||
@@ -21,6 +21,6 @@ describe('OHIF PDF Extension', () => {
|
||||
.should('be.eq', 1);
|
||||
|
||||
cy.screenshot();
|
||||
cy.percySnapshot();
|
||||
cy.percyCanvasSnapshot('PDF Extension');
|
||||
});
|
||||
});
|
||||
@@ -29,7 +29,7 @@ describe('OHIF VTK Extension', () => {
|
||||
|
||||
it('checks if VTK buttons are displayed on the toolbar', () => {
|
||||
cy.screenshot();
|
||||
cy.percySnapshot();
|
||||
cy.percyCanvasSnapshot('VTK Extension');
|
||||
|
||||
cy.get('@crosshairsBtn')
|
||||
.should('be.visible')
|
||||
|
||||
Reference in new issue
Block a user