2022-12-08 16:38:47 +01:00
|
|
|
import { urlSnapshotTest } from '../../helpers/util';
|
|
|
|
|
2022-11-10 13:51:53 +05:30
|
|
|
describe('mermaid', () => {
|
|
|
|
describe('registerDiagram', () => {
|
|
|
|
it('should work on @mermaid-js/mermaid-mindmap and mermaid-example-diagram', () => {
|
|
|
|
const url = 'http://localhost:9000/external-diagrams-mindmap.html';
|
2022-12-08 16:38:47 +01:00
|
|
|
urlSnapshotTest(url, {}, false, false);
|
|
|
|
// cy.visit(url);
|
2022-11-10 13:51:53 +05:30
|
|
|
|
2022-12-08 16:38:47 +01:00
|
|
|
// cy.get('svg', {
|
|
|
|
// // may be a bit slower than normal, since vite might need to re-compile mermaid/mermaid-mindmap/mermaid-example-diagram
|
|
|
|
// timeout: 10000,
|
|
|
|
// }).matchImageSnapshot();
|
2022-11-10 13:51:53 +05:30
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|