test: percy snapshot workaround (#1111)
* 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
This commit is contained in:
1 parent
f0519920fa
commit
70532a6cc6
6 files changed
+81
-31
No files matched your search
@@ -20,7 +20,8 @@ describe('OHIF PDF Extension', () => {
|
||||
.its('length')
|
||||
.should('be.eq', 1);
|
||||
|
||||
cy.screenshot();
|
||||
// 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.percyCanvasSnapshot('PDF Extension');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user