* Try workaround for percy snapshot * Return our modified document * test: some dark magic to make it possible to take screenshots of WebGL canvases * Apply transformation directly to test DOM * investigate: window:before:load * Register flag in correct place; add experimental-webgl check * Remaining canvas fixes * Remove comment
27 lines
714 B
JavaScript
27 lines
714 B
JavaScript
describe('OHIF Microscopy Extension', () => {
|
|
before(() => {
|
|
cy.openStudyModality('SM');
|
|
cy.expectMinimumThumbnails(6);
|
|
});
|
|
|
|
it('checks if series thumbnails are being displayed', () => {
|
|
cy.get('[data-cy="thumbnail-list"]')
|
|
.contains('SM')
|
|
.its('length')
|
|
.should('to.be.at.least', 1);
|
|
});
|
|
|
|
it('drags and drop a SM thumbnail into viewport', () => {
|
|
cy.get('[data-cy="thumbnail-list"]')
|
|
.contains('SM')
|
|
.drag('.viewport-drop-target');
|
|
|
|
cy.get('.DicomMicroscopyViewer')
|
|
.its('length')
|
|
.should('be.eq', 1);
|
|
|
|
cy.wait(3000); //Waiting for image to render before taking the snapshot
|
|
cy.percyCanvasSnapshot('Microscopy Extension');
|
|
});
|
|
});
|