test: Add flowchart-elk overriding test

This commit is contained in:
Sidharth Vinod
2023-11-23 22:41:22 +05:30
parent 30fe363b57
commit c294a0a9ac
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { urlSnapshotTest, openURLAndVerifyRendering } from '../../helpers/util.ts';
describe('Flowchart elk', () => {
it('should use dagre as fallback', () => {
urlSnapshotTest('http://localhost:9000/flow-elk.html', {
name: 'flow-elk fallback to dagre',
});
});
it('should allow overriding with external package', () => {
urlSnapshotTest('http://localhost:9000/flow-elk.html?elk=true', {
name: 'flow-elk overriding dagre with elk',
});
});
});