Skip to content

Build your personal knowledge base with Trilium Notes

feat(e2e): test mind map display

Elian Doran8dbb5497f16e
diff --git a/e2e/note_types/mermaid.spec.ts b/e2e/note_types/mermaid.spec.ts
new file mode 100644
index 0000000000..0ead19df8a
--- /dev/null
+++ b/e2e/note_types/mermaid.spec.ts
@@ -0,0 +1,12 @@
+import { test, expect, Page } from "@playwright/test";
+import App from "../support/app";
+
+test("Displays simple map", async ({ page, context }) => {
+ const app = new App(page, context);
+ await app.goto();
+ await app.goToNoteInNewTab("Sample mindmap");
+
+ expect(app.currentNoteSplit).toContainText("Hello world");
+ expect(app.currentNoteSplit).toContainText("1");
+ expect(app.currentNoteSplit).toContainText("1a");
+});
diff --git a/integration-tests/db/document.db b/integration-tests/db/document.db
index a4a44162f7..578b95cd79 100644
Binary files a/integration-tests/db/document.db and b/integration-tests/db/document.db differ