e2e: make tests reusable for standalone

This commit is contained in:
Elian Doran
2026-04-19 11:32:52 +03:00
parent 7c53fe56be
commit 417228ebde
36 changed files with 148 additions and 79 deletions

View File

@@ -26,11 +26,13 @@ apps/
│ └── src/**/*.spec.ts # Server tests
├── client/
│ └── src/**/*.spec.ts # Client tests
── server-e2e/
│ └── tests/**/*.spec.ts # E2E tests
── server/
│ └── e2e/**/*.spec.ts # Server-specific E2E tests
└── desktop/
└── e2e
└── tests/**/*.spec.ts # E2E tests
└── e2e/**/*.spec.ts # Desktop E2E tests
packages/
└── trilium-e2e/
└── src/**/*.spec.ts # Shared E2E tests
```
## Running tests

View File

@@ -9,7 +9,12 @@
* Playwright with Electron
* Tests some basic functionality such as creating a new document.
These can be found in `apps/server-e2e` and `apps/desktop/e2e`.
Shared E2E tests live in `packages/trilium-e2e/`. Server-specific tests are in `apps/server/e2e/`, desktop tests in `apps/desktop/e2e/`.
Run E2E tests via:
- `pnpm --filter server e2e` (server)
- `pnpm --filter client-standalone e2e` (standalone)
- `pnpm --filter desktop e2e` (desktop/Electron)
## First-time run