Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(e2e): add missing await to expect
Elian Doranb30164ef66e9
diff --git a/e2e/note_types/code.spec.ts b/e2e/note_types/code.spec.tsindex 6473b68499..f0f204fcc6 100644--- a/e2e/note_types/code.spec.ts+++ b/e2e/note_types/code.spec.ts@@ -10,7 +10,7 @@ test("Displays lint warnings for backend script", async ({ page, context }) => {const codeEditor = app.currentNoteSplit.locator(".CodeMirror");// Expect two warning signs in the gutter.- expect(codeEditor.locator(".CodeMirror-gutter-wrapper .CodeMirror-lint-marker-warning")).toHaveCount(2);+ await expect(codeEditor.locator(".CodeMirror-gutter-wrapper .CodeMirror-lint-marker-warning")).toHaveCount(2);// Hover over helloawait codeEditor.getByText("hello").first().hover();diff --git a/e2e/note_types/mermaid.spec.ts b/e2e/note_types/mermaid.spec.tsindex 23f43399ea..b06076cc36 100644--- a/e2e/note_types/mermaid.spec.ts+++ b/e2e/note_types/mermaid.spec.ts@@ -6,9 +6,9 @@ test("displays simple map", async ({ 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");+ await expect(app.currentNoteSplit).toContainText("Hello world");+ await expect(app.currentNoteSplit).toContainText("1");+ await expect(app.currentNoteSplit).toContainText("1a");});test("displays note settings", async ({ page, context }) => {@@ -18,5 +18,5 @@ test("displays note settings", async ({ page, context }) => {await app.currentNoteSplit.getByText("Hello world").click({ force: true });const nodeMenu = app.currentNoteSplit.locator(".node-menu");- expect(nodeMenu).toBeVisible();+ await expect(nodeMenu).toBeVisible();});