From eb19e31fc362f742ed1d56accda3a304cfabafb0 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 7 Mar 2025 20:34:01 +0200 Subject: [PATCH] fix(e2e): tests failing when run locally --- e2e/support/app.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/support/app.ts b/e2e/support/app.ts index ff0aa4df7..64e60d74e 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 ed57bd0b9..44ca6be92 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",