Skip to content

Build your personal knowledge base with Trilium Notes

test(e2e): flaky test

Elian Doran382d16ec68c8
diff --git a/apps/server-e2e/src/note_types/text.spec.ts b/apps/server-e2e/src/note_types/text.spec.ts
index 328a43d173..c99ad5d7d6 100644
--- a/apps/server-e2e/src/note_types/text.spec.ts
+++ b/apps/server-e2e/src/note_types/text.spec.ts
@@ -55,6 +55,8 @@ test("Displays math popup", async ({ page, context }) => {
await app.goto();
await app.goToNoteInNewTab("Empty text");
const noteContent = app.currentNoteSplit.locator(".note-detail-editable-text-editor");
+ await expect(noteContent.locator("p")).toBeVisible();
+ await noteContent.focus();
await noteContent.fill("Hello world");
await noteContent.press("ControlOrMeta+M");