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): fix flaky tests
Elian Dorane4429062655a
diff --git a/e2e/note_types/code.spec.ts b/e2e/note_types/code.spec.tsindex 0317190c10..4f63588ee3 100644--- a/e2e/note_types/code.spec.ts+++ b/e2e/note_types/code.spec.ts@@ -30,10 +30,11 @@ test("Displays lint errors for backend script", async ({ page }) => {const codeEditor = app.currentNoteSplit.locator(".CodeMirror");// Expect two warning signs in the gutter.- expect(codeEditor.locator(".CodeMirror-gutter-wrapper .CodeMirror-lint-marker-error")).toHaveCount(1);+ const errorMarker = codeEditor.locator(".CodeMirror-gutter-wrapper .CodeMirror-lint-marker-error");+ await expect(errorMarker).toHaveCount(1);// Hover over hello- await codeEditor.getByText("world").first().hover();+ await errorMarker.hover();await expectTooltip(page, "Parsing error: Unexpected token world");});diff --git a/integration-tests/db/document.db b/integration-tests/db/document.dbindex 52a9b12b5f..a4a44162f7 100644Binary files a/integration-tests/db/document.db and b/integration-tests/db/document.db differ