mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 20:09:46 +02:00
Update url snapshot test for external diagrams
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
|
import { urlSnapshotTest } from '../../helpers/util';
|
||||||
|
|
||||||
describe('mermaid', () => {
|
describe('mermaid', () => {
|
||||||
describe('registerDiagram', () => {
|
describe('registerDiagram', () => {
|
||||||
it('should work on @mermaid-js/mermaid-mindmap and mermaid-example-diagram', () => {
|
it('should work on @mermaid-js/mermaid-mindmap and mermaid-example-diagram', () => {
|
||||||
const url = 'http://localhost:9000/external-diagrams-mindmap.html';
|
const url = 'http://localhost:9000/external-diagrams-mindmap.html';
|
||||||
cy.visit(url);
|
urlSnapshotTest(url, {}, false, false);
|
||||||
|
// cy.visit(url);
|
||||||
|
|
||||||
cy.get('svg', {
|
// cy.get('svg', {
|
||||||
// may be a bit slower than normal, since vite might need to re-compile mermaid/mermaid-mindmap/mermaid-example-diagram
|
// // may be a bit slower than normal, since vite might need to re-compile mermaid/mermaid-mindmap/mermaid-example-diagram
|
||||||
timeout: 10000,
|
// timeout: 10000,
|
||||||
}).matchImageSnapshot();
|
// }).matchImageSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user