test: Adding Percy Snapshot on VTK, PDF and Microscopy tests (#1059)
* Adding Percy Snapshot on VTK, PDF and Microscopy tests * Small improvement to always click on first search result * Wait for search result * Added timouts all over the code to avoid intermitted failures in CI * Increasing Default Timeout and other configs * Cleaning up the code * try force enabling gpu * Try custom executor with newer version of chrome * Fix based on review comments * Increased minimum thumbnails expected on VTK test * Fix config validation * Make sure we're using the chrome browser
This commit is contained in:
1 parent
a6c1e6c717
commit
dea0ceab57
12 files changed
+172
-54
No files matched your search
@@ -2,7 +2,7 @@ describe('OHIF VTK Extension', () => {
|
||||
before(() => {
|
||||
cy.openStudy('Juno');
|
||||
cy.waitDicomImage();
|
||||
cy.expectMinimumThumbnails(1);
|
||||
cy.expectMinimumThumbnails(7);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -11,7 +11,7 @@ describe('OHIF VTK Extension', () => {
|
||||
// has data from a drag-n-drop
|
||||
// Drag and drop first thumbnail into first viewport
|
||||
cy.get('[data-cy="thumbnail-list"]:nth-child(3)').drag(
|
||||
'.cornerstone-canvas'
|
||||
'.viewport-drop-target'
|
||||
);
|
||||
|
||||
cy.get('.PluginSwitch > .toolbar-button')
|
||||
@@ -22,12 +22,15 @@ describe('OHIF VTK Extension', () => {
|
||||
btn.click();
|
||||
}
|
||||
});
|
||||
|
||||
//wait VTK toolbar and images to be loaded
|
||||
cy.wait(3000);
|
||||
cy.initVTKToolsAliases();
|
||||
cy.wait(1000);
|
||||
});
|
||||
|
||||
it('checks if VTK buttons are displayed on the toolbar', () => {
|
||||
cy.screenshot();
|
||||
cy.percySnapshot();
|
||||
|
||||
cy.get('@crosshairsBtn')
|
||||
.should('be.visible')
|
||||
.contains('Crosshairs');
|
||||
|
||||
Reference in new issue
Block a user