Skip to content

Build your personal knowledge base with Trilium Notes

fix(e2e): tests failing when run locally

Elian Doraneb19e31fc362
diff --git a/e2e/support/app.ts b/e2e/support/app.ts
index ff0aa4df75..64e60d74eb 100644
--- a/e2e/support/app.ts
+++ b/e2e/support/app.ts
@@ -42,7 +42,7 @@ export default class App {
url = "/";
}
- await this.page.goto(url, { waitUntil: "networkidle" });
+ await this.page.goto(url, { waitUntil: "networkidle", timeout: 30_000 });
// Wait for the page to load.
if (url === "/") {
diff --git a/package.json b/package.json
index ed57bd0b92..44ca6be92c 100644
--- a/package.json
+++ b/package.json
@@ -50,7 +50,7 @@
"server:coverage": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest --coverage",
"client:test": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest --root src/public/app",
"client:coverage": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db TRILIUM_INTEGRATION_TEST=memory vitest --root src/public/app --coverage",
- "test:playwright": "playwright test",
+ "test:playwright": "playwright test --workers 1",
"test:integration-edit-db": "cross-env TRILIUM_INTEGRATION_TEST=edit TRILIUM_PORT=8081 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",
"test:integration-mem-db": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",
"test:integration-mem-db-dev": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts",