Skip to content

Build your personal knowledge base with Trilium Notes

fix(e2e): broken after change in Mermaid

Elian Doran27875c46223b
diff --git a/e2e/note_types/mermaid.spec.ts b/e2e/note_types/mermaid.spec.ts
index f7a0dd4014..f64a447d78 100644
--- a/e2e/note_types/mermaid.spec.ts
+++ b/e2e/note_types/mermaid.spec.ts
@@ -63,7 +63,7 @@ async function testAriaSnapshot({ page, context, noteTitle, snapshot }: AriaTest
await app.goto();
await app.goToNoteInNewTab(noteTitle);
- const svgData = app.currentNoteSplit.locator(".mermaid-render svg");
+ const svgData = app.currentNoteSplit.locator(".render-container svg");
await expect(svgData).toBeVisible();
await expect(svgData).toMatchAriaSnapshot(snapshot);
}
diff --git a/e2e/support/app.ts b/e2e/support/app.ts
index 55f36a7ffb..b526638d9c 100644
--- a/e2e/support/app.ts
+++ b/e2e/support/app.ts
@@ -54,6 +54,7 @@ export default class App {
async goToNoteInNewTab(noteTitle: string) {
const autocomplete = this.currentNoteSplit.locator(".note-autocomplete");
await autocomplete.fill(noteTitle);
+ await expect(this.currentNoteSplit.locator(".note-detail-empty-results")).toContainText(noteTitle);
await autocomplete.press("ArrowDown");
await autocomplete.press("Enter");
}